Overview
SLang is the programming language for defining Sutro backends. The purpose of SLang is to provide a simple but powerful language to cleanly and intuitively define entire backends, including entities, logic, and security, without being slowed down by boilerplate, complex syntax, or hard-to-follow logical expressions. The result is a language that makes backend definition easy, avoids the majority of common mistakes, and is intuitive to pick up for humans and AI alike.Why a new language?
Read about why backend engineering needs a new software language.
Zero-infra philosophy
Read about the “Zero-infra” philosophy behind Sutro.
Core concepts
SLang is designed around four primary constructs that map directly to modern backend architecture:- Entities: Your database schema and relationships.
- Actions: Reusable business logic functions.
- Triggers: Entry points (API endpoints, cron jobs, queues) that invoke actions.
- Security: Role-Based Access Control (RBAC) baked into the core.
Agent skill
If you’re using an AI coding agent like Claude Code, you can install the official SLang skill to give your agent full knowledge of SLang syntax and semantics:Learn more
Data models
Define entities, fields, and relationships.
Logic & Actions
Write business logic using simple control flow.
Security
Implement robust permissions and auth.
API & Triggers
Expose your logic via HTTP and Queues.