Skip to main content

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.

Core concepts

SLang is designed around four primary constructs that map directly to modern backend architecture:
  1. Entities: Your database schema and relationships.
  2. Actions: Reusable business logic functions.
  3. Triggers: Entry points (API endpoints, cron jobs, queues) that invoke actions.
  4. Security: Role-Based Access Control (RBAC) baked into the core.

Learn more