Skip to content

CRSantiago/StoreSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StoreSync

A library that simplifies the interaction with web storage APIs. It will automatically handle serialization and deserialization of complex data types to and from JSON, provide a fallback for cookies if local or session storage isn't available, and offer a simple API for common actions like get, set, and delete.

How will we get there?

  1. User-Friendly API
  • Consistency: Similarly to Web Storage API, items are retrieved and stored using getItem and setItem respectively. However, this is irrespective of storage type.
  1. Advance Serialization/Deserialization
  • Current Support: Dates, null/undefined, BigInts
  • Future Support: Circular Objects, Functions
  1. Storage Fallbacks
  • logic to switch between storage methods (localStorage, sessionStorage, cookies, IndexedDB) when certain conditions are met.
  1. Enhanced Security
  • Encryption and decryption functionalities for the data before setting it and after getting it from storage.
  • Local, or server-side key management
  1. Data Expiry
  • Manage data expiry features, including setting up TTL (time to live) for stored items and clearing them when they expire.
  1. Quota Management
  • Handle quota exceedance by providing strategies for data prioritization and deletion.

Future Goals:

  • State Management
  • Hooks and Events

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published