Skip to content
/ EnIndex Public

Encrypted IndexedDB - Designed for convenience of use, open-source, with encryption for Web3

License

Notifications You must be signed in to change notification settings

desiic/EnIndex

Repository files navigation

EnIndex

Encrypted IndexedDB - Designed for convenience of use, using Promise instead of callback or multiple callbacks for events.

Git Clone

Repository

Coding Convention

Similar to C++ STL with one exceptional rule for compound properties/variables.

  • my_namespace
  • my_class
  • my_method (or function var, or event)
  • my_primitive (maths is using both lower-case and upper-case, bool or number)
  • My_Compound (maths is using both lower-case and upper-case, others)
  • MY_CONSTANT

Database Convention

Primary field id (in-line key, auto-incremented) is always added by default to all object stores. Special object stores such as op_hist (operation history), fts (full-text search) are added to index schema by default when using those features too.

Documentation

Usage

  • Use eidb class in global scope; see doc: eidb

Quick Start and Guides

Source Code Documentation

Tools

  • JSDoc, clean-jsdoc-theme Template

Lib Fixes

JSDoc: Error TypeError: Do not know how to serialize a BigInt

at JSON.stringify (<anonymous>)
at exports.nodeToValue (/usr/lib/node_modules/jsdoc/lib/jsdoc/src/astnode.js)

How to Fix:

Dependencies

Generate/Encryption/Decryption

  • Web Crypto API

Generate/Sign/Verify

  • Elliptic

About

Encrypted IndexedDB - Designed for convenience of use, open-source, with encryption for Web3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages