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

channel

01

justhamade/triadjs

Command

Add a new WebSocket channel to a TriadJS router — connection params, clientMessages/serverMessages, onConnect/onDisconnect, handlers, and behaviors.

23 4mo ago A 39 tokens original MIT

docs

02

justhamade/triadjs

Command

Run triad docs to regenerate OpenAPI 3.1 and (if the router has channels) AsyncAPI 3.0, then summarize what was written.

23 4mo ago A 35 tokens original MIT

endpoint

03

justhamade/triadjs

Command

Add a new HTTP endpoint to an existing TriadJS router — request/response schemas, handler, auth via beforeHandler if needed, and behavior scenarios.

23 4mo ago A 33 tokens original MIT

model

04

justhamade/triadjs

Command

Add a new TriadJS t.model (or t.value) to an existing project, along with derived request DTOs (CreateX, UpdateX) and the models[] entry in the bounded context.

23 4mo ago A 45 tokens original MIT

new

05

justhamade/triadjs

Command

Scaffold a new TriadJS backend project from scratch — package.json, schemas, an endpoint with behaviors, Fastify server, and test config.

23 4mo ago A 30 tokens original MIT

scenario

06

justhamade/triadjs

Command

Add BDD behavior scenarios to an existing TriadJS endpoint or channel. Writes .given().when().then() chains using only valid assertion phrases from the parser table.

23 4mo ago A 34 tokens original MIT

test

07

justhamade/triadjs

Command

Run triad test and diagnose any failures, using the triad-cli and triad-behaviors skills to interpret errors precisely.

23 4mo ago A 32 tokens original MIT

validate

08

justhamade/triadjs

Command

Run triad validate --strict and fix any consistency issues — duplicate endpoint names, duplicate routes, missing responses, unknown model references, or bounded-context leaks.

23 4mo ago A 33 tokens original MIT