Skip to content

cachekit-io/cachekit-ts

Repository files navigation

cachekit-ts

TypeScript SDK for CacheKit - Production-ready Redis caching with L1 in-memory, SWR, and zero-knowledge encryption.

Packages

Package Description
@cachekit-io/cachekit Main SDK
@cachekit-io/cachekit-core-ts Native bindings (N-API)

Development

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Lint
pnpm lint

Architecture

cachekit-ts/
├── packages/
│   ├── cachekit/           # TypeScript SDK
│   │   ├── src/
│   │   │   ├── cache.ts          # Core cache implementation
│   │   │   ├── intents.ts        # Intent-based API (.minimal, .production, .secure, .io)
│   │   │   ├── backends/         # Redis backend
│   │   │   ├── l1/               # In-memory LRU cache
│   │   │   ├── reliability/      # Circuit breaker, retry
│   │   │   ├── encryption/       # Encryption manager
│   │   │   ├── serialization/    # MessagePack + key gen
│   │   │   └── invalidation/     # Redis pub/sub
│   │   └── test/
│   │       ├── integration/      # Redis integration tests
│   │       └── protocol/         # Protocol v1.0 compliance
│   │
│   └── cachekit-core-ts/   # Rust N-API bindings
│       ├── src/lib.rs            # ByteStorage, Encryptor, KeyRotation
│       └── Cargo.toml
│
├── .github/workflows/      # CI/CD
├── turbo.json              # Build orchestration
└── pnpm-workspace.yaml

License

MIT

About

TypeScript SDK for CacheKit — production-ready caching with zero-knowledge encryption

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors