Skip to content

Axint

AI agents write 5–15× less code for Apple. One TypeScript definition compiles to production-grade Swift — App Intents for Siri, SwiftUI views, WidgetKit widgets, and full app scaffolds.
npmGitHub starsGlama quality

The compression layer for AI on Apple

Axint is an open-source compiler that transforms TypeScript or Python definitions into native Swift. AI coding agents pay per token — Axint makes Apple development dramatically cheaper and faster.

Four Apple surfaces

App Intents for Siri/Shortcuts/Spotlight, SwiftUI views, WidgetKit widgets, and full app scaffolds — all from the same compiler pipeline.

13 MCP tools

Claude Code, Codex, Cursor, Windsurf, and Xcode 26.3 call axint.compile, axint.swift.validate, axint.swift.fix, and 10 more tools natively. Zero context switching.

150 diagnostic codes

Rust-style errors with line/column spans and suggested fixes. Swift 6 concurrency, Live Activities, and Apple SDK constraint validators catch issues before Xcode does.

500 tests, sub-ms compile

The browser playground compiles on every keystroke with zero server round-trip. The test suite covers parser, validator, generator, MCP, views, widgets, apps, and fixer.

Install

Terminal window
npm install -g @axint/compiler
# Or run without installing
npx @axint/compiler compile my-intent.ts --stdout

Your first intent — 30 seconds

Terminal window
axint init my-intents
cd my-intents
npx @axint/compiler compile intents/CreateEvent.intent.ts --sandbox --format

That’s it. You now have a Swift file that compiles cleanly under the Swift toolchain and passes swift-format.

What it compiles

App Intents

defineIntent() → Swift AppIntent struct with parameters, perform(), and Siri/Shortcuts metadata.

SwiftUI Views

defineView() → SwiftUI View with props, state, and body — ready to embed in any app.

WidgetKit Widgets

defineWidget() → Complete widget with TimelineProvider, TimelineEntry, and view. ~13× compression.

App Scaffolds

defineApp() → Full @main App struct with scenes, app storage, and settings pane.

25 bundled templates

Start from a working example instead of a blank file. Templates cover messaging, health, finance, commerce, smart home, media, navigation, and entity/query patterns.

Terminal window
# List all templates
axint templates
# Start from one
axint init my-app --template send-message

Built for AI agents

Axint ships with an MCP server that exposes 13 tools. AI coding assistants compile, validate, and fix Swift without you writing a line of it.

The axint.schema.compile tool accepts ~20 tokens of JSON and returns compiled Swift — agents skip TypeScript entirely and save even more tokens.

{
"mcpServers": {
"axint": { "command": "npx", "args": ["-y", "@axint/compiler", "axint-mcp"] }
}
}

Works with Claude Code, Codex, Cursor, Windsurf, Zed, VS Code, JetBrains, Neovim, and Xcode 26.3 (via xcrun mcpbridge).

Open source, no lock-in

Apache 2.0 licensed. No CLA. axint eject generates standalone Swift with zero Axint dependency — you can walk away at any time and keep the generated code.

Get started →