NAIDE
AI-optimized language for Node.js
$ npm install -g naider
Multi-target: Node.js, Python (Flask), and Bun
AI-Native
Built-in ai.ask, ai.json, ai.stream, embeddings, RAG, and prompt templates. Zero-dependency LLM integration.
Zero Dependencies
Servers, auth, CRUD, file uploads, WebSockets, job queues, and more — all built into the runtime. No npm install needed.
Minimal Tokens
NAIDE uses ~40% fewer tokens than JavaScript. NAIDE-X uses ~80% fewer. Faster AI generation, more room in context windows.
Two Syntax Modes
.naide is human-readable. .nx is AI-optimized. Convert freely between them with naide convert.
A Full API in 15 Lines
app.naideschema User:
id auto
name str required
email str required email
db "data/"
server app port 3000:
cors "*"
crud "/api/users" User
auth JWT_SECRET:
protect "/api/*"
public "/api/auth/*"
post "/api/ask" (req, res):
str answer = await ai.ask(req.body.prompt)
ret {answer}
What you get✔ REST API with CRUD + pagination
✔ JWT authentication
✔ CORS enabled
✔ Schema validation
✔ Persistent JSON database
✔ AI/LLM endpoint
✔ Auto-generated from ~15 lines
✔ Zero external dependencies
Run it:
$ naide app.naide
Build to JavaScript:
$ naide build
Token Efficiency
| Language | Tokens | Chars | Lines | Savings |
|---|---|---|---|---|
| JavaScript | 330 | 2590 | 78 | — |
| NAIDE | 66 | 517 | 19 | -80% |
| NAIDE-X | 39 | 435 | 19 | -88% |
Benchmark compares equivalent server applications. Fewer tokens means faster AI code generation and more room in context windows.
Learn More
- Getting Started — install, create a project, run your first app
- Syntax Reference — variables, functions, control flow, classes
- Server & API — routes, auth, CRUD, WebSockets, SSE
- AI / LLM — prompts, streaming, embeddings, RAG
- Database — JSON storage, SQLite, PostgreSQL
- Testing — test blocks, assertions, mock/spy
- CLI Reference — all commands and flags
- NAIDE-X Syntax — compressed AI-only syntax