BoneScript Compiler (v0.14.6) compiles .bone system description files into complete, runnable Node.js backends. It generates TypeScript source code for Express.js routes, PostgreSQL schema and queries, authentication middleware, and input validation, making it a DSL-to-code tool for declarative backend development. Released on a monthly-ish cadence, it differentiates from traditional scaffolding tools by producing production-ready code that integrates directly with Express and PostgreSQL. Requires Node.js >=18 and ships TypeScript definitions.
npm install bonescript-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a BoneScript system description into TypeScript code and validates syntax with error reporting.
Update imports to 'bonescript-compiler' and use named exports.
Switch to ESM imports (import ... from ...).
Migrate to compile() and pass framework option.
Always specify a dialect, even if just for clarity.
Always check result.errors after compile() before using result.code.
Change to import { BoneScriptCompiler } from 'bonescript-compiler' and set "type": "module" in package.json.Use import { compile } from 'bonescript-compiler'.Use the correct syntax: query { param?: type } with optional marker ? and type.