The shared TypeScript toolkit behind Clov.
Everything lives in this monorepo, is built with Bun, and published on npm under the @clov-std/ scope.
| Package | What it does |
|---|---|
@clov-std/common |
Common utilities and types library for building robust applications. |
@clov-std/elysia-cache |
Cache plugin for Elysia framework. |
@clov-std/elysia-ratelimit |
Rate limiting plugin for Elysia framework. |
@clov-std/error |
Structured TypeScript exceptions with a machine-readable error key and a typed cause. |
@clov-std/i18n |
Type-safe i18n for TypeScript — define localized exception and message catalogs with compile-time validated parameters. |
@clov-std/jwt |
JWT utilities and helpers for secure token management. |
@clov-std/kv-store |
Abstract key-value store with TTL, increment/decrement, and built-in validation. Ships with an in-memory adapter and a Bun Redis adapter. |
@clov-std/logger |
Type-safe logging library for Bun, modular sink pattern, transform streams, and immutable API design. |
@clov-std/registry |
Centralized, type-safe registry for managing named instances. |
@clov-std/totp |
Time-based One-Time Password (TOTP) implementation in TypeScript. |
bun install
| Command | What it does |
|---|---|
bun run build |
Build all packages |
bun run test |
Run every test suite |
bun run lint |
Lint all packages |
bun run lint:fix |
Lint and auto-fix |
bun run lint:github |
Lint with GitHub Actions output |
bun run docs |
Generate TypeDoc documentation |
bun run clean |
Wipe node_modules, dist, and lock files |
packages/
├── common/ # @clov-std/common
├── elysia-cache/ # @clov-std/elysia-cache
├── elysia-ratelimit/ # @clov-std/elysia-ratelimit
├── error/ # @clov-std/error
├── i18n/ # @clov-std/i18n
├── jwt/ # @clov-std/jwt
├── kv-store/ # @clov-std/kv-store
├── logger/ # @clov-std/logger
├── registry/ # @clov-std/registry
└── totp/ # @clov-std/totp
https://clovlabs.github.io/std/
MIT - Clov