AI Markup Language (AIM) is an markup language designed to create interactive, intelligent, and multimodal documents.
By merging the simplicity of Markdown with advanced programming constructs and multimedia capabilities, AIM enables users to build dynamic workflows, integrate AI tasks, and deliver rich, interactive content.
AIM documents have the file extension .md
or .aim
.
The AIM project is structured as a monorepo containing several key packages:
-
@aim-sdk/core
- Parses AIM documents
- Transforms AIM syntax into executable code
- Handles directives and command processing
- Manages variable substitution and context
- Executes compiled AIM documents
- Manages AI model integrations
- Handles state management
- Processes multimedia content
-
@aim-sdk/adapters
- Provides integrations with various execution environments
- Includes adapters for code execution (e2b, quickjs)
- Enables extensibility for different runtime environments
-
CLI (aimx)
- Command-line interface for AIM projects
- Project initialization and management
- Development server controls
- Build and deployment tools
-
Gateway
- Serves as the main API gateway for AIM projects
- Handles authentication and user management
- Manages project storage and versioning
- Provides RESTful APIs for client applications
-
Inference Server
- Handles AI model inference requests
- Manages model loading and execution
- Optimizes resource usage for AI operations
-
Website
- Documentation and marketing website
- User guides and tutorials
- API documentation
aim/
├── packages/
│ ├── core/ # Core functionality
│ ├── plugins/ # Plugins
│ ├── adapters/ # Adapters
│ └── cli/ # CLI
├── apps/
│ ├── gateway/ # API gateway
│ ├── inference-server/ # AI model inference
│ └── website/ # Documentation website
├── examples/
│ └── start-here/ # Getting started guide and template project
├── config/ # Configuration files
└── .github/ # GitHub workflows and templates
To get started with AIM, please refer to the Getting Started guide.
-
Document Processing
- Markdown-compatible syntax
- Custom directives and commands
- Variable substitution
- AI model integration
-
Runtime Capabilities
- Multiple AI provider support
- Multimedia content handling
- Interactive components
- State management
-
Development Tools
- Local development server
- Hot reload support
- Build optimization
- Deployment utilities
For VS Code (and other editors based on VS Code), you can install the AIM Syntax extension.