# nithyasri26/skillecho architecture

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

- Interactive diagram: https://gitdiagram.com/nithyasri26/skillecho
- Repository: https://github.com/nithyasri26/skillecho

## Overview

SkillEcho is a voice-first knowledge-sharing app: a worker teaches a trade skill by speaking, the app builds and saves a guide, and another worker asks for help and hears matching steps. The conversation flows coordinate both paths; the engine cleans transcripts, builds guides, and searches by meaning, while localized prompts support the exchange. The browser supplies speech and offline behavior; a small Node server stores guides and feedback. The map follows documented capabilities, but unsampled UI and storage details are not expanded beyond supported evidence.

Main entry points: [`public/app.js`](https://github.com/nithyasri26/skillecho/blob/main/public/app.js) (App and voice I/O), [`public/flows.js`](https://github.com/nithyasri26/skillecho/blob/main/public/flows.js) (Teach and learn flows), [`server.js`](https://github.com/nithyasri26/skillecho/blob/main/server.js) (Guide and feedback API), [`public/sw.js`](https://github.com/nithyasri26/skillecho/blob/main/public/sw.js) (Offline shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Conversation"]
  node_flows["Teach and learn flows<br/>[flows.js]"]
  node_engine["Transcript and guide engine<br/>[engine.js]"]
end

subgraph group_browser["Browser experience"]
  node_app["App and voice I/O<br/>[app.js]"]
  node_offline["Offline shell<br/>[sw.js]"]
  node_localcache[("Phone guide cache<br/>[app.js]")]
end

subgraph group_service["Guide service"]
  node_api["Guide and feedback API<br/>[server.js]"]
  node_guide_store[("Guide store<br/>[server.js]")]
  node_wanted[("Gurus wanted list<br/>[server.js]")]
end

subgraph group_content["Language and content"]
  node_prompts["Localized prompts<br/>[i18n.js]"]
  node_seed["Demo guides<br/>[guides.json]"]
end

node_teacher(("Knowledge teacher"))
node_learner(("Knowledge learner"))
node_speech["Browser speech APIs"]

node_teacher -->|"teaches through"| node_app
node_learner -->|"asks through"| node_app
node_app -->|"starts session"| node_flows
node_flows -->|"uses voice I/O"| node_app
node_app -->|"uses speech APIs"| node_speech
node_flows -->|"cleans and searches"| node_engine
node_flows -->|"loads prompts"| node_prompts
node_flows -->|"requests guide operations"| node_app
node_app -->|"calls HTTP API"| node_api
node_api -->|"reads and writes"| node_guide_store
node_api -->|"records unanswered queries"| node_wanted
node_api -->|"loads initial guides"| node_seed
node_app -->|"caches guides"| node_localcache
node_app -->|"registers worker"| node_offline
node_offline -->|"caches app shell"| node_app

click node_app "https://github.com/nithyasri26/skillecho/blob/main/public/app.js"
click node_offline "https://github.com/nithyasri26/skillecho/blob/main/public/sw.js"
click node_localcache "https://github.com/nithyasri26/skillecho/blob/main/public/app.js"
click node_flows "https://github.com/nithyasri26/skillecho/blob/main/public/flows.js"
click node_engine "https://github.com/nithyasri26/skillecho/blob/main/public/engine.js"
click node_prompts "https://github.com/nithyasri26/skillecho/blob/main/public/i18n.js"
click node_api "https://github.com/nithyasri26/skillecho/blob/main/server.js"
click node_guide_store "https://github.com/nithyasri26/skillecho/blob/main/server.js"
click node_wanted "https://github.com/nithyasri26/skillecho/blob/main/server.js"
click node_seed "https://github.com/nithyasri26/skillecho/blob/main/seed/guides.json"

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_flows,node_engine,node_speech toneBlue
class node_app,node_offline,node_localcache toneAmber
class node_api,node_guide_store,node_wanted toneMint
class node_prompts,node_seed toneRose
class node_teacher,node_learner toneIndigo
```

## Components

### Conversation

- [Teach and learn flows](https://github.com/nithyasri26/skillecho/blob/main/public/flows.js): `public/flows.js`
- [Transcript and guide engine](https://github.com/nithyasri26/skillecho/blob/main/public/engine.js): `public/engine.js`

### Browser experience

- [App and voice I/O](https://github.com/nithyasri26/skillecho/blob/main/public/app.js): `public/app.js`
- [Offline shell](https://github.com/nithyasri26/skillecho/blob/main/public/sw.js): `public/sw.js`
- [Phone guide cache](https://github.com/nithyasri26/skillecho/blob/main/public/app.js): `public/app.js`

### Guide service

- [Guide and feedback API](https://github.com/nithyasri26/skillecho/blob/main/server.js): `server.js`
- [Guide store](https://github.com/nithyasri26/skillecho/blob/main/server.js): `server.js`
- [Gurus wanted list](https://github.com/nithyasri26/skillecho/blob/main/server.js): `server.js`

### Language and content

- [Localized prompts](https://github.com/nithyasri26/skillecho/blob/main/public/i18n.js): `public/i18n.js`
- [Demo guides](https://github.com/nithyasri26/skillecho/blob/main/seed/guides.json): `seed/guides.json`

### Other components

- **Knowledge teacher**
- **Knowledge learner**
- **Browser speech APIs**

## Connections

- Knowledge teacher → App and voice I/O: teaches through (evidence: `README.md`)
- Knowledge learner → App and voice I/O: asks through (evidence: `README.md`)
- App and voice I/O → Teach and learn flows: starts session (evidence: `public/app.js`)
- Teach and learn flows → App and voice I/O: uses voice I/O (evidence: `public/flows.js`)
- App and voice I/O → Browser speech APIs: uses speech APIs (evidence: `public/app.js`)
- Teach and learn flows → Transcript and guide engine: cleans and searches (evidence: `public/flows.js`)
- Teach and learn flows → Localized prompts: loads prompts (evidence: `public/flows.js`)
- Teach and learn flows → App and voice I/O: requests guide operations (evidence: `public/flows.js`)
- App and voice I/O → Guide and feedback API: calls HTTP API (evidence: `public/app.js`)
- Guide and feedback API → Guide store: reads and writes (evidence: `server.js`)
- Guide and feedback API → Gurus wanted list: records unanswered queries (evidence: `server.js`)
- Guide and feedback API → Demo guides: loads initial guides (evidence: `server.js`)
- App and voice I/O → Phone guide cache: caches guides (evidence: `public/app.js`)
- App and voice I/O → Offline shell: registers worker (evidence: `public/app.js`)
- Offline shell → App and voice I/O: caches app shell (evidence: `public/sw.js`)
