-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
180 lines (152 loc) · 7.35 KB
/
llms.txt
File metadata and controls
180 lines (152 loc) · 7.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# Dazzle — LLM Agent Index
> Declarative SaaS framework with built-in compliance, provable RBAC, and graph features.
> This file helps AI agents evaluate and navigate Dazzle before installing or connecting to the MCP server.
## What Dazzle Is
Dazzle is a declarative framework for building SaaS applications. You describe your business — data models, users, permissions, workflows, state machines — in structured `.dsl` files. Dazzle gives you a running web app with database, API, UI, auth, RBAC, and compliance evidence. No code generation, no build step.
**Key differentiators:**
- **Compliance by construction** — automated evidence extraction for ISO 27001 and SOC 2 TSC
- **Provable RBAC** — access rules compile to a formal predicate algebra, statically verifiable
- **Graph features** — entity relationships with CTE traversal, PageRank, community detection
- **Double-entry ledgers** — TigerBeetle-backed financial transactions
- **AI-assisted development** — 26 MCP tools with 170+ operations for the full development lifecycle
## Quick Start
```bash
brew install manwithacat/tap/dazzle # or: pip install dazzle-dsl
cd examples/simple_task && dazzle serve
# UI: http://localhost:3000 | API: http://localhost:8000/docs
```
## Repository Structure
| Path | Contents |
|------|----------|
| `src/dazzle/core/` | Parser, IR types, linker, validation |
| `src/dazzle/mcp/` | MCP server — 26 tools, knowledge graph |
| `src/dazzle/agent/` | Mission-driven agent framework |
| `src/dazzle/compliance/` | ISO 27001 + SOC 2 compliance pipeline |
| `src/dazzle/rbac/` | Provable RBAC — static matrix, dynamic verification, audit trail |
| `src/dazzle_back/` | FastAPI runtime (CRUD, auth, events, grants) |
| `src/dazzle_ui/` | HTMX + DaisyUI frontend runtime |
| `docs/reference/` | DSL reference documentation |
| `examples/` | Runnable example applications |
## DSL Quick Reference
### Entity (data model)
```dsl
entity Task "Task":
id: uuid pk
title: str(200) required
status: enum[todo, in_progress, done] = todo
assignee: User.id
created_at: datetime auto_add
```
### Access Control (Cedar-style RBAC)
```dsl
permit:
read: role(viewer) or role(admin)
write: role(admin)
delete: role(admin) and status != archived
scope:
school_id = current_user.school
for: teacher, student
```
### State Machine
```dsl
state_machine:
field: status
states: [draft, submitted, approved, rejected]
transitions:
submit: draft -> submitted
when: role(author)
approve: submitted -> approved
when: role(reviewer) and has_grant(review_access)
```
### Grant Schema (delegated access)
```dsl
grant_schema document_access:
scope: Document
relation review_access "Review Access":
granted_by: role(admin) or role(manager)
approval: required
approved_by: role(compliance_officer)
max_duration: param("grant.review_duration", "90d")
```
### Graph Relationships
```dsl
entity Follows "Follow Relationship":
follower: Person.id required
following: Person.id required
graph_edge:
source: follower
target: following
type: "follows"
directed: true
```
### Compliance
```bash
dazzle compliance compile --framework soc2 # SOC 2 audit report
dazzle compliance compile --framework iso27001 # ISO 27001 audit report
dazzle compliance gaps --framework soc2 # Show unmet controls
dazzle rbac matrix # Generate access matrix
dazzle rbac verify # Verify runtime matches matrix
```
## Documentation Pages
### Getting Started
- /getting-started/installation/ — Install Dazzle
- /getting-started/quickstart/ — 5-minute guide
- /getting-started/first-app/ — Tutorial
### DSL Reference
- /reference/entities/ — Data models, fields, types, relationships
- /reference/access-control/ — Cedar-style RBAC, grant schemas, scope predicates
- /reference/surfaces/ — UI views (list, detail, create, review)
- /reference/workspaces/ — Role-based dashboards with filtered regions
- /reference/processes/ — Multi-step durable workflows
- /reference/graphs/ — Entity graph relationships, CTE traversal, algorithms
- /reference/compliance/ — ISO 27001 + SOC 2 evidence pipeline
- /reference/rbac-verification/ — Three-layer provable RBAC
- /reference/ledgers/ — TigerBeetle double-entry accounting
- /reference/llm/ — Declarative LLM job definitions
- /reference/governance/ — SLAs, approval workflows, organisational policy
- /reference/runtime-capabilities/ — Health endpoints, feedback widget, system diagnostics
### Architecture
- /architecture/overview/ — DSL-to-AppSpec pipeline
- /architecture/mcp-server/ — MCP tool integration
- /architecture/event-semantics/ — PostgreSQL event system
## MCP Tools (26 tools, 170+ operations)
When connected via Claude Code, these tools are available:
| Tool | Key Operations | Category |
|------|---------------|----------|
| `bootstrap` | entry point for "build me an app" | Spec → DSL |
| `spec_analyze` | discover_entities, identify_lifecycles, extract_personas | Spec → DSL |
| `dsl` | validate, lint, inspect_entity, inspect_surface, fidelity | Validation |
| `story` | propose, save, get, coverage | Stories & Testing |
| `test_design` | propose_persona, gaps, auto_populate, improve_coverage | Stories & Testing |
| `test_intelligence` | summary, failures, regression, coverage, context | Stories & Testing |
| `rhythm` | propose, evaluate, coverage, get, list | Stories & Testing |
| `demo_data` | propose, save, get, generate | Stories & Testing |
| `discovery` | run, report, compile, emit, coherence | Analysis |
| `sentinel` | scan, findings, suppress, status, history | Analysis |
| `composition` | audit, capture, analyze, report, inspect_styles | Analysis |
| `semantics` | extract, validate_events, tenancy, compliance, analytics | Analysis |
| `policy` | analyze, conflicts, coverage, simulate | Analysis |
| `compliance` | compile, evidence, gaps, summary, review | Compliance |
| `conformance` | (compliance conformance checks) | Compliance |
| `graph` | query, dependencies, neighbourhood, concept, inference | Knowledge |
| `knowledge` | concept, examples, workflow, inference | Knowledge |
| `sitespec` | get, validate, scaffold, coherence, themes, copy, tokens | Site & Brand |
| `pitch` | scaffold, generate, validate, review, enrich | Stakeholder |
| `status` | mcp, logs, telemetry, activity | Operations |
| `db` | status, verify | Operations |
| `mock` | status, request_log | Operations |
| `api_pack` | list, search, get, generate_dsl | Integrations |
| `user_management` | list, create, get, update, deactivate | User Admin |
| `user_profile` | observe, observe_message, get, reset | User Admin |
| `param` | (runtime parameter management) | Configuration |
## Supported Compliance Frameworks
| Framework | Controls | Coverage |
|-----------|----------|----------|
| ISO/IEC 27001:2022 | 93 controls across 4 themes | ~60 evidenced from DSL |
| SOC 2 TSC (2017/2022) | 63 controls across 5 categories | ~53 evidenced from DSL |
Evidence is extracted automatically from DSL constructs: access rules → access control policies, state machines → change management, data classification → confidentiality, processes → operational procedures.
## Getting Help
- Repository: https://github.com/manwithacat/dazzle
- Documentation: https://manwithacat.github.io/dazzle/
- Issues: https://github.com/manwithacat/dazzle/issues
- PyPI: https://pypi.org/project/dazzle-dsl/