UNPKG

@superlayer/core

Version:
30 lines (20 loc) • 816 B
# @superlayer/core Superlayer's core local abstraction. [Documentation](https://superlayer.dev/docs) · [Source](https://github.com/InterfaceLDN/Superlayer) Maintained by Superlayer. See LICENSE.md and NOTICE for upstream attribution. Welcome to [Superlayer’s](https://superlayer.dev) 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://superlayer.dev/docs/start-vanilla) tutorial to set up a live app in under 5 minutes! # Questions? If you have any questions, feel free to drop us a line on our [issue tracker](https://github.com/InterfaceLDN/Superlayer/issues)