All Projects → developit → Histore

developit / Histore

Licence: apache-2.0
🏬 200b key-value store backed by navigation state

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Histore

Immortaldb
🔩 A relentless key-value store for the browser.
Stars: ✭ 2,962 (+333.67%)
Mutual labels:  database, key-value, localstorage
Gokv
Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more)
Stars: ✭ 314 (-54.03%)
Mutual labels:  database, key-value
Permazen
Language-Natural Persistence Layer for Java
Stars: ✭ 265 (-61.2%)
Mutual labels:  database, key-value
Bitcask
🔑A high performance Key/Value store written in Go with a predictable read/write performance and high throughput. Uses a Bitcask on-disk layout (LSM+WAL) similar to Riak.
Stars: ✭ 654 (-4.25%)
Mutual labels:  database, key-value
Cubdb
Elixir embedded key/value database
Stars: ✭ 235 (-65.59%)
Mutual labels:  database, key-value
Lowdb
Simple to use local JSON database (supports Node, Electron and the browser)
Stars: ✭ 16,886 (+2372.33%)
Mutual labels:  database, localstorage
Buntdb
BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support
Stars: ✭ 3,583 (+424.6%)
Mutual labels:  database, key-value
Redislite
Redis in a python module.
Stars: ✭ 464 (-32.06%)
Mutual labels:  database, key-value
Stormdb
🌩️ StormDB is a tiny, lightweight, 0 dependency, easy-to-use JSON-based database for NodeJS, the browser or Electron.
Stars: ✭ 406 (-40.56%)
Mutual labels:  database, localstorage
Flashdb
An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库
Stars: ✭ 378 (-44.66%)
Mutual labels:  database, key-value
Filebase
A Simple but Powerful Flat File Database Storage.
Stars: ✭ 235 (-65.59%)
Mutual labels:  database, key-value
Pickledb
pickleDB is an open source key-value store using Python's json module.
Stars: ✭ 549 (-19.62%)
Mutual labels:  database, key-value
Endb
Key-value storage for multiple databases. Supports MongoDB, MySQL, Postgres, Redis, and SQLite.
Stars: ✭ 208 (-69.55%)
Mutual labels:  database, key-value
keyv
Simple key-value storage with support for multiple backends.
Stars: ✭ 202 (-70.42%)
Mutual labels:  key-value, localstorage
Iowow
The skiplist based persistent key/value storage engine
Stars: ✭ 206 (-69.84%)
Mutual labels:  database, key-value
Hive
Lightweight and blazing fast key-value database written in pure Dart.
Stars: ✭ 2,681 (+292.53%)
Mutual labels:  database, key-value
Bolt
An embedded key/value database for Go.
Stars: ✭ 12,415 (+1717.72%)
Mutual labels:  database, key-value
Sdb
Simple and fast string based key-value database with support for arrays and json
Stars: ✭ 159 (-76.72%)
Mutual labels:  database, key-value
Bitnami Docker Redis
Bitnami Redis Docker Image
Stars: ✭ 317 (-53.59%)
Mutual labels:  database, key-value
Lmdbjava
Lightning Memory Database (LMDB) for Java: a low latency, transactional, sorted, embedded, key-value store
Stars: ✭ 546 (-20.06%)
Mutual labels:  database, key-value

histore

Histore npm

Histore [his·to·ry]: a 200b key-value store backed by navigation state.

Does the fact that sessionStorage/localStorage is shared across tabs have you down?

Don't worry, here's a strange but widely supported way to store 640kb of object data in a page's navigation state.

View Demo on JSFiddle

Usage

import histore from 'histore'

let storage = histore()

storage.set('foo', 'bar')
storage.get('foo')  // 'bar'

storage.set('obj', { any: 'object' })
storage.get('obj').any  // 'object'

Interestingly, due to the way history.replaceState works, storing objects will implicitly clone them using the Structured Clone algorithm.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Changelog

Every release, along with the migration instructions, is documented on the Github Releases page.

License

Apache 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].