Metadata & Tags
Attach additional information to your elements using Metadata and Tags.
Metadata & Tags
Sruja allows you to attach additional information to your elements using Metadata and Tags.
Tags
Tags are simple string labels that can be used for filtering, styling, or categorization.
Syntax
import { * } from 'sruja.ai/stdlib'
API = system "API" {
tags ["tag1", "tag2"]
}
Metadata
Metadata allows you to attach key-value pairs to elements. This is useful for storing information like team ownership, cost centers, links to other docs, etc.
Syntax
import { * } from 'sruja.ai/stdlib'
API = system "API" {
metadata {
owner "Team A"
tier "1"
}
}
Technology
Most elements (Container, Component, etc.) support a technology field to specify the tech stack.
Syntax
API = system "API" {
metadata {
key "value"
}
}