# elnop/brutalway architecture

> Architecture diagram of the GitHub repository elnop/brutalway, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elnop/brutalway
- Repository: https://github.com/elnop/brutalway

## Overview

brutalway provides stack-specific project templates and independently usable convention checks. The main workflow is choosing a stack and features in the CLI, receiving a template, then running deterministic checks; Claude Code can invoke those checks after edits. The README documents these relationships and the available template stacks. Source excerpts are limited, so this map shows documented product-level connections rather than unverified internal calls.

Main entry points: [`packages/tools/create-brutal/src`](https://github.com/elnop/brutalway/tree/main/packages/tools/create-brutal/src) (Create CLI), [`packages/configs`](https://github.com/elnop/brutalway/tree/main/packages/configs) (Lint configurations), [`packages/tools/agent-hook/src`](https://github.com/elnop/brutalway/tree/main/packages/tools/agent-hook/src) (Agent edit hook), [`templates/vite`](https://github.com/elnop/brutalway/tree/main/templates/vite) (Vite template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["Project creation"]
  node_create_cli["Create CLI"]
  node_site["Product site"]
end

subgraph group_templates["Project templates"]
  node_vite_template["Vite template"]
  node_fastify_template["Fastify template"]
  node_next_template["Next template"]
  node_native_template["React Native template"]
  node_package_template["Package template"]
end

subgraph group_checks["Convention checks"]
  node_check_tree["Tree checks"]
  node_check_exceptions["Exception checks"]
  node_check_docs["Documentation checks"]
  node_check_sources["Citation checks"]
end

subgraph group_integrations["Editor integrations"]
  node_agent_hook["Agent edit hook"]
  node_claude(("Claude Code"))
end

subgraph group_packages["Reusable packages"]
  node_lint_configs["Lint configurations"]
  node_eslint_plugins["ESLint plugins"]
  node_package_catalog["Published packages"]
end

node_developer(("Developer"))

node_developer -->|"chooses stack"| node_create_cli
node_create_cli -->|"creates project"| node_vite_template
node_create_cli -->|"creates project"| node_fastify_template
node_create_cli -->|"creates project"| node_next_template
node_create_cli -->|"creates project"| node_native_template
node_create_cli -->|"creates project"| node_package_template
node_vite_template -->|"runs checks"| node_lint_configs
node_fastify_template -->|"runs checks"| node_lint_configs
node_next_template -->|"runs checks"| node_lint_configs
node_native_template -->|"runs checks"| node_lint_configs
node_package_template -->|"runs checks"| node_lint_configs
node_claude -->|"installs plugin"| node_agent_hook
node_agent_hook -->|"runs checks"| node_check_tree
node_agent_hook -->|"returns errors"| node_developer
node_developer -->|"uses packages"| node_package_catalog
node_developer -->|"visits"| node_site

click node_create_cli "https://github.com/elnop/brutalway/tree/main/packages/tools/create-brutal/src"
click node_vite_template "https://github.com/elnop/brutalway/tree/main/templates/vite"
click node_fastify_template "https://github.com/elnop/brutalway/tree/main/templates/fastify"
click node_next_template "https://github.com/elnop/brutalway/tree/main/templates/next"
click node_native_template "https://github.com/elnop/brutalway/tree/main/templates/react-native"
click node_package_template "https://github.com/elnop/brutalway/tree/main/templates/package"
click node_check_tree "https://github.com/elnop/brutalway/tree/main/packages/tools/check-tree/src"
click node_check_exceptions "https://github.com/elnop/brutalway/tree/main/packages/tools/check-exceptions/src"
click node_check_docs "https://github.com/elnop/brutalway/tree/main/packages/tools/check-doc-links/src"
click node_check_sources "https://github.com/elnop/brutalway/tree/main/packages/tools/check-doc-sources/src"
click node_lint_configs "https://github.com/elnop/brutalway/tree/main/packages/configs"
click node_eslint_plugins "https://github.com/elnop/brutalway/tree/main/packages/plugins"
click node_agent_hook "https://github.com/elnop/brutalway/tree/main/packages/tools/agent-hook/src"
click node_package_catalog "https://github.com/elnop/brutalway/tree/main/packages"
click node_site "https://github.com/elnop/brutalway/tree/main/site/src"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_create_cli,node_site toneBlue
class node_vite_template,node_fastify_template,node_next_template,node_native_template,node_package_template toneAmber
class node_check_tree,node_check_exceptions,node_check_docs,node_check_sources toneMint
class node_agent_hook,node_claude toneRose
class node_lint_configs,node_eslint_plugins,node_package_catalog,node_developer toneIndigo
```

## Components

### Project creation

- [Create CLI](https://github.com/elnop/brutalway/tree/main/packages/tools/create-brutal/src): `packages/tools/create-brutal/src`
- [Product site](https://github.com/elnop/brutalway/tree/main/site/src): `site/src`

### Project templates

- [Vite template](https://github.com/elnop/brutalway/tree/main/templates/vite): `templates/vite`
- [Fastify template](https://github.com/elnop/brutalway/tree/main/templates/fastify): `templates/fastify`
- [Next template](https://github.com/elnop/brutalway/tree/main/templates/next): `templates/next`
- [React Native template](https://github.com/elnop/brutalway/tree/main/templates/react-native): `templates/react-native`
- [Package template](https://github.com/elnop/brutalway/tree/main/templates/package): `templates/package`

### Convention checks

- [Tree checks](https://github.com/elnop/brutalway/tree/main/packages/tools/check-tree/src): `packages/tools/check-tree/src`
- [Exception checks](https://github.com/elnop/brutalway/tree/main/packages/tools/check-exceptions/src): `packages/tools/check-exceptions/src`
- [Documentation checks](https://github.com/elnop/brutalway/tree/main/packages/tools/check-doc-links/src): `packages/tools/check-doc-links/src`
- [Citation checks](https://github.com/elnop/brutalway/tree/main/packages/tools/check-doc-sources/src): `packages/tools/check-doc-sources/src`

### Editor integrations

- [Agent edit hook](https://github.com/elnop/brutalway/tree/main/packages/tools/agent-hook/src): `packages/tools/agent-hook/src`
- **Claude Code**

### Reusable packages

- [Lint configurations](https://github.com/elnop/brutalway/tree/main/packages/configs): `packages/configs`
- [ESLint plugins](https://github.com/elnop/brutalway/tree/main/packages/plugins): `packages/plugins`
- [Published packages](https://github.com/elnop/brutalway/tree/main/packages): `packages`

### Other components

- **Developer**

## Connections

- Developer → Create CLI: chooses stack (evidence: `README.md`)
- Create CLI → Vite template: creates project (evidence: `README.md`)
- Create CLI → Fastify template: creates project (evidence: `README.md`)
- Create CLI → Next template: creates project (evidence: `README.md`)
- Create CLI → React Native template: creates project (evidence: `README.md`)
- Create CLI → Package template: creates project (evidence: `README.md`)
- Vite template → Lint configurations: runs checks (evidence: `README.md`)
- Fastify template → Lint configurations: runs checks (evidence: `README.md`)
- Next template → Lint configurations: runs checks (evidence: `README.md`)
- React Native template → Lint configurations: runs checks (evidence: `README.md`)
- Package template → Lint configurations: runs checks (evidence: `README.md`)
- Claude Code → Agent edit hook: installs plugin (evidence: `README.md`)
- Agent edit hook → Tree checks: runs checks (evidence: `README.md`)
- Agent edit hook → Developer: returns errors (evidence: `README.md`)
- Developer → Published packages: uses packages (evidence: `README.md`)
- Developer → Product site: visits (evidence: `README.md`)
