aiscript  by aiscriptdev

Rust-based language/framework for AI app development

created 9 months ago
312 stars

Top 87.5% 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

2 months ago

Responsiveness

1 week

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

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), and
12 more.

opencode by sst

7.8%
16k
CLI tool for AI-assisted coding in the terminal
created 3 months ago
updated 1 day ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Joe Walnes Joe Walnes(Head of Experimental Projects at Stripe), and
5 more.

LibreChat by danny-avila

0.8%
29k
Enhanced ChatGPT clone for self-hosting
created 2 years ago
updated 1 day ago
Feedback? Help us improve.