Skip to content

Atscript for TypeScript

The TypeScript guide is the main place to evaluate Atscript today. TypeScript is the first supported target, and this section is organized as a practical learning path first, with lower-level reference material separated out for later.

Best Path For New Users

If you are evaluating Atscript for the first time, read these in order:

  1. Why Atscript?
  2. Quick Start
  3. Build Setup
  4. Validation Guide

What You Can Do Today

  • Define models once in .as files
  • Generate TypeScript types and runtime metadata
  • Validate data from the same model
  • Export JSON Schema
  • Feed the same model into DB integrations

1. Get A First Success

  • Why Atscript? — the problem Atscript solves for TypeScript applications
  • Quick Start — define one model, generate files, and validate data
  • Build Setup — wire Atscript into Vite, Rollup, esbuild, or another bundler

2. Learn The Core Language

3. Use The Runtime Tools

  • Validation Guide — validate unknown input with type narrowing
  • Metadata — read labels, placeholders, and other annotations at runtime
  • JSON Schema — generate JSON Schema from types
  • Serialization — serialize types for backend-to-frontend transfer

4. Configure And Automate

  • Installation — packages, prerequisites, and optional tooling
  • Configuration — plugin options and config file settings
  • CLI — generate files from the command line

5. Go Deeper When You Need To

Released under the MIT License.