# jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club architecture

> Architecture diagram of the GitHub repository jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club
- Repository: https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club

## Overview

WasteConnect is a two-sided recycling marketplace: waste generators submit listings, AI helps characterize and check them, suitable recyclers are matched and bid, and users compare offers before choosing a recycler and tracking pickup and completion. The backend is the only application source shown in the tree; README capabilities fill in some workflow stages, while the frontend implementation is not present. Source excerpts and the index support the listed backend wiring, but unsampled router internals limit certainty about some detailed interactions.

Main entry points: [`Hacktoberfest/wasteconnect/backend/app/main.py`](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/main.py) (FastAPI application), [`Hacktoberfest/wasteconnect/backend/app/routers/listings.py`](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/listings.py) (Listing workflow), [`Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py`](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py) (Gemma client), [`Hacktoberfest/wasteconnect/backend/app/routers/transactions.py`](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/transactions.py) (Pickup transactions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API and identity"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_identity["Identity and access<br/>[auth.py]"]
  node_admin["Administration<br/>[admin.py]"]
  node_schemas["API schemas"]
end

subgraph group_market["Marketplace workflows"]
  node_listing_routes["Listing workflow<br/>[listings.py]"]
  node_recycler_routes["Recycler profiles<br/>[recyclers.py]"]
  node_bid_routes["Competitive bids<br/>[bids.py]"]
  node_transaction_routes["Pickup transactions<br/>[transactions.py]"]
  node_notifications["Notifications<br/>[notifications.py]"]
end

subgraph group_intelligence["AI intelligence"]
  node_matching["Recycler matching"]
  node_bid_analysis["Offer analysis"]
  node_embeddings["Semantic embeddings"]
  node_gemma["Gemma client<br/>[gemma_client.py]"]
  node_prompts["AI prompts<br/>[prompts.py]"]
end

subgraph group_persistence["Data and setup"]
  node_database["Database session<br/>[database.py]"]
  node_models["Marketplace records<br/>[models.py]"]
  node_store[("Relational database")]
  node_config["Runtime configuration<br/>[config.py]"]
  node_seed["Seed data<br/>[seed.py]"]
end

node_generator(("Waste generator"))
node_recycler(("Recycler"))
node_llm_provider{{"Gemma provider"}}

node_generator -->|"uses marketplace"| node_api_app
node_recycler -->|"uses marketplace"| node_api_app
node_api_app -->|"creates tables"| node_database
node_api_app -->|"routes requests"| node_auth_routes
node_api_app -->|"routes requests"| node_listing_routes
node_api_app -->|"routes requests"| node_bid_routes
node_api_app -->|"routes requests"| node_recycler_routes
node_api_app -->|"routes requests"| node_transaction_routes
node_api_app -->|"routes requests"| node_notifications
node_api_app -->|"routes requests"| node_admin
node_auth_routes -->|"uses identity"| node_identity
node_listing_routes -->|"analyzes listings"| node_gemma
node_listing_routes -->|"requests matches"| node_matching
node_listing_routes -->|"analyzes bids"| node_bid_analysis
node_recycler_routes -->|"uses matching"| node_matching
node_bid_analysis -->|"requests analysis"| node_gemma
node_matching -->|"scores similarity"| node_embeddings
node_matching -->|"reranks candidates"| node_gemma
node_gemma -->|"calls provider"| node_llm_provider
node_database -->|"registers models"| node_models
node_database -.->|"opens sessions"| node_store
node_config -->|"configures connection"| node_database
node_gemma -->|"reads settings"| node_config
node_admin -->|"invokes seeding"| node_seed
node_listing_routes -->|"uses contracts"| node_schemas
node_bid_routes -->|"uses contracts"| node_schemas
node_transaction_routes -->|"uses contracts"| node_schemas
node_transaction_routes -.->|"notifies parties"| node_notifications
node_generator -->|"submits waste"| node_listing_routes
node_recycler -->|"submits offers"| node_bid_routes
node_generator -->|"selects recycler"| node_transaction_routes

click node_api_app "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/main.py"
click node_auth_routes "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/auth.py"
click node_identity "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/auth/auth.py"
click node_listing_routes "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/listings.py"
click node_recycler_routes "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/recyclers.py"
click node_bid_routes "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/bids.py"
click node_transaction_routes "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/transactions.py"
click node_notifications "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/notifications.py"
click node_admin "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/admin.py"
click node_matching "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/matching_service.py"
click node_bid_analysis "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/bid_analysis_service.py"
click node_embeddings "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/embedding_service.py"
click node_gemma "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py"
click node_prompts "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/prompts.py"
click node_schemas "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/tree/main/Hacktoberfest/wasteconnect/backend/app/schemas"
click node_database "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/database.py"
click node_models "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/models/models.py"
click node_config "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/config.py"
click node_seed "https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/seed/seed.py"

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_api_app,node_auth_routes,node_identity,node_admin,node_schemas toneBlue
class node_listing_routes,node_recycler_routes,node_bid_routes,node_transaction_routes,node_notifications toneAmber
class node_matching,node_bid_analysis,node_embeddings,node_gemma,node_prompts toneMint
class node_database,node_models,node_store,node_config,node_seed toneRose
class node_generator,node_recycler,node_llm_provider toneIndigo
```

## Components

### API and identity

- [FastAPI application](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/main.py): `Hacktoberfest/wasteconnect/backend/app/main.py`
- [Authentication routes](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/auth.py): `Hacktoberfest/wasteconnect/backend/app/routers/auth.py`
- [Identity and access](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/auth/auth.py): `Hacktoberfest/wasteconnect/backend/app/auth/auth.py`
- [Administration](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/admin.py): `Hacktoberfest/wasteconnect/backend/app/routers/admin.py`
- [API schemas](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/tree/main/Hacktoberfest/wasteconnect/backend/app/schemas): `Hacktoberfest/wasteconnect/backend/app/schemas`

### Marketplace workflows

- [Listing workflow](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/listings.py): `Hacktoberfest/wasteconnect/backend/app/routers/listings.py`
- [Recycler profiles](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/recyclers.py): `Hacktoberfest/wasteconnect/backend/app/routers/recyclers.py`
- [Competitive bids](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/bids.py): `Hacktoberfest/wasteconnect/backend/app/routers/bids.py`
- [Pickup transactions](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/transactions.py): `Hacktoberfest/wasteconnect/backend/app/routers/transactions.py`
- [Notifications](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/routers/notifications.py): `Hacktoberfest/wasteconnect/backend/app/routers/notifications.py`

### AI intelligence

- [Recycler matching](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/matching_service.py): `Hacktoberfest/wasteconnect/backend/app/services/matching_service.py`
- [Offer analysis](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/bid_analysis_service.py): `Hacktoberfest/wasteconnect/backend/app/services/bid_analysis_service.py`
- [Semantic embeddings](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/embedding_service.py): `Hacktoberfest/wasteconnect/backend/app/services/embedding_service.py`
- [Gemma client](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py): `Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py`
- [AI prompts](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/services/prompts.py): `Hacktoberfest/wasteconnect/backend/app/services/prompts.py`

### Data and setup

- [Database session](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/database.py): `Hacktoberfest/wasteconnect/backend/app/database.py`
- [Marketplace records](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/models/models.py): `Hacktoberfest/wasteconnect/backend/app/models/models.py`
- **Relational database**
- [Runtime configuration](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/app/config.py): `Hacktoberfest/wasteconnect/backend/app/config.py`
- [Seed data](https://github.com/jpjp19/hacktoberfest-hack-day-coimbatore-x-init-club-and-idea-club/blob/main/Hacktoberfest/wasteconnect/backend/seed/seed.py): `Hacktoberfest/wasteconnect/backend/seed/seed.py`

### Other components

- **Waste generator**
- **Recycler**
- **Gemma provider**

## Connections

- Waste generator → FastAPI application: uses marketplace (evidence: `README.md`)
- Recycler → FastAPI application: uses marketplace (evidence: `README.md`)
- FastAPI application → Database session: creates tables (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Authentication routes: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Listing workflow: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Competitive bids: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Recycler profiles: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Pickup transactions: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Notifications: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- FastAPI application → Administration: routes requests (evidence: `Hacktoberfest/wasteconnect/backend/app/main.py`)
- Authentication routes → Identity and access: uses identity (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/auth.py`)
- Listing workflow → Gemma client: analyzes listings (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/listings.py`)
- Listing workflow → Recycler matching: requests matches (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/listings.py`)
- Listing workflow → Offer analysis: analyzes bids (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/listings.py`)
- Recycler profiles → Recycler matching: uses matching (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/recyclers.py`)
- Offer analysis → Gemma client: requests analysis (evidence: `Hacktoberfest/wasteconnect/backend/app/services/bid_analysis_service.py`)
- Recycler matching → Semantic embeddings: scores similarity (evidence: `Hacktoberfest/wasteconnect/backend/app/services/matching_service.py`)
- Recycler matching → Gemma client: reranks candidates (evidence: `Hacktoberfest/wasteconnect/backend/app/services/matching_service.py`)
- Gemma client → Gemma provider: calls provider (evidence: `Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py`)
- Database session → Marketplace records: registers models (evidence: `Hacktoberfest/wasteconnect/backend/app/database.py`)
- Database session → Relational database: opens sessions
- Runtime configuration → Database session: configures connection (evidence: `Hacktoberfest/wasteconnect/backend/app/database.py`)
- Gemma client → Runtime configuration: reads settings (evidence: `Hacktoberfest/wasteconnect/backend/app/services/gemma_client.py`)
- Administration → Seed data: invokes seeding (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/admin.py`)
- Listing workflow → API schemas: uses contracts (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/listings.py`)
- Competitive bids → API schemas: uses contracts (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/bids.py`)
- Pickup transactions → API schemas: uses contracts (evidence: `Hacktoberfest/wasteconnect/backend/app/routers/transactions.py`)
- Pickup transactions → Notifications: notifies parties
- Waste generator → Listing workflow: submits waste (evidence: `README.md`)
- Recycler → Competitive bids: submits offers (evidence: `README.md`)
- Waste generator → Pickup transactions: selects recycler (evidence: `README.md`)
