Platform architecture

# Everything needed to run and evolve ASP at scale.

AxonASP combines a VM-focused execution core, native service libraries, and dual-language support to modernize applications without forcing a full rewrite.

Single-pass VBScript compiler AST JavaScript compiler IIS-style VM pooling
Open deployment guide Download release

## Execution model

- VBScript compiles directly to bytecode in a single pass for minimal overhead.
- JavaScript uses internal AST compilation with ES6+ capabilities.
- A stack-based VM executes both language paths with runtime parity across modes.

## Native G3 libraries for real workloads

Use built-in native objects to eliminate repetitive script-level glue code and reduce overhead.

Library | Purpose | Typical Use Case
--- | --- | ---
G3DB | Database connectivity and pooling. | Service APIs and transactional systems.
G3JSON | Fast JSON parse and build operations. | REST payload handling and event transport.
G3HTTP | Native HTTP client integration. | External API orchestration and webhooks.
G3CRYPTO | Hashing and encryption helpers. | Secure token, digest, and data operations.
G3FILES | File operations and encoding support. | Import/export pipelines and automation jobs.
G3PDF, G3IMAGE, G3MD | Document, media, and content generation. | Reports, dynamic assets, and publishing flows.
G3ZIP, G3TAR, G3ZLIB, G3ZSTD, G3FC | Compression and archive pipelines. | Backup, transfer, and storage optimization.
G3AXON.FUNCTIONS | More than 60 utility functions. | Validation, formatting, arrays, environment helpers.

## Language and runtime capabilities

### VBScript modernization

Adopt optional parameters, ParamArray, strong typing, enums, UDTs, events, and interfaces while keeping compatibility.

### JavaScript ES6+

Use async/await, classes, template literals, destructuring, and promises in server-side pages.

### Partial Node-style APIs

Leverage modules like fs, path, stream, events, process, buffer, util, and timers for structured JS workflows.

### AxonLive reactive model

Patch only changed components through async events and maintain server-side business logic control.

## Operational envelope

### Deployment modes

Choose reverse proxy mode with the built-in HTTP server or direct FastCGI integration. Use CLI mode for scripts and scheduled tasks.

### Build and optimization

Compile with selective library tags, centralize config through axonasp.toml and environment values, and containerize with Docker.

### Testing workflow

Use axonasp-testsuite and runtime diagnostics through the global console object for CI-friendly verification.

### AI-integrated runtime

Attach agents through MCP to inspect capabilities and generate pages that align with your runtime environment.