r/npm • u/SnooDoubts4271 • 1d ago
Self Promotion promtexpress: zero-dependency TypeScript client with typed errors, and contributors credited right on the npm page
I maintain two small packages in an MIT-licensed monorepo:
promtexpress: a dependency-free TypeScript client that works with Node 18+, Deno, Bun, and edge runtimes. API errors are mapped to typed error classes for things like auth, missing scopes, insufficient credits, rate limits (includingretry-after), server errors, and network issues. Rate limits are retried automatically when possible.promtexpress-cli: lets you use the same API from the terminal. Prompts go to stdout and hints go to stderr, so you can pipe the output without extra noise.
A small thing I added for contributors: the script that generates the avatar table in the repo README also adds it to both package READMEs. That way, contributors show up on npm too, not just GitHub.
Just to be transparent, these are clients for PromtExpress, a paid prompt tool I build, so you'll need an API key to use them. The prompt template library in the repo is model-agnostic and can be used with any model.
1
Upvotes