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

@medishn/qiks

v2.0.0

Published

A high-performance, feature-rich caching library in TypeScript designed for versatility and real-world applications.

Downloads

29

Readme

QIKS

High-Performance TypeScript Caching Library
Smart Caching for Modern Applications

🔍 Introduction

QIKS is a next-generation caching solution designed for TypeScript/JavaScript applications requiring blazing-fast in-memory operations, enterprise-grade features, and unparalleled flexibility. Born from real-world needs in high-traffic systems, QIKS combines robust caching fundamentals with innovative capabilities.

🚀 Why Choose QIKS?

| Feature | Benefit | | ----------------------------- | ----------------------------------------------- | | µs-level Operations | Handle 1M+ ops/sec with sub-millisecond latency | | Military-Grade Eviction | LRU, LFU, MRU | | Real-Time Insights | Built-in monitoring with 20+ metrics | | Event-Driven Architecture | 12+ event types with microsecond response | | TypeSafe™ Guarantee | Full TypeScript generics support | | Storage Agnostic | Map, WeakMap, or bring your own adapter |

🌟 Features

Core Capabilities

  • Lightning-Fast CRUD
    Atomic operations with O(1) complexity
  • Hybrid Expiration
    TTL + idle timeout + manual expiration
  • Dependency Graph
    Automatic cascade invalidation
    cache.set('order:123', data, {
      dependsOn: 'user:45',
    });
  • Namespace Isolation
    Logical separation without multiple instances
    const userCache = cache.namespace('users');

Advanced Features

  • CacheTools Suite

    • BatchOps: Bulk insert/update/delete
    • Functional: Map/filter/reduce pipelines
    • FileOps: Disk persistence & hydration
    // Batch insert 1K items
    cache.cacheTools.batchOps.setBatch(massiveDataset);
    
    // Save to disk
    await cache.cacheTools.fileOps.export('backup.json');
  • Event System

    cache.on(EventType.Expire, ({ key }) => {
      console.log(`Expired: ${key}`);
    });
  • Adaptive Memory Management
    Automatic scaling with heap pressure detection

📦 Installation

npm install @medishn/qiks
# or
yarn add @medishn/qiks

🛠 Usage

Basic Setup

import { Qiks } from '@medishn/qiks';

interface UserProfile {
  id: string;
  name: string;
}

// Create a cache instance with custom configuration
const cache = new Qiks<string, UserProfile>({
  maxSize: 10000, // Maximum number of items
  evictionPolicy: 'LRU', // Eviction strategy
  storage: 'map', // Use native Map for storage
});

// Set a cache entry with a TTL (in milliseconds)
cache.set('user:123', { id: '123', name: 'Alice' }, { ttl: 60000 });

// Retrieve the cache entry
const user = cache.get('user:123');
console.log(user); // Outputs: { id: '123', name: 'Alice' }

// Use namespaces to isolate cache entries
const userCache = cache.namespace('users');
userCache.set('456', { id: '456', name: 'Bob' });
console.log(userCache.get('456')); // Outputs: { id: '456', name: 'Bob' }

📚 Documentation

| Resource | Description | Link | | ----------------- | -------------------------------- | -------------------------------------------------------------------- | | Core Concepts | Architecture & Design Philosophy | Wiki | | API Reference | Complete Method Documentation | API Docs |

🛡 Benchmarks

Performance Overview

QIKS outperforms popular alternatives in key metrics:

| Operation | QIKS v2.1 | Competitor A | Competitor B | Improvement | | ---------- | --------- | ------------ | ------------ | ------------ | | SET | 0.02µs | 0.15µs | 0.12µs | 6-7x faster | | GET | 0.01µs | 0.08µs | 0.06µs | 6-8x faster | | DELETE | 0.01µs | 0.10µs | 0.08µs | 8-10x faster |

NOTE: Eviction timing is slightly higher due to TTL overhead but remains within acceptable limits

🤝 Contributing

We welcome contributions! Please follow our
Contribution Guidelines.

Quick Start for Devs:

git clone https://github.com/medishen/qiks.git
cd qiks
npm install
npm run test

📜 License

MIT License - See LICENSE

📬 Contact

| Channel | Details | | --------------- | --------------------------------------------------------- | | Issues | GitHub Issues | | Discussions | Q&A Forum | | Email | [email protected] |

QIKS - Because Your Data Deserves Speed®
An open-source project by MediSHN Technologies