Packages
AsiJS keeps its core in a single package (asijs) and ships integrations as separate packages. The core stays dependency-free and Bun-first; adapters and tools are opt-in.
Ecosystem overview
| Package | npm name | Purpose | Docs |
|---|---|---|---|
| Next.js Adapter | asijs-next | Use AsiJS routing inside Next.js App Router & Pages Router | → |
| Astro Adapter | asijs-astro | AsiJS endpoints & middleware inside Astro | → |
| Remix Adapter | asijs-remix | AsiJS loaders/actions inside Remix | → |
| SvelteKit Adapter | asijs-sveltekit | AsiJS hooks & server routes inside SvelteKit | → |
| MCP Server | asijs-mcp | Model Context Protocol server (tools, resources, prompts, workflows) | → |
| OpenTelemetry | asijs-opentelemetry | Traces, metrics & logs via OTel — one plugin | → |
| ESLint Plugin | eslint-plugin-asijs | Route hygiene rules for AsiJS projects | → |
| VS Code Extension | vscode-asijs | Route explorer, snippets, templates, debugging, diagnostics | → |
| Vite Dev Server | asijs-vite | AsiJS backend inside a Vite dev server — one port, HMR bridge, Rolldown SSR build | → |
| React (RSC) | asijs-react | React Server Components for AsiJS — Flight, streaming SSR + hydration | → |
| GraphQL | graphql-asijs | Code-first GraphQL — TypeBox → SDL, WS subscriptions, Federation, DataLoader | → |
| MiyoCSS | miyocss | SSR-first utility CSS + SVG engine (framework-agnostic) | → |
| TOON | toon-asijs | TOON (token-optimized LLM format) as a native DataFormat — parseBody/setFormat out of the box | → |
Design principles
Framework adapters never re-implement AsiJS. Each adapter converts the host framework's request into a standard
Request, callsapp.handle(), and maps theResponseback. Every AsiJS feature — validation, middleware, plugins, error pages — works unchanged inside the host framework.Optional peer dependencies.
asijsitself has zero runtime dependencies. Integration packages only require what they actually use:asijs-mcpneedsasijs,asijs-opentelemetryneeds@opentelemetry/api(SDK packages are optional and degrade gracefully).The core is Bun-first; adapters are host-first. If you use AsiJS with Next.js, you're still running Next.js — the adapter only owns the API surface you point at it.
Installing a package
# Next.js
bun add asijs-next
# Astro
bun add asijs-astro
# Remix
bun add asijs-remix
# SvelteKit
bun add asijs-sveltekit
# MCP
bun add asijs-mcp
# OpenTelemetry
bun add asijs-opentelemetry @opentelemetry/api
# ESLint
bun add -d eslint-plugin-asijs
# Vite dev server
bun add asijs-vite
# React Server Components
bun add asijs-react react react-dom react-server-dom-webpack
# GraphQL
bun add graphql-asijs graphql
# MiyoCSS
bun add miyocss
# TOON (LLM-optimized data format)
bun add toon-asijsThe VS Code extension (vscode-asijs) is installed from the Marketplace, not npm — see its page.