How waleednjlaty/waleed-zone-wab works
WALEED ZONE Web is an Arabic, right-to-left apps-and-games catalog backed by PostgreSQL and connected to a Telegram bot. Visitors browse or search listings, open details, and use a staged download flow; they can also register, log in, and save favorites. Owner-facing admin and aggregate analytics are distinct product branches, as are the documented advertising gates. The graph uses README and SOURCE INDEX relationships where available; several unsampled route and UI implementations are represented by their exact tree paths, without inferred internal call chains.
Main entry points: db.ts PostgreSQL · http.ts Download request handling · queries.ts Catalog queries · page.tsx Catalog pages
Components 34
Catalog experience
- Catalog pages
src/app/page.tsx - Browse and details
src/app/apps/[slug]/page.tsx - Catalog presentation
src/components/catalog/presentation.ts - Search endpoint
src/app/api/search/route.ts - Catalog queries
src/lib/queries.ts - Search ranking
src/lib/search/service.ts - Query normalization
src/lib/search/normalize.ts
Accounts and metrics
- Account pages
src/app/account/page.tsx - Authentication routes
src/app/api/auth/login/route.ts - Sessions and credentials
src/lib/auth.ts - Saved favorites
src/app/api/favorites/route.ts - Visitor registration
src/app/api/visit/route.ts - Owner statistics
src/app/api/stats/route.ts
Download delivery
- Download experience
src/components/download/DownloadExperience.tsx - Download endpoints
src/app/api/downloads/requests/route.ts - Download request handling
src/lib/downloads/http.ts - Download orchestration
src/lib/downloads/service.ts - Download rules
src/lib/downloads/rules.ts - Network safeguards
src/lib/downloads/network.ts - Browser provider manager
src/lib/downloads/browser/manager.ts - Provider browser engine
src/lib/downloads/browser/engine.ts - BZZHR provider
src/lib/downloads/providers/bzzhr.ts - Public HTTP provider
src/lib/downloads/providers/public-http.ts - Delivery storage
src/lib/downloads/storage.ts
Owner operations
- Admin workspace
src/components/admin/AdminDashboard.tsx - Admin endpoints
src/app/api/admin/catalog/route.ts - Ad consent and gates
src/lib/monetization/consent.ts - Ad serving
src/components/monetization/ManualAd.tsx
Shared platform
- PostgreSQL
src/lib/db.ts - Locale services
src/lib/locale.ts - Catalog imagery
src/components/CoverImage.tsx
Other components
- Visitor
- Telegram bot
- Google AdSense
Connections 37
- Visitor → Catalog pages: browses
README.md - Visitor → Search endpoint: searches
src/app/api/search/route.ts - Search endpoint → Catalog queries: requests listings
src/app/api/search/route.ts - Catalog queries → Search ranking: ranks candidates
src/lib/queries.ts - Search ranking → Query normalization: normalizes query
src/lib/search/service.ts - Catalog pages → Browse and details: opens titles
README.md - Browse and details → Catalog presentation: renders catalog data
- Catalog queries → PostgreSQL: reads listings
src/lib/queries.ts - Browse and details → Catalog imagery: shows artwork
- Visitor → Account pages: manages account
README.md - Account pages → Authentication routes: submits credentials
- Authentication routes → Sessions and credentials: authenticates
src/app/api/auth/login/route.ts - Sessions and credentials → PostgreSQL: stores sessions
src/lib/auth.ts - Visitor → Saved favorites: saves favorites
README.md - Saved favorites → Sessions and credentials: checks user
src/app/api/favorites/route.ts - Saved favorites → Catalog queries: reads catalog
src/app/api/favorites/route.ts - Visitor → Visitor registration: registers visit
src/app/api/visit/route.ts - Visitor registration → PostgreSQL: records aggregate
src/app/api/visit/route.ts - Owner statistics → PostgreSQL: reads totals
src/app/api/stats/route.ts - Admin workspace → Admin endpoints: manages catalog
- Admin workspace → Owner statistics: views reports
README.md - Admin endpoints → PostgreSQL: updates catalog
- Ad consent and gates → Ad serving: gates serving
README.md - Ad serving → Google AdSense: serves ads
README.md - Visitor → Download experience: requests download
README.md - Download experience → Download endpoints: calls endpoints
- Download endpoints → Download request handling: dispatches request
src/app/api/downloads/requests/route.ts - Download request handling → Download orchestration: orchestrates
src/lib/downloads/http.ts - Download request handling → Download rules: validates request
src/lib/downloads/http.ts - Download request handling → Network safeguards: checks network
src/lib/downloads/http.ts - Download orchestration → Download rules: applies rules
src/lib/downloads/service.ts - Download orchestration → Delivery storage: prepares delivery
src/lib/downloads/service.ts - Browser provider manager → Provider browser engine: runs provider flow
src/lib/downloads/browser/manager.ts - Provider browser engine → BZZHR provider: resolves provider
src/lib/downloads/browser/engine.ts - Provider browser engine → Public HTTP provider: validates URLs
src/lib/downloads/browser/engine.ts - Telegram bot → PostgreSQL: publishes applications
README.md - Catalog pages → Locale services: localizes interface