# nekurama/bulb architecture

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

- Interactive diagram: https://gitdiagram.com/nekurama/bulb
- Repository: https://github.com/nekurama/bulb

## Overview

Bulb is a version-controlled idea vault: people capture ideas, explore them with research and experiments, build selected ideas into projects, and record what they learn. The repository also contains a substantial Babai restaurant-operations concept, presented through local, fictional UI prototypes rather than a production service. The graph preserves that concept’s major user-facing areas and separates its three browser experiences. Source excerpts show local state/rendering behavior; they do not establish a production backend or durable idea-storage workflow.

Main entry points: [`site/app.js`](https://github.com/nekurama/bulb/blob/main/site/app.js) (Concept landing UI), [`script.js`](https://github.com/nekurama/bulb/blob/main/script.js) (Story walkthrough), [`docs/products/babai`](https://github.com/nekurama/bulb/tree/main/docs/products/babai) (Babai product plans), [`app.js`](https://github.com/nekurama/bulb/blob/main/app.js) (Journey explorer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vault["Idea vault"]
  node_ideas["Idea documents"]
  node_research["Research and experiments"]
  node_projects["Selected projects"]
  node_learning["Outcome notes"]
end

subgraph group_concept["Babai concept"]
  node_babai_docs["Babai product plans"]
end

subgraph group_interfaces["Prototype interfaces"]
  node_marketing_ui["Concept landing UI<br/>[app.js]"]
  node_journey_ui["Journey explorer<br/>[app.js]"]
  node_story_ui["Story walkthrough<br/>[script.js]"]
  node_mock_data["Mock scenarios<br/>[mock-data.json]"]
end

subgraph group_domain["Operations capabilities"]
  node_onboarding["Restaurant onboarding"]
  node_menu_setup["Menu setup"]
  node_team_handoff["Team and handoff"]
  node_order_desk["Order desk"]
  node_commerce["Payments and fulfillment"]
  node_care["Care and recovery"]
end

node_person(("Idea contributor"))

node_person -->|"captures"| node_ideas
node_ideas -->|"explores"| node_research
node_research -->|"builds"| node_projects
node_projects -->|"records lessons"| node_learning
node_person -.->|"views mock"| node_marketing_ui
node_person -.->|"explores states"| node_journey_ui
node_person -.->|"browses stages"| node_story_ui
node_journey_ui -->|"renders journey"| node_onboarding
node_journey_ui -->|"renders journey"| node_order_desk
node_marketing_ui -->|"renders screen"| node_onboarding
node_marketing_ui -->|"renders screen"| node_menu_setup
node_marketing_ui -->|"renders screen"| node_team_handoff
node_marketing_ui -->|"renders screen"| node_order_desk
node_marketing_ui -->|"renders screen"| node_commerce
node_marketing_ui -->|"renders screen"| node_care
node_story_ui -.->|"loads scenarios"| node_mock_data
node_story_ui -->|"shows stage"| node_onboarding
node_story_ui -->|"shows stage"| node_menu_setup
node_story_ui -->|"shows stage"| node_commerce
node_story_ui -->|"shows stage"| node_order_desk
node_story_ui -->|"shows stage"| node_care
node_babai_docs -.->|"specifies"| node_onboarding
node_babai_docs -.->|"specifies"| node_menu_setup
node_babai_docs -.->|"specifies"| node_team_handoff
node_babai_docs -.->|"specifies"| node_order_desk
node_babai_docs -.->|"specifies"| node_commerce
node_babai_docs -.->|"specifies"| node_care

click node_ideas "https://github.com/nekurama/bulb/tree/main/docs"
click node_babai_docs "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_marketing_ui "https://github.com/nekurama/bulb/blob/main/site/app.js"
click node_journey_ui "https://github.com/nekurama/bulb/blob/main/app.js"
click node_story_ui "https://github.com/nekurama/bulb/blob/main/script.js"
click node_mock_data "https://github.com/nekurama/bulb/blob/main/mock-data.json"
click node_onboarding "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_menu_setup "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_team_handoff "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_order_desk "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_commerce "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_care "https://github.com/nekurama/bulb/tree/main/docs/products/babai"
click node_research "https://github.com/nekurama/bulb/tree/main/docs"
click node_projects "https://github.com/nekurama/bulb/tree/main/docs"
click node_learning "https://github.com/nekurama/bulb/tree/main/docs"

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_ideas,node_research,node_projects,node_learning toneBlue
class node_babai_docs toneAmber
class node_marketing_ui,node_journey_ui,node_story_ui,node_mock_data toneMint
class node_onboarding,node_menu_setup,node_team_handoff,node_order_desk,node_commerce,node_care toneRose
class node_person toneIndigo
```

## Components

### Idea vault

- [Idea documents](https://github.com/nekurama/bulb/tree/main/docs): `docs`
- [Research and experiments](https://github.com/nekurama/bulb/tree/main/docs): `docs`
- [Selected projects](https://github.com/nekurama/bulb/tree/main/docs): `docs`
- [Outcome notes](https://github.com/nekurama/bulb/tree/main/docs): `docs`

### Babai concept

- [Babai product plans](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`

### Prototype interfaces

- [Concept landing UI](https://github.com/nekurama/bulb/blob/main/site/app.js): `site/app.js`
- [Journey explorer](https://github.com/nekurama/bulb/blob/main/app.js): `app.js`
- [Story walkthrough](https://github.com/nekurama/bulb/blob/main/script.js): `script.js`
- [Mock scenarios](https://github.com/nekurama/bulb/blob/main/mock-data.json): `mock-data.json`

### Operations capabilities

- [Restaurant onboarding](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`
- [Menu setup](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`
- [Team and handoff](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`
- [Order desk](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`
- [Payments and fulfillment](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`
- [Care and recovery](https://github.com/nekurama/bulb/tree/main/docs/products/babai): `docs/products/babai`

### Other components

- **Idea contributor**

## Connections

- Idea contributor → Idea documents: captures (evidence: `README.md`)
- Idea documents → Research and experiments: explores (evidence: `README.md`)
- Research and experiments → Selected projects: builds (evidence: `README.md`)
- Selected projects → Outcome notes: records lessons (evidence: `README.md`)
- Idea contributor → Concept landing UI: views mock
- Idea contributor → Journey explorer: explores states
- Idea contributor → Story walkthrough: browses stages
- Journey explorer → Restaurant onboarding: renders journey (evidence: `app.js`)
- Journey explorer → Order desk: renders journey (evidence: `app.js`)
- Concept landing UI → Restaurant onboarding: renders screen (evidence: `site/app.js`)
- Concept landing UI → Menu setup: renders screen (evidence: `site/app.js`)
- Concept landing UI → Team and handoff: renders screen (evidence: `site/app.js`)
- Concept landing UI → Order desk: renders screen (evidence: `site/app.js`)
- Concept landing UI → Payments and fulfillment: renders screen (evidence: `site/app.js`)
- Concept landing UI → Care and recovery: renders screen (evidence: `site/app.js`)
- Story walkthrough → Mock scenarios: loads scenarios
- Story walkthrough → Restaurant onboarding: shows stage (evidence: `script.js`)
- Story walkthrough → Menu setup: shows stage (evidence: `script.js`)
- Story walkthrough → Payments and fulfillment: shows stage (evidence: `script.js`)
- Story walkthrough → Order desk: shows stage (evidence: `script.js`)
- Story walkthrough → Care and recovery: shows stage (evidence: `script.js`)
- Babai product plans → Restaurant onboarding: specifies
- Babai product plans → Menu setup: specifies
- Babai product plans → Team and handoff: specifies
- Babai product plans → Order desk: specifies
- Babai product plans → Payments and fulfillment: specifies
- Babai product plans → Care and recovery: specifies
