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
npm install @atscript/typescript
npm install -D @atscript/corepnpm add @atscript/typescript
pnpm add -D @atscript/coreyarn add @atscript/typescript
yarn add -D @atscript/corebun 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). See Build Setup.@atscript/db-mongo— MongoDB integration with index syncing. See MongoDB.@atscript/moost-db— Generic Moost framework database controller@atscript/moost-validator— Moost framework validation integration
Verify Installation
After installation, verify that the asc compiler is available:
npx asc --helppnpm exec asc --helpyarn asc --helpbunx 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 Skills
@atscript/typescript ships an AI agent skill for Claude Code, Cursor, Windsurf, Codex, and other compatible agents. The skill teaches your agent the library's APIs, patterns, and best practices so it can help you write correct code without hallucinating.
Install the skill into your agent:
# Project-local (recommended — version-locked, commits with your repo)
npx @atscript/typescript setup-skills
# Global (available across all your projects)
npx @atscript/typescript setup-skills --globalRestart your agent after installing.
Auto-update on install — to keep the skill in sync whenever you upgrade the package, add this to your project's package.json:
{
"scripts": {
"postinstall": "npx @atscript/typescript setup-skills --postinstall",
},
}Next Steps
- Quick Start — Create your first .as file
- Configuration — Set up the config file