0x (v0.1.29) is an experimental AI-first programming language and compiler that transpiles a concise DSL into full-stack production code for React, Vue 3, Svelte 5, Express, React Native, and Terraform. It significantly reduces boilerplate — a component written in 18 lines of 0x typically generates ~96 lines of TypeScript React. The compiler is distributed as a CLI tool via npm, supports watch mode and project scaffolding, and ships with TypeScript types. Active development, monthly releases. Differentiators: multi-target compilation from a single source, built-in DSL for UI, state, and backend logic, and LSP/IDE support.
npm install 0x-langNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the 0x-lang CLI globally, creates a minimal 0x source file with a stateful page component, and compiles it to a React component.
Upgrade to >=0.1.0 and use `0x build` (defaults to source files). For JSON output, pipe through a custom formatter.
Update Node.js to 18+ using nvm or your package manager.
Replace `--format` with `--target` in CLI commands. Example: `0x build app.ai --target react`.
Ensure your project uses React 18+. If stuck on React 17, compile with `--target react-17`? No such option — fork or avoid.
Run `npm install -g 0x-lang` or use `npx 0x-lang build ...`.
Use `import compile from '0x-lang'` (ESM) or `const compile = require('0x-lang').default` (CJS).Upgrade to >=0.1.0 or use `--format` if on older version: `0x build app.ai --format react`.