# vinkydev/vibestart architecture

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

- Interactive diagram: https://gitdiagram.com/vinkydev/vibestart
- Repository: https://github.com/vinkydev/vibestart

## Overview

VibeStart composes verified full-stack TypeScript project templates. Users either choose a stack in the web studio and run its generated command, or use the CLI prompts/flags; the CLI resolves choices, generates files, and can install and check the project. The CLI also supports listing and maintaining generated projects, while the web app documents and visualizes stack choices. Source excerpts show generation’s calls into core and integrations; several other implementation links are documented capabilities or are not visible in sampled source.

Main entry points: [`apps/cli/src/create.ts`](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/create.ts) (Project creation), [`apps/cli/src/command.ts`](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/command.ts) (Create and list), [`packages/integrations/src/app.ts`](https://github.com/vinkydev/vibestart/blob/main/packages/integrations/src/app.ts) (Integration composer), [`apps/web/src/routes/studio.tsx`](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/routes/studio.tsx) (Stack studio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI workflows"]
  node_cli["CLI entry<br/>[cli.ts]"]
  node_commands["Create and list<br/>[command.ts]"]
  node_prompts["Stack prompts<br/>[prompts.ts]"]
  node_recipes["Recipe and stack<br/>[stack.ts]"]
  node_create["Project creation<br/>[create.ts]"]
  node_projectio["Project files<br/>[project.ts]"]
  node_maintenance["Project upgrades<br/>[commands.ts]"]
  node_upgradeplan["Upgrade planning<br/>[plan.ts]"]
end

subgraph group_composition["Stack composition"]
  node_resolver["Stack resolver<br/>[resolver.ts]"]
  node_packagejson["Dependency planning<br/>[package-json.ts]"]
  node_integrations["Integration composer<br/>[app.ts]"]
  node_templates["Stack templates"]
end

subgraph group_web["Web studio"]
  node_studio["Stack studio<br/>[studio.tsx]"]
  node_topology["Stack topology<br/>[topology.tsx]"]
  node_webprojects["Project data<br/>[projects.ts]"]
  node_generatedlocale["Locale messages<br/>[messages.js]"]
  node_localeclient["Locale runtime<br/>[runtime.js]"]
  node_localeserver["Locale middleware<br/>[server.js]"]
end

subgraph group_verification["Verification and upkeep"]
  node_verification["Stack verification<br/>[server.ts]"]
  node_verificationrecords["Verification records<br/>[create.ts]"]
end

node_user(("Developer"))
node_generatedproject["Generated project"]
node_externalchecks["Toolchain checks"]

node_user -->|"chooses stack"| node_studio
node_studio -.->|"visualizes choices"| node_topology
node_studio -.->|"loads stack data"| node_webprojects
node_user -->|"runs command"| node_cli
node_cli -.->|"dispatches"| node_commands
node_commands -.->|"creates project"| node_create
node_commands -.->|"requests choices"| node_prompts
node_create -->|"loads recipe"| node_recipes
node_create -->|"resolves choices"| node_resolver
node_create -->|"requests generation"| node_integrations
node_integrations -->|"uses core types"| node_resolver
node_integrations -->|"renders templates"| node_templates
node_create -->|"writes files"| node_projectio
node_projectio -.->|"writes project"| node_generatedproject
node_create -->|"looks up verification"| node_verification
node_create -->|"shows representative pass"| node_verificationrecords
node_verification -->|"checks combinations"| node_generatedproject
node_create -->|"runs setup checks"| node_externalchecks
node_user -->|"requests upgrade"| node_maintenance
node_maintenance -.->|"previews changes"| node_upgradeplan
node_upgradeplan -->|"updates templates"| node_generatedproject
node_localeclient -->|"loads messages"| node_generatedlocale
node_localeserver -->|"uses runtime"| node_localeclient

click node_studio "https://github.com/vinkydev/vibestart/blob/main/apps/web/src/routes/studio.tsx"
click node_topology "https://github.com/vinkydev/vibestart/blob/main/apps/web/src/components/topology/topology.tsx"
click node_webprojects "https://github.com/vinkydev/vibestart/blob/main/apps/web/src/lib/projects.ts"
click node_cli "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/cli.ts"
click node_commands "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/command.ts"
click node_prompts "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/prompts.ts"
click node_recipes "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/stack.ts"
click node_create "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/create.ts"
click node_projectio "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/project.ts"
click node_resolver "https://github.com/vinkydev/vibestart/blob/main/packages/core/src/resolver.ts"
click node_packagejson "https://github.com/vinkydev/vibestart/blob/main/packages/core/src/package-json.ts"
click node_integrations "https://github.com/vinkydev/vibestart/blob/main/packages/integrations/src/app.ts"
click node_templates "https://github.com/vinkydev/vibestart/tree/main/packages/integrations/templates"
click node_maintenance "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/maintenance/commands.ts"
click node_upgradeplan "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/maintenance/plan.ts"
click node_verification "https://github.com/vinkydev/vibestart/blob/main/packages/integrations/src/testing/server.ts"
click node_verificationrecords "https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/create.ts"
click node_generatedlocale "https://github.com/vinkydev/vibestart/blob/main/apps/web/src/paraglide/messages.js"
click node_localeclient "https://github.com/vinkydev/vibestart/blob/main/apps/web/src/paraglide/runtime.js"
click node_localeserver "https://github.com/vinkydev/vibestart/blob/main/apps/web/src/paraglide/server.js"

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_cli,node_commands,node_prompts,node_recipes,node_create,node_projectio,node_maintenance,node_upgradeplan toneBlue
class node_resolver,node_packagejson,node_integrations,node_templates toneAmber
class node_studio,node_topology,node_webprojects,node_generatedlocale,node_localeclient,node_localeserver toneMint
class node_verification,node_verificationrecords toneRose
class node_user,node_generatedproject,node_externalchecks toneIndigo
```

## Components

### CLI workflows

- [CLI entry](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/cli.ts): `apps/cli/src/cli.ts`
- [Create and list](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/command.ts): `apps/cli/src/command.ts`
- [Stack prompts](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/prompts.ts): `apps/cli/src/prompts.ts`
- [Recipe and stack](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/stack.ts): `apps/cli/src/stack.ts`
- [Project creation](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/create.ts): `apps/cli/src/create.ts`
- [Project files](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/project.ts): `apps/cli/src/project.ts`
- [Project upgrades](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/maintenance/commands.ts): `apps/cli/src/maintenance/commands.ts`
- [Upgrade planning](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/maintenance/plan.ts): `apps/cli/src/maintenance/plan.ts`

### Stack composition

- [Stack resolver](https://github.com/vinkydev/vibestart/blob/main/packages/core/src/resolver.ts): `packages/core/src/resolver.ts`
- [Dependency planning](https://github.com/vinkydev/vibestart/blob/main/packages/core/src/package-json.ts): `packages/core/src/package-json.ts`
- [Integration composer](https://github.com/vinkydev/vibestart/blob/main/packages/integrations/src/app.ts): `packages/integrations/src/app.ts`
- [Stack templates](https://github.com/vinkydev/vibestart/tree/main/packages/integrations/templates): `packages/integrations/templates`

### Web studio

- [Stack studio](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/routes/studio.tsx): `apps/web/src/routes/studio.tsx`
- [Stack topology](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/components/topology/topology.tsx): `apps/web/src/components/topology/topology.tsx`
- [Project data](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/lib/projects.ts): `apps/web/src/lib/projects.ts`
- [Locale messages](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/paraglide/messages.js): `apps/web/src/paraglide/messages.js`
- [Locale runtime](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/paraglide/runtime.js): `apps/web/src/paraglide/runtime.js`
- [Locale middleware](https://github.com/vinkydev/vibestart/blob/main/apps/web/src/paraglide/server.js): `apps/web/src/paraglide/server.js`

### Verification and upkeep

- [Stack verification](https://github.com/vinkydev/vibestart/blob/main/packages/integrations/src/testing/server.ts): `packages/integrations/src/testing/server.ts`
- [Verification records](https://github.com/vinkydev/vibestart/blob/main/apps/cli/src/create.ts): `apps/cli/src/create.ts`

### Other components

- **Developer**
- **Generated project**
- **Toolchain checks**

## Connections

- Developer → Stack studio: chooses stack (evidence: `README.md`)
- Stack studio → Stack topology: visualizes choices
- Stack studio → Project data: loads stack data
- Developer → CLI entry: runs command (evidence: `README.md`)
- CLI entry → Create and list: dispatches
- Create and list → Project creation: creates project
- Create and list → Stack prompts: requests choices
- Project creation → Recipe and stack: loads recipe (evidence: `apps/cli/src/create.ts`)
- Project creation → Stack resolver: resolves choices (evidence: `apps/cli/src/create.ts`)
- Project creation → Integration composer: requests generation (evidence: `apps/cli/src/create.ts`)
- Integration composer → Stack resolver: uses core types (evidence: `packages/integrations/src/app.ts`)
- Integration composer → Stack templates: renders templates (evidence: `packages/integrations/src/app.ts`)
- Project creation → Project files: writes files (evidence: `apps/cli/src/create.ts`)
- Project files → Generated project: writes project
- Project creation → Stack verification: looks up verification (evidence: `apps/cli/src/create.ts`)
- Project creation → Verification records: shows representative pass (evidence: `README.md`)
- Stack verification → Generated project: checks combinations (evidence: `README.md`)
- Project creation → Toolchain checks: runs setup checks (evidence: `apps/cli/src/create.ts`)
- Developer → Project upgrades: requests upgrade (evidence: `README.md`)
- Project upgrades → Upgrade planning: previews changes
- Upgrade planning → Generated project: updates templates (evidence: `README.md`)
- Locale runtime → Locale messages: loads messages (evidence: `apps/web/src/paraglide/runtime.js`)
- Locale middleware → Locale runtime: uses runtime (evidence: `apps/web/src/paraglide/server.js`)
