Understands more than routes
NestBruno follows local TypeScript imports, resolves DTO classes, interfaces and a conservative Zod subset in separate files, and generates complete JSON body skeletons β without executing anything.
A Rust CLI that reads your controllers and their imported DTOs β statically, without ever running your application β and keeps a Bruno API collection synchronized with the API you are actually building.
A @Body() parameter is just a type name β unless your tool understands what that name points to. NestBruno resolves DTO declarations in separate files and turns them into usable request bodies:
// users.controller.ts
import { CreateUserDto } from './dto/create-user.dto';
@Controller('users')
export class UsersController {
@Post()
create(@Body() dto: CreateUserDto) {}
}// dto/create-user.dto.ts
export class CreateUserDto {
name: string;
email: string;
password: string;
}Generated Bruno request β body included:
{
"name": null,
"email": null,
"password": null
}Controller βββΆ imported DTO βββΆ property extraction βββΆ JSON skeleton βββΆ Bruno requestClass DTOs and Zod schemas (z.object, z.infer, createZodDto, statically provable transformations) are both supported β through relative imports, barrels and re-exports, bounded to four hops. Anything NestBruno cannot resolve confidently stays an empty body, never a guessed one.
Component benchmarks from the shipped Criterion suite (release build; i7-1255U, Linux; see methodology):
Component benchmarks, not full-pipeline timings; absolute values vary with hardware. Reproduce with cargo bench.
nestbruno init # write nestbruno.toml with sane defaults
nestbruno watch # generate the collection, then keep it in syncEdit src/users/users.controller.ts:
@Controller('users')
export class UsersController {
@Get(':id')
findOne(@Param('id') id: string) {}
@Post()
create(@Body() dto: CreateUserDto) {}
}β¦and the collection updates itself:
Changed: src/users/users.controller.ts
Routes affected: 2
Created: 1 Updated: 1 Deleted: 0 Conflicts: 0bruno/
βββ bruno.json
βββ Users/
βββ find-one.bru # GET {{baseUrl}}/users/:id + path params
βββ create.bru # POST {{baseUrl}}/users + JSON body skeletonEvery .bru file is valid Bruno β generated files round-trip through Bruno's own parser β and ends with a tool stamp in its docs block, which is how NestBruno knows what it owns and what you own. Hand-written requests and files you edited are preserved and reported as conflicts, never overwritten.
Install the official Agent Skill and your coding agent learns to operate NestBruno: inspect NestJS routes and DTO metadata through machine-readable JSON, keep Bruno collections in sync safely, and generate or update accurate API documentation from verified results β instead of guessing from decorators.
npx skills add Silent-Watcher/nestbruno --skill nestbrunoThe skill ships from this repository β no npm package, no extra install. See the Agent Skill guide for what the agent learns and how to use it.