A lightweight vanilla ES6 JavaScript library for managing cookies and local storage with a unified API.
CrumbsJS is a lightweight JavaScript library that simplifies working with browser cookies and local storage. It provides a clean, unified API for setting, getting, and deleting storage items, reducing the complexity of native browser APIs. The library handles common edge cases like batch operations and automatic fallbacks when local storage is unavailable.
Frontend developers who need a straightforward, dependency-free solution for managing client-side storage in web applications. It's particularly useful for those working with vanilla JavaScript or ES6 projects.
Developers choose CrumbsJS for its zero-dependency design, consistent API across cookies and local storage, and built-in fallback handling. It's significantly lighter and more intuitive than writing native storage code manually.
A lightweight vanilla ES6 cookies and local storage JavaScript library
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Pure vanilla JavaScript with no external libraries, making it lightweight and easy to integrate without bloating projects.
Provides consistent methods for both cookies and local storage via crumbs and crumbs.ls, reducing boilerplate and cognitive load.
Supports setting, getting, or deleting multiple items in a single call, improving efficiency for bulk storage management.
Handles edge cases like Safari private browsing by falling back to cookies when local storage is unavailable, ensuring reliability.
ES5 compatible and tested with Jest, working across modern and legacy browsers without polyfills.
Only supports cookies and local storage; IndexDB and session storage are listed as future plans but not yet implemented, restricting use for complex data needs.
Lacks advanced features like custom expiration units beyond days, server-side rendering support, or native handling of complex data types like JSON without manual serialization.
README covers basic usage but lacks details on advanced scenarios such as domain-specific cookies, error handling, or integration with build tools beyond simple imports.
As a niche library, it has limited community support, plugins, or framework-specific guides compared to more established alternatives.