justhamade/triadjs

Triad is a TypeScript/Node.js framework where API specification, implementation, validation, and testing are a single source of truth.

23Stars on the repository
20Mods indexed here, across every type
4mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

triad-adapters

01

justhamade/triadjs

Skill Claude CodeCodex

Use when mounting a TriadJS router on Fastify (triadPlugin), Express (createTriadRouter), or Hono (createTriadHono), configuring per-request services, or choosing which adapter fits a deployment target. Fastify is the only adapter with WebSocket support.

23 4mo ago A 66 tokens original MIT

triad-behaviors

02

justhamade/triadjs

Skill Claude CodeCodex

Use when writing TriadJS BDD scenarios, wiring .given().when().then().and() chains, choosing assertion phrases, using scenario.auto() for schema-derived adversarial tests, or debugging "Unrecognized assertion" errors. Authoritative phrase table for the heuristic assertion parser.

23 4mo ago A 63 tokens original MIT

triad-channel

03

justhamade/triadjs

Skill Claude CodeCodex

Use when declaring TriadJS WebSocket channels with channel(), wiring onConnect/onDisconnect/handlers, typing per-connection state via the phantom witness, using ctx.broadcast/ctx.broadcastOthers/ctx.send, or implementing first-message auth for browsers.

23 4mo ago A 66 tokens original MIT

triad-cli

04

justhamade/triadjs

Skill Claude CodeCodex

Use when running the triad CLI — triad test, triad docs, triad gherkin, triad db generate, triad validate, triad fuzz — configuring triad.config.ts, debugging CLI errors, or understanding flag behavior.

23 4mo ago A 64 tokens original MIT

triad-drizzle

05

justhamade/triadjs

Skill Claude CodeCodex

Use when generating Drizzle ORM schemas from TriadJS models via triad db generate, choosing a dialect (sqlite/postgres/mysql), declaring .storage() hints on fields, designing repositories around the generated tables, or handling isUniqueViolation for domain-level conflict detection.

23 4mo ago A 61 tokens original MIT

triad-endpoint

06

justhamade/triadjs

Skill Claude CodeCodex

Use when declaring TriadJS HTTP endpoints with endpoint(), wiring request/responses/handler/beforeHandler, building a router with createRouter and router.context() bounded contexts, designing auth via beforeHandler, or debugging ctx.respond/ctx.state/ctx.services.

23 4mo ago A 74 tokens original MIT

triad-schema

07

justhamade/triadjs

Skill Claude CodeCodex

Use when designing TriadJS schemas — t.model(), t.value(), primitives (t.string, t.int32, t.enum, t.datetime, t.file), collections (t.array, t.record, t.tuple, t.union), model operations (.pick, .omit, .partial, .extend, .merge, .named), or DDD entities and value objects. Loaded by using-triadjs when schema work is…

23 4mo ago A 108 tokens original MIT

triad-services

08

justhamade/triadjs

Skill Claude CodeCodex

Use when wiring dependency injection for TriadJS — declaring services, module-augmenting ServiceContainer, creating createServices() factories, and threading repositories/clients onto ctx.services with full type inference and no casts.

23 4mo ago A 50 tokens original MIT

triad-testing

09

justhamade/triadjs

Skill Claude CodeCodex

Use when wiring the TriadJS test runner — triad.config.ts, test-setup.ts default-exported services factory, per-scenario DB isolation, teardown, fixtures, and scenario.auto() for schema-derived adversarial tests. Tests run in-process — no HTTP, no adapter middleware.

23 4mo ago A 68 tokens original MIT

using-triadjs

10

justhamade/triadjs

Skill Claude CodeCodex

Use whenever the user mentions TriadJS, the @triadjs/ packages, t.model(), endpoint(), channel(), scenario(), triad test, triad docs, or asks to build a TypeScript backend with validation + OpenAPI + BDD tests from one definition. Overview of the framework and pointer to the focused sub-skills.

23 4mo ago A 85 tokens original MIT