TypeScript utilities for chttp apps, authored in the scriptc-compilable subset and shipped as packages that compile to native ELF binaries.
| Package | What it does |
|---|---|
@cutils/sqlite |
Embedded SQLite: Database/Stmt/Transaction with a Standard-Schema row seam, vendored amalgamation + C shim, compiles into the ELF |
@cutils/postgres |
Postgres wire driver over node:net + node:crypto (SCRAM-SHA-256, txns, LISTEN/NOTIFY), no FFI |
@cutils/mongo |
MongoDB wire driver (OP_MSG + BSON, SCRAM-SHA-1/256, txns), no FFI |
@cutils/cache |
LRU + TTL in-process cache with lru-cache parity semantics |
- Ships
@cutils/*and@chttp/*packages whose sources stay inside the scriptc subset, soscriptc buildlowers your app — utilities included — into one static binary. - Uses the Standard-Schema seam (
schema["~standard"].validate) wherever a package needs user-typed data:@chttp/val, valibot, or any conforming validator plugs in. - Zero runtime dependencies per package; the docs site, tests, and CI mirror the chttp monorepo setup.
pnpm install
pnpm -r build
pnpm -r test
pnpm docs:buildSee CONTRIBUTING.md for the change-intent workflow and RELEASING.md for the release process.