Installation
INFO
This installation guide is specific to TypeScript/JavaScript. Support for other languages is planned through community-contributed plugins.
Prerequisites
- Node.js 16 or higher
- npm, pnpm, yarn, or bun package manager
Install Atscript
bash
npm install @atscript/typescript
npm install -D @atscript/corebash
pnpm add @atscript/typescript
pnpm add -D @atscript/corebash
yarn add @atscript/typescript
yarn add -D @atscript/corebash
bun add @atscript/typescript
bun add -D @atscript/coreWhat Gets Installed
@atscript/core— parser, AST, and plugin system (dev dependency — build-time only)@atscript/typescript— TypeScript/JavaScript code generation, theascCLI, and runtime utilities (Validator, JSON Schema, serialization, type traversal)
Optional Packages
unplugin-atscript— Build tool integration (Vite, Webpack, Rollup, esbuild, Rolldown, Rspack, Farm). See Build Setup.@atscript/moost-validator— Moost framework validation integration. See Moost Validator.- Database integrations —
@atscript/db,@atscript/db-sqlite,@atscript/db-mongo,@atscript/db-mysql,@atscript/moost-db, etc. live in a separate repo and are installed alongside@atscript/typescriptwhen needed.
Verify Installation
After installation, verify that the asc compiler is available:
bash
npx asc --helpbash
pnpm exec asc --helpbash
yarn asc --helpbash
bunx asc --helpYou should see the available command options:
Options:
-c, --config <path> Path to config file
-f, --format <format> Output format (dts or js)
--noEmit Only run diagnostics, no file output
--skipDiag Skip diagnostics, always emit
--help Show helpVSCode Extension (Recommended)
For the best development experience, install the Atscript VSCode extension:
- Open VSCode
- Go to Extensions (Cmd/Ctrl + Shift + X)
- Search for "Atscript"
- Install the extension by Moost
The extension provides:
- Syntax highlighting for
.asfiles - IntelliSense support
- Error checking
- Auto-generation of
.d.tsfiles on save
AI Agent Skill
Atscript ships a unified skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, etc.) covering every @atscript/* package with progressive-disclosure reference docs.
bash
npx skills add moostjs/atscriptRestart your agent after installing. Learn more about AI agent skills at skills.sh.
Next Steps
- Quick Start — Create your first .as file
- Configuration — Set up the config file