How kantimohanthy/team-empty-sarajevo-hackathon works
G-Core is a behavioral-banking loyalty prototype: customer banking activity is contextualized and filtered before behavioral evaluation, goal and reward decisions, and pseudonymous G-Core status. Customers explore banking and ecosystem views and can trigger simulations; bank staff have a separate intelligence console. The graph combines documented capabilities with sampled server calls. Some API routes and UI pages were not sampled, so their internal wiring is omitted where it cannot be established.
Main entry points: pipeline.ts Evaluation pipeline · gcore-engine.ts G-Core engine · page.tsx Ecosystem views · demo-context.tsx Demo state
Components 22
Product experiences
- Banking interface
app/bank/page.tsx - Ecosystem views
app/ecosystem/page.tsx - Bank admin console
app/bank-admin/page.tsx - Network view
app/network/page.tsx
Browser demo
- Demo state
lib/demo-context.tsx - Demo simulation
lib/demo-engine.ts - Demo seed data
lib/mock-data.ts - G-Core client state
lib/gcore-context.tsx - Simulation APIs
app/api/simulation/month/route.ts
Behavior evaluation
- Evaluation pipeline
lib/server/pipeline.ts - Transaction classification
lib/server/classification-engine.ts - Transaction ingestion
lib/server/ingest.ts - Transfer filtering
lib/server/anti-gaming-engine.ts - Behavior scoring
lib/server/behavior-engine.ts - Reward eligibility
lib/server/reward-engine.ts - Event stream
lib/server/event-engine.ts - Behavior evaluation API
app/api/behavior/evaluate/route.ts - Transaction API
app/api/transactions/route.ts
Loyalty and state
- G-Core engine
lib/server/gcore-engine.ts - Bank snapshot
lib/server/bank-snapshot.ts - SQLite database
lib/server/db.ts
Other components
- Customer
Connections 25
- Customer → Banking interface: uses
- Customer → Ecosystem views: explores
- Banking interface → Demo state: reads state
app/bank/page.tsx - Ecosystem views → Demo state: reads state
app/ecosystem/page.tsx - Ecosystem views → G-Core client state: reads state
app/ecosystem/page.tsx - Bank admin console → Demo state: reads state
app/bank-admin/page.tsx - Demo state → Demo simulation: runs simulations
lib/demo-context.tsx - Demo simulation → Demo seed data: loads seed data
lib/demo-engine.ts - Demo state → Simulation APIs: syncs actions
lib/demo-context.tsx - Behavior evaluation API → Evaluation pipeline: runs evaluation
app/api/behavior/evaluate/route.ts - Transaction API → Transaction ingestion: ingests transactions
app/api/transactions/route.ts - Transaction ingestion → Transaction classification: classifies
lib/server/ingest.ts - Evaluation pipeline → SQLite database: reads and writes
lib/server/pipeline.ts - Evaluation pipeline → Transfer filtering: filters transfers
lib/server/pipeline.ts - Evaluation pipeline → Behavior scoring: scores behavior
lib/server/pipeline.ts - Evaluation pipeline → Reward eligibility: evaluates offers
lib/server/pipeline.ts - Evaluation pipeline → Event stream: writes events
lib/server/pipeline.ts - Evaluation pipeline → G-Core engine: syncs status
lib/server/pipeline.ts - G-Core engine → Evaluation pipeline: refreshes snapshot
lib/server/gcore-engine.ts - G-Core engine → Bank snapshot: reads bank metrics
lib/server/gcore-engine.ts - Bank snapshot → Event stream: reads feed
lib/server/bank-snapshot.ts - Ecosystem views → G-Core engine: shows points and tiers
- Ecosystem views → G-Core engine: offers perk claims
- Bank admin console → Event stream: shows event stream
- Network view → G-Core engine: shows network status