Getting Started with Sruja#
This guide will help you install Sruja and create your first architecture model.
Installation#
Automated Install (Recommended)#
curl -fsSL https://raw.githubusercontent.com/sruja-ai/sruja/main/scripts/install.sh | bashManual Download#
Download the latest release for your operating system from the GitHub Releases page.
From Source (Go)#
If you have Go installed, you can still build from source:
go install github.com/sruja-ai/sruja/cmd/sruja@latestVerify the installation:
sruja --versionYour First Project#
Create a file: Create a new file named architecture.sruja.
Write your model:
system App "My App" {
container Web "Web Server"
datastore DB "Database"
}
person User "User"
User -> Web "Visits"
Web -> DB "Reads/Writes"Visualize: Export to D2 to see the diagram.
sruja export d2 architecture.sruja > architecture.d2You can then render architecture.d2 using the D2 CLI or online playground.