Framework adapters for Trigger.dev SDK integration in a Turborepo monorepo using Bun
This skill helps you work with the trigger-adapters repository, a Turborepo monorepo containing framework-specific adapters for Trigger.dev SDK integration. The project uses Bun as the package manager and Biome for linting/formatting.
The monorepo contains:
- `/src/core.ts` - Core trigger function wrapping `@trigger.dev/sdk`
- `/src/express.ts` - Express.js adapter
- `/src/hono.ts` - Hono adapter
- `/src/nextjs.ts` - Next.js adapter
From the repository root:
```bash
bun install
```
**Build all packages:**
```bash
bun run build
turbo run build
```
**Development mode (all packages with watch):**
```bash
bun run dev
turbo run dev
```
**Lint and format with Biome:**
```bash
bun run check
bun run check:write
```
**Type checking across all packages:**
```bash
bun run check-types
turbo run check-types
```
**Target specific packages:**
```bash
turbo run build --filter=trigger-adapters
turbo run dev --filter=www
```
Navigate to the package directory:
```bash
cd packages/trigger-adapters
```
**Build the library (uses tsdown):**
```bash
bun run build
```
**Development mode with watch:**
```bash
bun run dev
```
**Run tests with Vitest:**
```bash
bun run test
```
**Type checking:**
```bash
bun run typecheck
```
**Release new version (uses bumpp):**
```bash
bun run release
```
Navigate to documentation site:
```bash
cd apps/www
```
**Start dev server:**
```bash
bun run dev
```
**Build documentation:**
```bash
bun run build
```
**Preview built documentation:**
```bash
bun run preview
```
Each adapter follows this structure:
1. **Core Function** (`core.ts`) - Wraps the Trigger.dev SDK's `tasks.trigger()` function
2. **Framework Adapters** - Each exports a `handler()` function that:
- Extracts the task ID from request parameters (typically `params.id`)
- Extracts payload from request body
- Calls the core `trigger()` function
- Returns result in framework-appropriate format
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/trigger-adapters-development/raw