https://github.com/bluzi/browser-jsonstore
:rocket: Official jsonstore library for the browser
https://github.com/bluzi/browser-jsonstore
Last synced: 5 days ago
JSON representation
:rocket: Official jsonstore library for the browser
- Host: GitHub
- URL: https://github.com/bluzi/browser-jsonstore
- Owner: bluzi
- Created: 2019-12-15T23:52:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:04:59.000Z (over 3 years ago)
- Last Synced: 2026-07-10T01:18:44.860Z (15 days ago)
- Language: JavaScript
- Homepage: https://www.jsonstore.io
- Size: 183 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Official jsonstore library for the browser
### What's jsonstore?
jsonstore is a free single-click datastore available since March 2018 - just visit the website, copy your personal token and you can start storing data online for free.
Visit https://www.jsonstore.io/ or [visit the GitHub repository](https://github.com/bluzi/jsonstore)
### Usage
#### Add jsonstore to your website
```html
...
...
```
or
```
npm i browser-jsonstore
```
```js
const jsonstore = require('browser-jsonstore');
```
#### Initiate with your token
```js
const db = jsonstore('')
```
#### Store data
```js
await db.post('users/1', { name: 'jon snow', age: 31 });
```
#### Retrive data
```js
const firstUser = await db.get('users/1');
console.log(firstUser.name); // jon snow
```
#### Delete data
```js
await db.delete('users/1');
```
### Contribution
Any issues, suggestions or pull requests are welcome, please create an issue before you make a pull request so we can make sure everybody is on the same page.
### License
This project is licensed under the MIT License.