| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
WorkIt gives related asynchronous work one owner. A request, batch, agent run, provider chain, or background operation can share cancellation, deadlines, retry budgets, cleanup, context, and lifecycle evidence instead of rebuilding those contracts around disconnected promises.
Native Promise remains the right primitive for one asynchronous value. WorkIt is for the point where several values must start, fail, stop, and clean up as one operation.
Try the AI Failure Lab · Technical documentation · npm package
The AI Failure Lab makes that boundary executable with deterministic incident fixtures:
| Candidate result | Runtime decision |
|---|---|
| Fulfilled candidate, confidence 0.97, no operational evidence | quality_rejected |
| Transient provider failure | retry_same_candidate, charged to one shared retry budget |
| Grounded read-only recommendation | accepted |
| Grounded production rollback | requires_user_input before the mutation |
In the authority scenario, the later unsafe fallback is never admitted and the recorded number of production changes is zero. The browser labels its immediate result as a policy preview; it does not claim to execute the Node.js runtime or contact an AI provider.
The confidence values and evidence references are deterministic fixture inputs, not calibrated model scores or proof of factual truth. WorkIt exposes the decision boundary; application authorization and external side effects remain caller-owned.
Run the same tracked datasets through the published @workit/core@1.0.0 package in Node.js:
git clone https://github.com/WorkRuntime/workit.git
cd workit/examples/ai-failure-lab
npm ci --no-audit --no-fund
npm test
npm startThe scenario contract, deterministic preview, real runtime path, and parity tests live in examples/ai-failure-lab. The production-shaped WorkIt sample is incident-decision-gate.sample.js.
The complete API, examples, explicit limitations, bundle measurements, and evidence commands are maintained in the @workit/core README.
npm install @workit/coreimport { run, work } from "@workit/core";WorkIt is Apache-2.0 licensed. Contributions are welcome through issues and pull requests; please follow CONTRIBUTING.md and CODE_OF_CONDUCT.md.
WorkIt follows semver with a stricter release discipline:
If you use WorkIt in research, benchmarks, or reproducible artifacts, please cite the software release you used:
@software{workit2026,
author = {Admilson B. F. Cossa},
title = {WorkIt: A TypeScript Structured Concurrency Runtime for Node.js Server Runtimes},
year = {2026},
url = {https://github.com/WorkRuntime/workit},
version = {1.0.0},
license = {Apache-2.0}
}This repository uses a monorepo layout. The published package contract is still owned by packages/core.
| Path | Purpose |
|---|---|
| packages/core | Source, tests, samples, evidence, benchmarks, and release scripts for @workit/core. |
| apps/use-cases-site | GitHub Pages site with executable WorkIt examples. |
| articles | Public article drafts and released article materials. |
The monorepo layout must not change how users install or import WorkIt.
The supported consumer paths are listed below. The candidate-policy subpath has been available from npm since 0.6.0.
@workit/core
@workit/core/activity
@workit/core/ai
@workit/core/analysis
@workit/core/candidates
@workit/core/channel
@workit/core/contracts
@workit/core/diagnostics
@workit/core/fault
@workit/core/ledger
@workit/core/observability
@workit/core/otel
@workit/core/replay
@workit/core/resources
@workit/core/time-policy
@workit/core/workerRun the core gates from the repository root:
npm run verify
npm run test:coverage
npm run check:size
npm run check:package-consumer
npm run check:api-declarations
npm run check:compat-previous
npm run check:pack-reproducibilityThe candidate-policy subpath is documented in the @workit/core package README.
Run the site gates from the repository root:
npm run site:build| Back | FazBrowse Home | New Git URL |