# saksham-giri/scrapify architecture

> Architecture diagram of the GitHub repository saksham-giri/scrapify, 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/saksham-giri/scrapify
- Repository: https://github.com/saksham-giri/scrapify

## Overview

Scrapify is a Django marketplace for recyclable scrap. Sellers register, create and manage listings; buyers browse available scrap and book it, with dashboards exposing listing and booking status. The graph separates account handling, listing and booking workflows, and their persisted domain records. The excerpts show route declarations, view calls, forms, ORM operations, and rendered template names; the README documents the database options and marketplace capabilities. Source for the project-level URL configuration and the core homepage was not excerpted, so those links are omitted.

Main entry points: [`accounts/views.py`](https://github.com/saksham-giri/scrapify/blob/main/accounts/views.py) (Account workflows), [`listings/views.py`](https://github.com/saksham-giri/scrapify/blob/main/listings/views.py) (Listing workflows), [`accounts/urls.py`](https://github.com/saksham-giri/scrapify/blob/main/accounts/urls.py) (Account routes), [`listings/urls.py`](https://github.com/saksham-giri/scrapify/blob/main/listings/urls.py) (Listing routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_account_routes["Account routes<br/>[urls.py]"]
  node_account_workflows["Account workflows<br/>[views.py]"]
  node_account_forms["Account forms<br/>[forms.py]"]
  node_user_model["User model<br/>[models.py]"]
  node_account_pages["Account pages"]
end

subgraph group_marketplace["Marketplace"]
  node_listing_routes["Listing routes<br/>[urls.py]"]
  node_listing_workflows["Listing workflows<br/>[views.py]"]
  node_listing_form["Listing form<br/>[forms.py]"]
  node_marketplace_pages["Marketplace pages"]
end

subgraph group_persistence["Domain data"]
  node_scrap_model["Scrap listings<br/>[models.py]"]
  node_booking_model["Bookings<br/>[models.py]"]
  node_database[("Configured database")]
end

node_buyer(("Buyer"))
node_seller(("Seller"))

node_buyer -->|"uses account routes"| node_account_routes
node_seller -->|"uses account routes"| node_account_routes
node_buyer -->|"browses and books"| node_listing_routes
node_seller -->|"manages listings"| node_listing_routes
node_account_routes -->|"routes to"| node_account_workflows
node_listing_routes -->|"routes to"| node_listing_workflows
node_account_workflows -->|"uses"| node_account_forms
node_account_forms -->|"creates users"| node_user_model
node_account_workflows -->|"renders"| node_account_pages
node_account_workflows -->|"queries listings"| node_scrap_model
node_account_workflows -->|"queries bookings"| node_booking_model
node_listing_workflows -->|"uses"| node_listing_form
node_listing_form -->|"validates listings"| node_scrap_model
node_listing_workflows -->|"reads and updates"| node_scrap_model
node_listing_workflows -->|"creates bookings"| node_booking_model
node_listing_workflows -->|"renders"| node_marketplace_pages
node_account_workflows -->|"queries records"| node_database
node_listing_workflows -->|"queries and writes"| node_database

click node_account_routes "https://github.com/saksham-giri/scrapify/blob/main/accounts/urls.py"
click node_account_workflows "https://github.com/saksham-giri/scrapify/blob/main/accounts/views.py"
click node_account_forms "https://github.com/saksham-giri/scrapify/blob/main/accounts/forms.py"
click node_user_model "https://github.com/saksham-giri/scrapify/blob/main/accounts/models.py"
click node_account_pages "https://github.com/saksham-giri/scrapify/tree/main/accounts/templates"
click node_listing_routes "https://github.com/saksham-giri/scrapify/blob/main/listings/urls.py"
click node_listing_workflows "https://github.com/saksham-giri/scrapify/blob/main/listings/views.py"
click node_listing_form "https://github.com/saksham-giri/scrapify/blob/main/listings/forms.py"
click node_marketplace_pages "https://github.com/saksham-giri/scrapify/tree/main/listings/templates"
click node_scrap_model "https://github.com/saksham-giri/scrapify/blob/main/listings/models.py"
click node_booking_model "https://github.com/saksham-giri/scrapify/blob/main/listings/models.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_account_routes,node_account_workflows,node_account_forms,node_user_model,node_account_pages toneBlue
class node_listing_routes,node_listing_workflows,node_listing_form,node_marketplace_pages toneAmber
class node_scrap_model,node_booking_model,node_database toneMint
class node_buyer,node_seller toneIndigo
```

## Components

### Accounts

- [Account routes](https://github.com/saksham-giri/scrapify/blob/main/accounts/urls.py): `accounts/urls.py`
- [Account workflows](https://github.com/saksham-giri/scrapify/blob/main/accounts/views.py): `accounts/views.py`
- [Account forms](https://github.com/saksham-giri/scrapify/blob/main/accounts/forms.py): `accounts/forms.py`
- [User model](https://github.com/saksham-giri/scrapify/blob/main/accounts/models.py): `accounts/models.py`
- [Account pages](https://github.com/saksham-giri/scrapify/tree/main/accounts/templates): `accounts/templates`

### Marketplace

- [Listing routes](https://github.com/saksham-giri/scrapify/blob/main/listings/urls.py): `listings/urls.py`
- [Listing workflows](https://github.com/saksham-giri/scrapify/blob/main/listings/views.py): `listings/views.py`
- [Listing form](https://github.com/saksham-giri/scrapify/blob/main/listings/forms.py): `listings/forms.py`
- [Marketplace pages](https://github.com/saksham-giri/scrapify/tree/main/listings/templates): `listings/templates`

### Domain data

- [Scrap listings](https://github.com/saksham-giri/scrapify/blob/main/listings/models.py): `listings/models.py`
- [Bookings](https://github.com/saksham-giri/scrapify/blob/main/listings/models.py): `listings/models.py`
- **Configured database**

### Other components

- **Buyer**
- **Seller**

## Connections

- Buyer → Account routes: uses account routes (evidence: `accounts/urls.py`)
- Seller → Account routes: uses account routes (evidence: `accounts/urls.py`)
- Buyer → Listing routes: browses and books (evidence: `listings/urls.py`)
- Seller → Listing routes: manages listings (evidence: `listings/urls.py`)
- Account routes → Account workflows: routes to (evidence: `accounts/urls.py`)
- Listing routes → Listing workflows: routes to (evidence: `listings/urls.py`)
- Account workflows → Account forms: uses (evidence: `accounts/views.py`)
- Account forms → User model: creates users (evidence: `accounts/forms.py`)
- Account workflows → Account pages: renders (evidence: `accounts/views.py`)
- Account workflows → Scrap listings: queries listings (evidence: `accounts/views.py`)
- Account workflows → Bookings: queries bookings (evidence: `accounts/views.py`)
- Listing workflows → Listing form: uses (evidence: `listings/views.py`)
- Listing form → Scrap listings: validates listings (evidence: `listings/forms.py`)
- Listing workflows → Scrap listings: reads and updates (evidence: `listings/views.py`)
- Listing workflows → Bookings: creates bookings (evidence: `listings/views.py`)
- Listing workflows → Marketplace pages: renders (evidence: `listings/views.py`)
- Account workflows → Configured database: queries records (evidence: `accounts/views.py`)
- Listing workflows → Configured database: queries and writes (evidence: `listings/views.py`)
