Skip to content

Repository files navigation

Otis

Compile Cairo smart contracts instantly.

Otis is a lightweight service and developer tool that lets you compile Cairo smart contracts on demand — without setting up local toolchains, Docker images, or complex Starknet environments.

Think of Otis as "just-in-time Cairo compilation": send your contract code in, get compiled artifacts out.


Why Otis?

Cairo development is powerful, but the setup friction is real:

  • Heavy toolchains
  • Version mismatches
  • Docker-only workflows
  • Slow iteration loops

Otis removes that friction.

With Otis, you can:

  • Compile Cairo contracts instantly
  • Standardize compiler versions across teams
  • Power CI pipelines, web IDEs, bots, or deployment backends
  • Treat Cairo compilation as an API

Core Features

  • Instant Compilation Compile Cairo contracts in seconds with a simple request.

  • 🧩 Zero Local Setup No Cairo installation, no Docker, no system dependencies.

  • 🔁 Deterministic Builds Locked compiler versions ensure reproducible outputs.

  • 📦 Full Artifacts Output Get ABI, Sierra, CASM, and metadata from a single compile.

  • 🌐 API-First Built to be consumed by frontends, CLIs, and backend services.


How It Works

  1. You send Cairo source files (or a project reference)
  2. Otis runs the correct Cairo compiler in a clean environment
  3. Compiled artifacts are returned immediately

No state. No persistence. No magic.

Just compilation.


Use Cases

  • Web-based Cairo IDEs
  • Smart contract deployment services
  • Bots and automation tools
  • CI pipelines for Starknet projects
  • Educational tools and sandboxes

If your product needs Cairo compilation, Otis is the missing layer.


Example Workflow

Cairo Source → Otis → ABI / Sierra / CASM → Deploy or Test

Otis fits neatly between authoring and deployment.


Philosophy

Otis is intentionally:

  • Minimal
  • Stateless
  • Infrastructure-focused

It does one thing and does it well.

"Compilation should not be a bottleneck."


Roadmap (Early)

  • Multiple Cairo version support
  • Project-based compilation (multi-file)
  • CLI wrapper
  • Compiler caching for faster builds
  • Auth & rate limiting

Contributing

Contributions are welcome.

Whether it's:

  • Compiler improvements
  • API ergonomics
  • Documentation
  • DX tooling

Open an issue, pick a task, and ship 🚀


License

MIT


Status

Otis is under active development.

If you're building on Starknet and need fast, reliable compilation — this is for you.

About

Otis is a lightweight service and developer tool that lets you compile Cairo smart contracts on demand — without setting up local toolchains, Docker images, or complex Starknet environments.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages