How shreya0119/fantamcode-2026-jass works
Purpose and Entry Points
ARIA is a deal-hunting application: a Python backend interprets shopping intent, retrieves and evaluates offers, then exposes signals for a Next.js frontend. Backend execution begins in aria-backend/main.py; the UI enters through aria-frontend/src/app/page.tsx and the hunt workflow at aria-frontend/src/app/hunt/page.tsx.
Frontend Application Shell
The frontend is a Next.js/TypeScript application with global layout, styling, and theme integration. aria-frontend/src/app/layout.tsx establishes the application shell; aria-frontend/src/app/globals.css defines shared presentation; aria-frontend/src/components/ThemeProvider.tsx manages theme context. aria-frontend/src/components/Navbar.tsx provides shared navigation.
Hunt Interaction and Results Presentation
The hunt page is the primary user-facing query surface and likely orchestrates request submission and deal display. aria-frontend/src/app/hunt/page.tsx is supported by reusable result-focused components: aria-frontend/src/components/DealCard.tsx, aria-frontend/src/components/PriceChart.tsx, and aria-frontend/src/components/ActivityFeed.tsx. Store and category context are represented by aria-frontend/src/components/StoreTicker.tsx and aria-frontend/src/components/CategoryIcons.tsx.
Intent-to-Query Pipeline
The backend converts a natural-language shopping request into retrieval-ready criteria. aria-backend/intent_parser.py extracts or structures user intent, while aria-backend/query_builder.py turns that structure into source queries. Shared domain records likely live in aria-backend/models.py; runtime settings and credentials boundaries are centralized in aria-backend/config.py.
Offer Acquisition Boundary
External deal/product acquisition is isolated behind retrieval and scraping modules. aria-backend/retriever.py coordinates finding candidate offers, and aria-backend/scraper.py handles source-specific web extraction. This boundary is where external retailer/search services, network reliability, normalization, and source variability should remain contained.
Evaluation, Historical Context, and Signals
Candidate offers are enriched and ranked before presentation. aria-backend/price_history.py supplies prior-price context; aria-backend/incentives.py accounts for promotions or incentive value; and aria-backend/scorer.py computes comparative quality. aria-backend/signal_engine.py consolidates these inputs into actionable deal signals for the API/UI layer.
Runtime and Integration Shape
The system has two independently runnable runtimes: Python backend dependencies are declared in aria-backend/requirements.txt, and the frontend’s Node/Next.js dependencies and scripts are in aria-frontend/package.json. The principal cross-runtime contract should be an HTTP/API boundary initiated by the hunt UI and served from aria-backend/main.py; no explicit API client, persistence layer, or deployed infrastructure is visible in the provided tree.
Main entry points: page.tsx Hunt workflow · retriever.py Offer retriever · main.py Backend API · intent_parser.py Intent parser
Components 18
Next.js Frontend
- Home page
aria-frontend/src/app/page.tsx - App shell
aria-frontend/src/app/layout.tsx - Theme provider
aria-frontend/src/components/ThemeProvider.tsx - Navigation
aria-frontend/src/components/Navbar.tsx - Hunt workflow · Submits shopping intent and presents deal signals.
aria-frontend/src/app/hunt/page.tsx - Deal results · Cards, price charts, and activity feed render hunt output.
aria-frontend/src/components/DealCard.tsx - Store & category context
aria-frontend/src/components/StoreTicker.tsx
Python Backend
- Backend API · Serves the cross-runtime hunt contract.
aria-backend/main.py - Intent parser
aria-backend/intent_parser.py - Query builder
aria-backend/query_builder.py - Offer retriever
aria-backend/retriever.py - Source scraper · Contains source-specific extraction and normalization.
aria-backend/scraper.py - Price history
aria-backend/price_history.py - Incentives
aria-backend/incentives.py - Offer scorer
aria-backend/scorer.py - Signal engine
aria-backend/signal_engine.py - Domain models
aria-backend/models.py
Offer Sources
- Retailer & search sources
Connections 19
- App shell → Theme provider: provides theme
- App shell → Navigation: includes
- Home page → Hunt workflow: navigates to
- Hunt workflow → Deal results: renders
- Hunt workflow → Store & category context: shows context
- Hunt workflow → Backend API: hunt request / signals · HTTP/API boundary.
- Backend API → Intent parser: interprets intent
- Intent parser → Query builder: structured criteria
- Query builder → Offer retriever: source queries
- Offer retriever → Source scraper: candidate acquisition
- Source scraper → Retailer & search sources: extracts offers
- Offer retriever → Price history: candidate offers
- Offer retriever → Incentives: candidate offers
- Price history → Offer scorer: prior-price context
- Incentives → Offer scorer: promotion value
- Offer scorer → Signal engine: ranked offers
- Signal engine → Backend API: deal signals
- Domain models → Intent parser: shared records
- Domain models → Signal engine: shared records