Inspiration

A campus after dark is a different place. A path that feels fine at 3 pm can feel unsafe at 9 pm, and the reports about it are scattered across emails, spreadsheets and maintenance tickets. Teams know something needs fixing, but when the budget is limited, they have no clear way to decide which repair buys the most useful light. We wanted to turn that messy inbox into one map and one defensible decision.

What it does

AfterDark OS puts every campus lighting report, pathway, light and building on one map. It tracks each report through a strict lifecycle — reported, assessed, scheduled, repaired and field-checked — and only updates the coverage estimate after a field check. Its repair planner lets a team choose a budget and compares every feasible repair combination using pathway length, evening footfall and capped overlapping coverage gains. It returns the combination that improves the most walked paths for the money, with before/after views, saved scenarios and CSV export. The map is a synthetic Aster Campus dataset, clearly labelled as a planning estimate — not measured illumination or a safety score.

How we built it

AfterDark OS is a Next.js App Router app with React, TypeScript, Tailwind CSS, Prisma and SQLite. The campus, lights, pathways and reports are deterministic synthetic data so every demo is repeatable. The optimiser is an exact deterministic subset search: it enumerates feasible repair sets, caps overlapping gains per pathway, applies pathway length and evening footfall weights, and returns the best objective under the budget. Zod validates API input; Recharts renders the coverage comparison; Framer Motion handles the interface transitions; the whole flow runs locally with no model calls and no hidden score.

Challenges we ran into

  • Preventing overlapping repairs from double-counting the same coverage gain.
  • Making a synthetic campus feel like a connected network rather than unrelated dots.
  • Keeping the planner exact without making the demo slow.
  • Designing a maintenance lifecycle strict enough to trust but simple enough to use on a phone.
  • Deploying a SQLite-backed demo on a read-only serverless filesystem; we solved it with a seeded runtime copy in /tmp for the public demo.

Accomplishments that we're proud of

  • A complete working flow: report a lighting issue, see it on the map, choose a budget, get a prioritised repair plan and track the issue through field check.
  • An exact optimiser that gives visibly different plans at ₹3,000 and ₹5,000.
  • A campus map with 20 pathways, 20 lights, 12 buildings and 12 seeded reports, including keyboard navigation.
  • A public deployed demo, an open-source repository and a narrated 47-second walkthrough.
  • A clear honesty line: coverage is a planning estimate, not a photometric measurement or safety assessment.

What we learned

Small, well-modelled decisions are easier to trust than a single black-box score. Showing the selected repairs, the before/after coverage and the cost makes the budget conversation concrete. We also learned that synthetic data needs to be labelled everywhere it appears — otherwise a planning estimate can be mistaken for measured reality. And exact search is perfectly practical at this scale; the constraint is the interface and the data model, not the algorithm.

What's next for AfterDark

  • Replace synthetic geometry with a real campus survey and measured lighting levels.
  • Move from SQLite to a persistent production database with an audited maintenance history.
  • Add photo-assisted issue categorisation as an explicitly user-triggered assistant.
  • Generate maintenance work orders and track contractor costs.
  • Test the prioritisation and field-check workflow with campus operations staff.

Built With

Share this project:

Updates

Submission history