# browser-jsonstore

> Official jsonstore library for the browser

Latest version **1.0.1** (published 2019-12-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install browser-jsonstore
pnpm add browser-jsonstore
yarn add browser-jsonstore
bun add browser-jsonstore
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-12-15 |
| First published | 2019-12-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bluzi |
| Maintainers | bluz |
| Keywords | jsonstore, database, datastore, free |

## Links

- npm: https://www.npmjs.com/package/browser-jsonstore
- Repository: https://github.com/bluzi/browser-jsonstore
- Homepage: https://www.jsonstore.io/
- Issues: https://github.com/bluzi/browser-jsonstore/issues
- npm.io page: https://npm.io/package/browser-jsonstore

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-12-15
- 1.0.0 — 2019-12-15

## README

<p align="center">
<img src="https://i.ibb.co/CMzxD5f/logo.png" alt="Logo" />
</p>

## 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
<html>
    <head>
        <title>...</title>
        <script src="https://cdn.jsdelivr.net/npm/browser-jsonstore/dist/bundle.min.js"></script>
    </head>
    <body>
    ...
    </body>
</html>
```

or

```
npm i browser-jsonstore
```
```js
const jsonstore = require('browser-jsonstore');
```

### Initiate with your token
```js
const db = jsonstore('<Your personal token>')
```

#### 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.

---
_Source: https://npm.io/package/browser-jsonstore · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
