Intent-Based Programming - Write what you want, not how
import { nia } from 'niascript';
// It's that simple!
const price = await nia`Bitcoin price`;
const news = await nia`5 tech news`;
const analysis = await nia`analyze ${price} with ${news}`;
console.log(analysis.value);
Write intents as a natural part of JavaScript using backticks. No complex functions needed.
Math, dates, and conversions run locally without any API. Fast and free.
Anything more complex is automatically sent to OpenRouter. Over 100 models available.
Generate complete Node.js scripts from intents. Auto-saved and executable.
Specialized agents for planning, building, reviewing, and testing. They work as a team.
Repeated results are cached. High performance at low cost.
Express server with web dashboard, model selection, and persistent endpoints for every generated script.
Switch AI models from dashboard or API. Supports OpenAI, Grok, Arcee, and any custom OpenRouter model.
import { nia } from 'niascript';
// Math (local - no API)
const calc = await nia`calculate 25 * 4`;
console.log(calc.value); // 100
// Date & Time (local)
const date = await nia`what is today's date`;
// Anything else (AI)
const answer = await nia`what is the capital of France`;