Specify a webhook-driven task for OpenClaw
Describe event inputs, validation, deduplication, and intended actions before integration work.
5,446,782 AI resources indexedWorking toward the world’s largest AI resource index.
An MCP server that provides on-demand skill loading for AI coding assistants.
---
name: bun-typescript-backend-architecture-bb33eefa2004
description: "An MCP server that provides on-demand skill loading for AI coding assistants."
---
# Bun + TypeScript Backend Architecture
## Bun Project Structure
```
my-bun-app/
├── src/
│ ├── routes/ # API routes
│ ├── services/ # Business logic
│ ├── middleware/ # Express-style middleware
│ ├── db/ # Database clients
│ └── index.ts # Entry point
├── tests/
├── package.json
└── tsconfig.json
```
## TypeScript Config
```json
{
"compilerOptions": {
"strict": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"skipLibCheck": true,
"esModuleInterop": true
}
}
```
## Bun HTTP Server
```typescript
// src/index.ts
const server = Bun.serve({
port: 3000,
fetch(req) {
const url = new URL(req.url)
if (url.pathname === '/users' && req.method === 'GET') {
return Response.json({ users: [] })
}
return new Response('Not Found', { status: 404 })
},
})
console.log(`Server running on port ${server.port}`)
```
## Database with Bun
```typescript
// Using Bun's built-in SQL client
const db = new Database('sqlite.db')
const users = db.query('SELECT * FROM users WHERE id = ?').get(userId)
```
## Checklist
- [ ] Install Bun
- [ ] Set up TypeScript
- [ ] Configure strict mode
- [ ] Set up routing
- [ ] Add database client
- [ ] Configure build output
- [ ] Set up testing
---
name: bun-typescript-backend-architecture-bb33eefa2004
description: "An MCP server that provides on-demand skill loading for AI coding assistants."
---
# Bun + TypeScript Backend Architecture
## Bun Project Structure
```
my-bun-app/
├── src/
│ ├── routes/ # API routes
│ ├── services/ # Business logic
│ ├── middleware/ # Express-style middleware
│ ├── db/ # Database clients
│ └── index.ts # Entry point
├── tests/
├── package.json
└── tsconfig.json
```
## TypeScript Config
```json
{
"compilerOptions": {
"strict": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"skipLibCheck": true,
"esModuleInterop": true
}
}
```
## Bun HTTP Server
```typescript
// src/index.ts
const server = Bun.serve({
port: 3000,
fetch(req) {
const url = new URL(req.url)
if (url.pathname === '/users' && req.method === 'GET') {
return Response.json({ users: [] })
}
return new Response('Not Found', { status: 404 })
},
})
console.log(`Server running on port ${server.port}`)
```
## Database with Bun
```typescript
// Using Bun's built-in SQL client
const db = new Database('sqlite.db')
const users = db.query('SELECT * FROM users WHERE id = ?').get(userId)
```
## Checklist
- [ ] Install Bun
- [ ] Set up TypeScript
- [ ] Configure strict mode
- [ ] Set up routing
- [ ] Add database client
- [ ] Configure build output
- [ ] Set up testing
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.