How szumaol/skener works
This is a receipt-tracking web app: users register or sign in, then manage receipt data in a dashboard; the dashboard also offers manual entry and a PRO-gated AI scan, while subscription checkout unlocks the scan. The graph reflects only relationships visible in the sampled source or README. Several API routes and pages are indexed but not excerpted, so their internal behavior and connections are omitted rather than inferred.
Main entry points: page.tsx Receipt dashboard · auth Auth endpoints · auth.ts Session service · route.ts Receipt save endpoint
Components 17
Web interface
- Receipt dashboard
app/page.tsx - Login page
app/login/page.tsx - Registration page
app/register/page.tsx - Logout control
components/LogoutButton.tsx - PRO lock screen
components/LockScreen.tsx - Subscribe control
components/SubscribeButton.tsx
Identity and access
- Auth endpoints
app/api/auth - Session service
lib/auth.ts
Receipt processing
- AI receipt scan
app/api/scan/route.ts - Receipt save endpoint
app/api/receipts/save/route.ts - Receipt listing endpoint
app/api/receipts/route.ts - Neon receipt data
Subscriptions
- Checkout endpoint
app/api/stripe/checkout/route.ts - Subscription webhook
app/api/webhooks/stripe/route.ts - Stripe client
lib/stripe.ts
Other components
- User
- Stripe
Connections 24
- User → Receipt dashboard: uses
- Receipt dashboard → Receipt listing endpoint: fetches receipts
app/page.tsx - Receipt dashboard → AI receipt scan: submits scan
- Receipt dashboard → Receipt save endpoint: saves receipt
- Receipt dashboard → Logout control: renders
app/page.tsx - Receipt dashboard → PRO lock screen: renders
app/page.tsx - PRO lock screen → Subscribe control: renders
components/LockScreen.tsx - User → Login page: signs in
- User → Registration page: registers
- Login page → Auth endpoints: submits credentials
- Registration page → Auth endpoints: submits registration
- Logout control → Auth endpoints: requests logout
components/LogoutButton.tsx - Auth endpoints → Session service: creates session
app/api/auth/login/route.ts - Receipt listing endpoint → Session service: checks session
app/api/receipts/route.ts - Receipt save endpoint → Session service: checks session
app/api/receipts/save/route.ts - Receipt listing endpoint → Neon receipt data: reads
app/api/receipts/route.ts - Receipt save endpoint → Neon receipt data: writes
app/api/receipts/save/route.ts - AI receipt scan → Neon receipt data: persists scan
- Subscribe control → Checkout endpoint: starts checkout
components/SubscribeButton.tsx - Checkout endpoint → Session service: checks session
app/api/stripe/checkout/route.ts - Checkout endpoint → Stripe client: creates checkout
app/api/stripe/checkout/route.ts - Subscription webhook → Stripe client: verifies event
app/api/webhooks/stripe/route.ts - Stripe client → Stripe: connects
- Subscription webhook → Neon receipt data: updates plan
app/api/webhooks/stripe/route.ts