radar pack
Browse, inspect, and install pre-configured rule packs for specific tech stacks like NestJS + Prisma DDD or Express + Mongoose MVC.
radar pack
Rule packs are pre-configured sets of architecture rules, runtime checks, reliability rules, and gate conditions tuned for specific tech stacks. Instead of writing rules.yml from scratch, install a pack that matches your stack.
Plan requirement: Installing rule packs requires Pro plan or above.
Subcommands
| Subcommand | Description |
|---|---|
radar pack list | List all available rule packs |
radar pack info <name> | Show details about a specific pack |
radar pack install <name> | Install a pack (generates radar.yml + rules.yml) |
radar pack list
Browse all available packs, optionally filtered by framework, ORM, or tag.
radar pack list [options]
Options
| Flag | Description |
|---|---|
--tag <tag> | Filter by tag (e.g., strict, security, starter) |
--framework <fw> | Filter by framework (e.g., nestjs, express, fastify) |
--orm <orm> | Filter by ORM (e.g., prisma, typeorm, mongoose) |
Example
$ radar pack list
Pack Description
────────────────────────────────────── ───────────────────────────────────────────────────────
nestjs-prisma-ddd-strict Strict DDD enforcement for NestJS + Prisma with full...
nestjs-prisma-ddd-relaxed Relaxed DDD rules for teams transitioning to domain-...
nestjs-typeorm-feature-module Feature-module architecture for NestJS + TypeORM with...
express-sequelize-layered Classic layered architecture for Express + Sequelize ...
express-mongoose-mvc MVC pattern enforcement for Express + Mongoose with r...
fastify-prisma-clean Clean Architecture rules for Fastify + Prisma with st...
nestjs-starter Minimal starter rules for new NestJS projects with ba...
node-api-security Security-focused rules for any Node.js API: input val...
performance-focused Performance-first rules: query optimization, event lo...
reliability-focused Reliability rules: error handling, timeouts, retry pol...
10 packs available. Use radar pack info <name> for details.
Filtering
# Show only NestJS packs
$ radar pack list --framework nestjs
Pack Description
────────────────────────────────────── ───────────────────────────────────────────────────────
nestjs-prisma-ddd-strict Strict DDD enforcement for NestJS + Prisma with full...
nestjs-prisma-ddd-relaxed Relaxed DDD rules for teams transitioning to domain-...
nestjs-typeorm-feature-module Feature-module architecture for NestJS + TypeORM with...
nestjs-starter Minimal starter rules for new NestJS projects with ba...
4 packs available. Use radar pack info <name> for details.
# Show packs tagged "security"
$ radar pack list --tag security
Pack Description
────────────────────────────────────── ───────────────────────────────────────────────────────
node-api-security Security-focused rules for any Node.js API: input val...
1 pack available. Use radar pack info <name> for details.
radar pack info
View full details about a specific rule pack, including stack requirements, rule counts, and install command.
radar pack info <name>
Example
$ radar pack info nestjs-prisma-ddd-strict
NestJS + Prisma DDD Strict
nestjs-prisma-ddd-strict v1.0.0
Strict DDD enforcement for NestJS + Prisma with full layer isolation,
cross-module boundary checks, and aggressive runtime safety rules.
Designed for teams committed to domain-driven design.
Stack: NestJS + Prisma + TypeScript + ddd
Tags: nestjs, prisma, ddd, strict, production
Rules: 12 architecture, 9 runtime, 8 reliability, 5 performance
Gates: 6 blocking conditions
Install: radar pack install nestjs-prisma-ddd-strict
$ radar pack info performance-focused
Performance Focused
performance-focused v1.0.0
Performance-first rules: query optimization, event loop protection,
unbounded operation detection, and N+1 query prevention. Works with
any framework and ORM.
Stack: any + any + TypeScript
Tags: performance, optimization, queries, universal
Rules: 0 architecture, 6 runtime, 3 reliability, 8 performance
Gates: 4 blocking conditions
Install: radar pack install performance-focused
Fuzzy Search
If you mistype a pack name, the command suggests close matches:
$ radar pack info nestjs-prism-ddd
Pack "nestjs-prism-ddd" not found. Did you mean:
- nestjs-prisma-ddd-strict — NestJS + Prisma DDD Strict
- nestjs-prisma-ddd-relaxed — NestJS + Prisma DDD Relaxed
radar pack install
Install a rule pack into your project. Generates radar.yml and rules.yml in the target directory.
radar pack install <name> [options]
Options
| Flag | Description | Default |
|---|---|---|
--path <dir> | Target directory | . (current directory) |
--force | Overwrite existing radar.yml and rules.yml | false |
Example
$ radar pack install nestjs-prisma-ddd-strict
✓ Installed pack: NestJS + Prisma DDD Strict
Files created:
radar.yml — stack, architecture, layers
rules.yml — 12 arch rules, 9 runtime, 8 reliability, gates
Next steps:
1. Review radar.yml and adjust layers/modules for your project
2. Run: radar scan .
3. Fix any violations or adjust rules.yml thresholds
Preventing Overwrites
By default, install refuses to overwrite existing config files:
$ radar pack install express-mongoose-mvc
radar.yml already exists. Use --force to overwrite.
Force overwrite:
$ radar pack install express-mongoose-mvc --force
✓ Installed pack: Express + Mongoose MVC
All Built-In Packs
| Pack | Stack | Architecture | Best For |
|---|---|---|---|
nestjs-prisma-ddd-strict | NestJS + Prisma | DDD | Production apps with strict layer isolation |
nestjs-prisma-ddd-relaxed | NestJS + Prisma | DDD | Teams transitioning to DDD |
nestjs-typeorm-feature-module | NestJS + TypeORM | Feature-Module | Co-located NestJS modules |
express-sequelize-layered | Express + Sequelize | Layered | Classic controller/service/repo pattern |
express-mongoose-mvc | Express + Mongoose | MVC | Simple MVC applications |
fastify-prisma-clean | Fastify + Prisma | Clean | Clean Architecture with Fastify |
nestjs-starter | NestJS + any | Minimal | New projects, getting started |
node-api-security | Any Node.js | Any | Security-focused rules |
performance-focused | Any | Any | Query optimization, event loop safety |
reliability-focused | Any | Any | Error handling, timeouts, retries |
Combining with radar init
When you run radar init, matching packs are automatically suggested based on your detected stack. You can choose a pack during init instead of configuring rules manually:
$ radar init
✓ Stack: TypeScript + NestJS + Prisma
📦 Matching rule packs found:
1. nestjs-prisma-ddd-strict — Strict DDD enforcement...
2. nestjs-prisma-ddd-relaxed — Relaxed DDD rules...
3. nestjs-starter — Minimal starter rules...
4. custom — Configure rules manually from presets
? Use a rule pack?
Customizing After Install
After installing a pack, you own the generated files. Edit them freely:
# Install a pack as a starting point
radar pack install nestjs-prisma-ddd-strict
# Customize rules
vim rules.yml
# Validate your changes
radar validate