Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 2.02 KB

README.md

File metadata and controls

34 lines (27 loc) · 2.02 KB

cutils

TypeScript utilities for chttp apps, authored in the scriptc-compilable subset and shipped as packages that compile to native ELF binaries.

License CI

Packages

Package What it does
@cutils/ffi Shared scriptc format-7 FFI spec (sqlite's span ABI) + Rust struct-echo smoke
@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
@cutils/cli Type-first declarative CLI builder: typed options, generated help/version, Standard-Schema seam

What it does

  • Ships @cutils/* and @chttp/* packages whose sources stay inside the scriptc subset, so scriptc build lowers 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.

Development

pnpm install
pnpm -r build
pnpm -r test
pnpm docs:build

See CONTRIBUTING.md for the change-intent workflow and RELEASING.md for the release process.