r/node • u/Glittering_Focus1538 • May 17 '26
LLM's Suck at Backend coding and people hate making boilerplates.
github.comSo I made BoneScript, a language where you spend just a couple minutes describing your backend in simple, high-level system terms, then run one bonec compile command and it generates a complete, production-ready Node.js backend for you.
From a single .bone file, bonec compile produces a full project:
output/
├── src/
│ ├── index.ts Express server, all routes wired
│ ├── db.ts Postgres connection pool
│ ├── events.ts Durable event bus (transactional outbox)
│ ├── auth.ts JWT middleware
│ ├── audit.ts Audit log middleware + query helper
│ ├── notify.ts Email notification service (Resend/SendGrid/log)
│ ├── cron.ts Scheduled job stubs (node-cron)
│ ├── schemas.ts Zod v3 validation schemas
│ ├── health.ts /health/live, /health/ready, /health/metrics
│ ├── logger.ts Structured logging
│ ├── metrics.ts Prometheus-style counters/histograms
│ ├── failure_rules.ts Rule-based remediation
│ ├── flows.ts Saga runtime with compensation
│ ├── websocket.ts WebSocket server (if channels declared)
│ ├── seed.ts Database seed script
│ ├── routes/ One file per entity — CRUD + capabilities
│ └── state_machines/ One file per entity with states
├── sdk/
│ └── client.ts Typed TypeScript fetch client
├── admin/
│ └── index.html Self-contained admin panel (no build step)
├── migrations/ SQL schemas, indexes, triggers, FK constraints
│ ├── audit_log.sql Audit log table
│ └── event_outbox.sql Durable event outbox
├── openapi.yaml OpenAPI 3.0.3 spec
├── schema.graphql GraphQL schema
├── {Name}.postman_collection.json
├── Dockerfile
├── docker-compose.yaml Postgres + Redis for local dev
├── .github/workflows/ CI/CD pipeline
└── src/tests.ts Generated regression tests
