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.