https://github.com/cachekit-io/cachekit-ts
TypeScript SDK for CacheKit — production-ready caching with zero-knowledge encryption
https://github.com/cachekit-io/cachekit-ts
cache caching encryption napi-rs redis sdk typescript zero-knowledge
Last synced: 11 days ago
JSON representation
TypeScript SDK for CacheKit — production-ready caching with zero-knowledge encryption
- Host: GitHub
- URL: https://github.com/cachekit-io/cachekit-ts
- Owner: cachekit-io
- License: mit
- Created: 2025-12-22T06:43:54.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-06-13T18:46:52.000Z (11 days ago)
- Last Synced: 2026-06-13T19:35:23.109Z (11 days ago)
- Topics: cache, caching, encryption, napi-rs, redis, sdk, typescript, zero-knowledge
- Language: TypeScript
- Homepage: https://cachekit.io
- Size: 348 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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](./packages/cachekit) | Main SDK |
| [@cachekit-io/cachekit-core-ts](./packages/cachekit-core-ts) | Native bindings (N-API) |
## Development
```bash
# 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