Guardrail
- **Runtime**: Node.js - **Framework**: Express 4.x - **Entry point**: `api/server.js` - **Port**: 3001
Install / Use
npx skills add codewithrakshit/GuardrailInstalls into whichever agent you are using.
Amazon Q Rules
Amazon Q Developer rules
Quality Score
Category
Development & EngineeringSupported Platforms
Skill content
View source on GitHubGuardRail AI — Tech Stack
Backend (api/)
- Runtime: Node.js
- Framework: Express 4.x
- Entry point:
api/server.js - Port: 3001
Middleware
helmet— security headerscors— frontend athttp://localhost:3000express-rate-limit— 50 req/hour defaultcompression— gzipjoi— request validation (api/middleware/validation.js)
AWS SDKs (v3)
| SDK | Usage |
|-----|-------|
| @aws-sdk/client-bedrock-runtime | AI vulnerability analysis via Amazon Bedrock Nova Lite |
| @aws-sdk/client-secrets-manager | Secret provisioning with 24h TTL |
| @aws-sdk/client-dynamodb | Scan results + audit logs |
| @aws-sdk/client-s3 | Patched code storage |
| @aws-sdk/client-cloudwatch-logs | Event logging |
API Routes
| Method | Path | File |
|--------|------|------|
| POST | /api/scan | routes/scan.js |
| GET | /api/result/:id | routes/result.js |
| GET | /api/logs | routes/logs.js |
| POST | /api/demo | routes/demo.js |
| POST/GET | /api/session | routes/session.js |
| GET | /health | inline in server.js |
Core Services (api/services/)
security-orchestrator.js— main workflow coordinatorbedrock-client.js— Bedrock Nova Lite AI callspatch-generator.js— produces patched codesecret-lifecycle-manager.js— Secrets Manager + 24h TTLsession-manager.js— per-scan session isolationevent-logger.js— DynamoDB + CloudWatch audit trailremediation-engine.js— vulnerability remediation logics3-storage.js— S3 upload/download
Frontend (web/)
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Port: 3000
Key Dependencies
axios— API calls to backendlucide-react— iconsprismjs— code syntax highlightingreact-diff-viewer-continued— before/after patch diffs
Pages (web/app/)
/— landing page (page.tsx)/scan— code submission/results— vulnerability report + patch viewer/dashboard— scan history/demo— guided demo
IDE Extension (extensions/vscode/)
- Built with VS Code Extension API
- Works on: VS Code, Kiro, Cursor, Windsurf
- Trigger:
Ctrl+Shift+G - Features: inline diagnostics, quick-fix lightbulb, auto-scan on save
- Packaged as
.vsix
Infrastructure
- Config:
config/aws-config.json - Docker:
api/Dockerfile,web/Dockerfile,docker-compose.yml - Deploy script:
scripts/deploy-infra.js - Env:
api/.env(copy fromapi/.env.example)
Supported Languages for Scanning
JavaScript, TypeScript, Python, Java, Go, Ruby, PHP
Related Skills
momen-cursurrules-prompt-file
40.7kCursor rules for building custom frontends with Momen.app as headless BaaS with GraphQL API, actionflows, AI agents, and Stripe integration.
semiotic-react-dataviz-cursorrules-prompt-file
40.7kCursor rules for Semiotic data visualization library with 30+ chart types, MCP server, and AI-assisted chart generation.
Agent-Reach
75.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
67.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Security Score
Audited on Invalid Date
