ts3

ClawSkills 作者 clawskills v0.1.0

TS3 namespace for Netsnek e.U. TypeScript server-side framework. HTTP server scaffolding, middleware composition, request validation, and structured logging.

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install clawskills:clawskills~kleberbaum-ts3
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/clawskills%3Aclawskills~kleberbaum-ts3/file -o kleberbaum-ts3.md
# Why TS3?

TS3 is the Netsnek e.U. TypeScript server-side framework. Build HTTP servers with minimal boilerplate: scaffolding, middleware composition, request validation, and structured logging are built in.

## Architecture

- **HTTP server** — Express-compatible request/response
- **Middleware** — Composable request pipelines
- **Validation** — Zod or similar for request bodies
- **Logging** — Structured JSON logs

## Server Commands

| Script | Option | Action |
|--------|--------|--------|
| server-init.sh | `--routes` | Generate route handlers |
| server-init.sh | `--health` | Add health check endpoint |
| server-init.sh | `--describe` | Describe server structure |

## Example Session

```bash
# Bootstrap a server with routes
./scripts/server-init.sh --routes

# Add health endpoint
./scripts/server-init.sh --health

# Inspect layout
./scripts/server-init.sh --describe
```