aiscript  by aiscriptdev

Rust-based language/framework for AI app development

Created 11 months ago
314 stars

Top 85.9% on SourcePulse

GitHubView on GitHub
Project Summary

AIScript is a novel programming language and web framework built in Rust, designed for effortless AI application development. It targets developers building AI-powered APIs, prototypes, and microservices, offering a Python-like syntax with Rust's performance and safety.

How It Works

AIScript features a custom interpreter with first-class functions, OOP support, and built-in AI primitives like prompt and agent. It combines dynamic typing with optional static checks and Rust-inspired error handling. The web framework leverages axum and sqlx for high performance, offering an intuitive route DSL, automatic parameter validation, and OpenAPI schema generation, aiming for Flask-like simplicity with Rust's efficiency.

Quick Start & Requirements

  • Install via cargo install aiscript.
  • Requires Rust toolchain.
  • OPENAI_API_KEY environment variable for OpenAI integration.
  • See examples for usage.

Highlighted Details

  • Python/JavaScript/Rust-inspired syntax.
  • Built-in AI primitives (prompt, ai fn, agent).
  • Automatic API documentation generation (/redoc).
  • Supports OpenAI, DeepSeek, and Anthropic models.
  • Integrated database modules (std.db.pg, std.db.redis).

Maintenance & Community

  • Project is in early development; use with caution.
  • MIT License.

Licensing & Compatibility

  • MIT License. Permissive for commercial use and closed-source linking.

Limitations & Caveats

AIScript is in early development and not recommended for production use. Specific limitations or unsupported features are not detailed in the README.

Health Check
Last Commit

3 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Wes McKinney Wes McKinney(Author of Pandas), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
22 more.

autogen by microsoft

0.5%
50k
Agentic framework for multi-agent AI applications
Created 2 years ago
Updated 19 hours ago
Feedback? Help us improve.