rapid-io
v0.4.2
Published
JavaScript SDK for Rapid.io to be used both server-side and client-side.
Downloads
8
Maintainers
Readme
What
Rapid.io is a cloud-hosted service that allows app developers to build realtime user interfaces without having to worry about the underlying infrastructure. It works as a non-relational data store accessible from a client-side code.
Why
Clients can create, update, delete and subscribe to a set of data and receive updates in realtime.
How
To include a library you can either use a npm package manager or include it directly trough a <script>
tag.
Node.js / webpack / Browserify / Rollup
If you need a library for a server-side usage or you are using a module bundler, you can install it from npm:
yarn add rapid-io
npm install --save rapid-io
Then include the library:
import rapid from 'rapid-io' // ES6 modules
const rapid = require('rapid-io') // RequireJS
And use it:
const client = rapid.createClient(API_KEY)
Browser
Alternatively you can use a standalone UMD build for browsers. You can use fast and global unpkg CDN.
<script src=" https://unpkg.com/rapid-io/dist/rapid-io.umd.js"></script>
<script>
const client = Rapid.createClient(API_KEY)
</script>
See Getting Started for more information.
Caught a bug?
Open an issue.