npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@anshul28/storage-core-hrms

v1.0.9

Published

storage-core-hrms

Readme

storage-core-hrms

A type-safe, extensible TypeScript browser storage service designed with an adapter pattern, built-in AES encryption, and RxJS observable support. It defaults to sessionStorage out of the box.FeaturesAdapter Architecture: Easily switch between sessionStorage and localStorage.Built-in AES Encryption: Secure sensitive information using crypto-js.Reactive Events: Listen to storage changes reactively using rxjs observables.Type Safety: Fully typed models, options, and interfaces.Dual Formats: Ships with both CommonJS (.js) and ESM (.mjs) bundles with built-in declaration files (.d.ts).Installationbashnpm install @anshul28/storage-core-hrms Use code with caution.Quick Start1. Basic Initialization (Defaults to Session Storage)typescriptimport { StorageService } from '@anshul28/storage-core-hrms';

// Initializes with SessionStorageAdapter by default const storageService = new StorageService();

// Set a value storageService.set('username', 'anshul_dev');

// Get a value const user = storageService.get('username'); // 'anshul_dev' Use code with caution.2. Switching to Local Storagetypescriptimport { StorageService, LocalStorageAdapter } from '@anshul28/storage-core-hrms';

const persistentStorage = new StorageService({ adapter: new LocalStorageAdapter() });

persistentStorage.set('remember_me', true); Use code with caution.3. Using Encrypted StorageLeverage the aes-encryption.service by passing encryption configurations to your storage service options.typescriptimport { StorageService, AesEncryptionService } from '@anshul28/storage-core-hrms';

const secureStorage = new StorageService({ encryption: new AesEncryptionService({ secretKey: 'your-secure-key' }) });

// Automatically encrypts before saving and decrypts on retrieval secureStorage.set('secureToken', 'secret-jwt-string'); Use code with caution.4. Listening to Storage Events via Observablestypescript// Subscribe to change streams reactively storageService.watch('username').subscribe((event) => { console.log(Key ${event.key} changed from ${event.oldValue} to ${event.newValue}); }); Use code with caution.Directory Architecture ReferenceThe package layout maps directly to clean architecture principles:textsrc/ ├── adapters/ # Storage engines (session, local, custom interfaces) ├── encryption/ # AES-encryption implementations ├── models/ # Storage events, items, and option interfaces ├── observables/ # RxJS reactive stream utilities ├── services/ # Core StorageService orchestrator └── utils/ # Internal helper modules Use code with caution.Developmentbash# Start tsup in watch mode npm run dev

Build production bundles (ESM/CJS)

npm run build Use code with caution.LicenseISC