koriym / app-state-diagram
An Application Diagram Generator
Installs: 174 196
Dependents: 1
Suggesters: 0
Security: 0
Stars: 36
Watchers: 6
Forks: 11
Open Issues: 1
Language:HTML
Requires
- php: ^8.1
- ext-dom: *
- ext-filter: *
- ext-json: *
- ext-libxml: *
- ext-mbstring: *
- ext-simplexml: *
- koriym/data-file: ^1.0
- michelf/php-markdown: ^1.9
- seld/jsonlint: ^1.8
- symfony/polyfill-php81: ^1.31
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.4
- phpunit/phpunit: ^9.6.10
- rector/rector: ^1.1
- dev-master
- v0.14.1
- v0.14.0
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.12
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-fix/svg-mode-not-working
- dev-feature/svg-mode
- dev-fix/homebrew-markdown-mode
- dev-add-claude-github-actions-1754455655496
- dev-fix/homebrew-watch-mode
- dev-refactor/indexpage-constructor
- dev-add-claude-github-actions-1753056596325
This package is auto-updated.
Last update: 2025-08-07 11:36:29 UTC
README
app-state-diagram is a tool that visualizes state transitions and information structures of RESTful applications. It generates interactive state diagrams and hyperlinked documentation from ALPS (Application-Level Profile Semantics) profiles written in XML or JSON.
Key Benefits
- Application Overview: Visually grasp complex RESTful applications and understand the big picture
- Clear Information Semantics: See how data flows and what each element means
- Enhanced Team Communication: Both technical and business teams can discuss using the same visual representation
- Design Consistency: Represent application structures uniformly and discover design issues early
Information Architecture Perspective
app-state-diagram embodies the three key aspects of Information Architecture (IA):
- Ontology: Defines the semantic meaning of application elements and their relationships
- Taxonomy: Organizes information into structured hierarchies and classifications
- Choreography: Describes interaction patterns and rules for state transitions
By focusing on these IA principles, app-state-diagram helps create a shared understanding of application semantics across organizational boundaries, independent of specific implementation technologies.
Quick Start
Online Editor (No Installation)
Install with Homebrew
brew install alps-asd/asd/asd
After installation, run:
asd --watch path/to/your/profile.json
CLI Usage
Basic usage:
asd path/to/your/profile.json
Options
-
--mode=html|markdown|svg
: Set output mode (default: html)asd --mode=html profile.json # Generate interactive HTML (default) asd --mode=markdown profile.json # Generate markdown documentation asd --mode=svg profile.json # Generate SVG diagrams for embedding
SVG mode generates two standalone SVG files:
profile.svg
- Main diagram with descriptor IDsprofile.title.svg
- Diagram with human-readable titles
Perfect for embedding in documentation, presentations, or web pages.
-
--watch
or-w
: Enable watch mode with live browser syncasd --watch profile.json # Start development server asd --watch --port=3001 profile.json # Custom port
-
--port
: Set development server port (default: 3000, only with--watch
)asd --watch --port=8080 profile.json
Examples
See these live demos:
Documentation
For more details, please refer to: