Small, dependency-free AI-developer utilities — free to use (MIT). Built and open-sourced by Gus IT LLC, the team behind the Luca Express AI platform and RW Exprès.
These are the little things we reach for constantly when building AI products — the kind of helper you'd otherwise paste from a gist. Take them, embed them, ship them. No attribution required (though a ⭐ tells us which ones to grow).
| Module | What it does |
|---|---|
extract-json |
Pull a valid JSON value out of messy LLM output (fences, prose, trailing commas, smart quotes). |
retry-backoff |
Retry any async call with exponential backoff + full jitter, honoring Retry-After. Tuned for flaky LLM/API calls. |
llm-cost |
Estimate USD cost across the four token classes (input / output / cache-write / cache-read). Bring your own rate table. |
sse-parse |
Turn a streaming Server-Sent-Events body (OpenAI/Anthropic style) into parsed events — handles chunk-split boundaries and [DONE]. |
redact-pii |
Best-effort scrub of emails, keys, tokens, cards, and private keys before you send text to an LLM or a log. |
Every file is standalone, dependency-free ESM, and has a runnable self-test at the bottom (node src/<file>.mjs).
Copy the file you want, or:
npm i @gusitllc/luca-communityimport { extractJson } from '@gusitllc/luca-community/src/extract-json.mjs';- Open technique library — 80+ deeper building blocks for AI platforms and agent fleets, each with a full technical write-up (AGPL-3.0 + commercial): browse the
gusitllcorg. - Commercial platform & AI workforce — the full Luca Express platform and our autonomous AI-workforce system (hire AI developer employees per seat) are commercial. If you want the full stack, a commercial license, or to close-source something built on our work → gus@gusit.de.
MIT — do anything you like. If our work helps you, we'd love to hear about it.