@instantdb/core
Version:
Instant's core local abstraction
45 lines (36 loc) • 1.47 kB
Markdown
<p align="center">
<a href="https://instantdb.com">
<img alt="Shows the Instant logo" src="https://instantdb.com/img/icon/android-chrome-512x512.png" width="10%">
</a>
<h1 align="center">@instantdb/core</h1>
</p>
<p align="center">
<a
href="https://discord.com/invite/VU53p7uQcE" >
<img height=20 src="https://img.shields.io/discord/1031957483243188235" />
</a>
<img src="https://img.shields.io/github/stars/instantdb/instant" alt="stars">
</p>
<p align="center">
<a href="https://www.instantdb.com/docs/start-vanilla">Get Started</a> ·
<a href="https://instantdb.com/examples">Examples</a> ·
<a href="https://instantdb.com/tutorial">Try the Demo</a> ·
<a href="https://www.instantdb.com/docs/start-vanilla">Docs</a> ·
<a href="https://discord.com/invite/VU53p7uQcE">Discord</a>
<p>
Welcome to [Instant's](http://instantdb.com) vanilla javascript SDK.
```javascript
db.subscribeQuery({ todos: {} }, (resp) => {
if (resp.error) {
renderError(resp.error.message);
return;
}
if (resp.data) {
render(resp.data); // wohoo!
}
});
```
# Get Started
Follow the [getting started in vanilla Javascript](https://www.instantdb.com/docs/start-vanilla) tutorial to set up a live app in under 5 minutes! Or you can try a [demo](https://instantdb.com/tutorial) in your browser :).
# Questions?
If you have any questions, feel free to drop us a line on our [Discord](https://discord.com/invite/VU53p7uQcE)