# neilesh1987/streamlit_demo architecture

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

- Interactive diagram: https://gitdiagram.com/neilesh1987/streamlit_demo
- Repository: https://github.com/neilesh1987/streamlit_demo

## Overview

This is a small Streamlit railway-booking app: users create bookings, search by PNR or customer name, and view a customer’s booking summary. The sampled source shows these workflows and SQLite access in app.py; railwaybooking.py appears to contain a duplicate implementation. The README provides no further product detail, and omitted source means some persistence and booking-generation specifics are uncertain.

Main entry points: [`app.py`](https://github.com/neilesh1987/streamlit_demo/blob/main/app.py) (SQLite access), [`railway.db`](https://github.com/neilesh1987/streamlit_demo/blob/main/railway.db) (Bookings database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Booking workflows"]
  node_booking["New booking<br/>[app.py]"]
  node_search["Booking search<br/>[app.py]"]
  node_customer["Customer details<br/>[app.py]"]
end

subgraph group_data["Booking storage"]
  node_access["SQLite access<br/>[app.py]"]
  node_db[("Bookings database<br/>[railway.db]")]
end

node_user(("User"))

node_user -->|"enters booking"| node_booking
node_user -->|"searches bookings"| node_search
node_user -->|"requests details"| node_customer
node_booking -->|"saves booking"| node_access
node_search -->|"queries bookings"| node_access
node_customer -->|"queries bookings"| node_access
node_access -->|"reads and writes"| node_db

click node_booking "https://github.com/neilesh1987/streamlit_demo/blob/main/app.py"
click node_search "https://github.com/neilesh1987/streamlit_demo/blob/main/app.py"
click node_customer "https://github.com/neilesh1987/streamlit_demo/blob/main/app.py"
click node_access "https://github.com/neilesh1987/streamlit_demo/blob/main/app.py"
click node_db "https://github.com/neilesh1987/streamlit_demo/blob/main/railway.db"

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_booking,node_search,node_customer,node_user toneBlue
class node_access,node_db toneAmber
```

## Components

### Booking workflows

- [New booking](https://github.com/neilesh1987/streamlit_demo/blob/main/app.py): `app.py`
- [Booking search](https://github.com/neilesh1987/streamlit_demo/blob/main/app.py): `app.py`
- [Customer details](https://github.com/neilesh1987/streamlit_demo/blob/main/app.py): `app.py`

### Booking storage

- [SQLite access](https://github.com/neilesh1987/streamlit_demo/blob/main/app.py): `app.py`
- [Bookings database](https://github.com/neilesh1987/streamlit_demo/blob/main/railway.db): `railway.db`

### Other components

- **User**

## Connections

- User → New booking: enters booking
- User → Booking search: searches bookings
- User → Customer details: requests details
- New booking → SQLite access: saves booking
- Booking search → SQLite access: queries bookings
- Customer details → SQLite access: queries bookings
- SQLite access → Bookings database: reads and writes
