Skip to content

TWD Design ​

Test While Designing. The tests exist before the code.

Ask in a Slack thread how a screen would look. TWD Design answers with a clickable HTML prototype that uses your design guide, carries its acceptance criteria as TWD scenarios you can run in the page, and notes for whoever implements it. Iterate in the thread until the team agrees, then it opens a pull request in your repo.

It runs in your infrastructure, with your own Slack app, GitHub App and model key, and stores nothing.

Where it fits in TWD ​

TWD runs tests while you develop. TWD Design moves them one step earlier: the acceptance criteria are agreed in the thread and live in the prototype as TWD scenarios that already pass. Whoever implements the feature starts from those scenarios and builds until they pass in the real app.

StageTool
DesignTWD Design
Buildtwd-js and the TWD agent
CItwd-cli
Reviewtwd-relay and recordings

Requirements ​

MinimumComfortable
Memory512 MB1 GB, if several threads iterate at the same time
CPU0.5 vCPU1 vCPU
DiskAbout 1.6 GB for the image (a 390 MB download), Chromium included
NetworkOutbound HTTPS to Slack, your model provider, GitHub and cdn.jsdelivr.netNo inbound traffic in Socket Mode

Most of the memory goes to the headless Chrome that runs each version's scenarios: the bot uses about 150 MB at rest and up to about 350 MB while checking a version. Chrome closes after a few idle minutes. SCENARIO_CHECK=off skips the check and keeps the bot near 150 MB, but versions are then posted without running their scenarios.

No database, no volume, no state: any container platform works (Docker, Compose, Kubernetes, Render, Fly.io, Railway, ECS, Cloud Run with min instances 1).

Install (about 15 minutes) ​

  1. Create the Slack app from the manifest. 5 min
  2. Create the GitHub App (optional: design guide and pull requests). 5 min
  3. Choose a model and get its API key.
  4. Run it: Docker, Docker Compose, Render or another platform (Fly.io, Railway, Kubernetes…). 5 min
  5. Invite the bot to a channel and mention it.

Guides ​

Reference ​

MIT License · Part of TWD