How mfinayat/auctionhouse works
AuctionHouse.pk is a property marketplace and auction service. Requests enter through the Cloudflare Worker: public page requests are rendered as HTML, while API requests are delegated to the application handler and routed to domain services. Those services support accounts, listings and auctions, deals, staff operations, notifications, and live updates, with account and marketplace state stored in D1. The source index and excerpts establish several dispatches and worker actions; many domain modules are unsampled, so their internal call relationships are not inferred.
Main entry points: route.ts API router · index.ts Cloudflare Worker · notifications.ts Notifications · auctions.ts Listings and auctions
Components 19
Request entry
- Cloudflare Worker
source/worker/index.ts - API router
source/app/api/[...path]/route.ts - Public pages
source/app/lib/public-pages.ts - HTML shell
source/app/site-shell.ts
Marketplace domains
- Listings and auctions
source/app/lib/auctions.ts - Deals
source/app/lib/deals.ts - Listing review
source/app/lib/review-v2.ts - Wallet and holds
source/app/lib/wallet.ts
Accounts and support
- Accounts
source/app/lib/accounts.ts - Operations
source/app/lib/operations.ts - Staff access
source/app/lib/staff.ts - Media
source/app/lib/media.ts - Notifications
source/app/lib/notifications.ts - Live updates
source/app/lib/live.ts - Live publishing
source/app/lib/live-push.ts - Live Hub
source/worker/live-hub.ts
Runtime and state
- D1 database
source/db/schema.ts - Platform utilities
source/app/lib/platform.ts
Other components
- Visitor
Connections 22
- Visitor → Cloudflare Worker: sends requests
source/worker/index.ts - Cloudflare Worker → Public pages: renders page data
source/worker/index.ts - Cloudflare Worker → HTML shell: renders HTML
source/worker/index.ts - Cloudflare Worker → API router: delegates requests
source/worker/index.ts - API router → Accounts: checks accounts
source/app/api/[...path]/route.ts - API router → Listings and auctions: routes auction APIs
source/app/api/[...path]/route.ts - API router → Deals: routes deal APIs
source/app/api/[...path]/route.ts - API router → Operations: routes operations
source/app/api/[...path]/route.ts - API router → Staff access: routes staff APIs
source/app/api/[...path]/route.ts - API router → Media: routes media APIs
source/app/api/[...path]/route.ts - API router → Notifications: routes notifications
source/app/api/[...path]/route.ts - API router → Live updates: routes live API
source/app/api/[...path]/route.ts - Cloudflare Worker → Live publishing: publishes changes
source/worker/index.ts - Cloudflare Worker → Notifications: delivers notifications
source/worker/index.ts - Cloudflare Worker → Listings and auctions: expires listings
source/worker/index.ts - Cloudflare Worker → Wallet and holds: releases holds
source/worker/index.ts - Live publishing → Live Hub: publishes events
source/worker/index.ts - Accounts → D1 database: accesses D1
source/app/lib/accounts.ts - Listings and auctions → D1 database: reads and writes
source/app/lib/auctions.ts - Listing review → Wallet and holds: reserves deposits
source/app/lib/review-v2.ts - Listing review → Notifications: records responses
source/app/lib/review-v2.ts - Notifications → D1 database: stores notices
source/app/lib/notifications.ts