Skip to content

arykv/allnighter

Repository files navigation

All Nighter

Everything you need at 11pm the night before. Every NCERT chapter for Class 10, 11 and 12, handwritten notes, CBSE calculators, honest exam strategy and a checked directory of free resources — in one searchable place.

Live at allnighter.in, and at dps-gandhinagar.in where it started.

Built by students, for students. Not affiliated with any school or board.


Why it was rebuilt

The first version was seven hand-written HTML pages. Reaching a PDF took six clicks (index → class → stream → subject → student → part → viewer), the mobile layout was broken, and at the time of the rewrite dps-gandhinagar.in was returning a 404 because index.html had been renamed.

This version is built around one question: how fast can someone get from "I need the chem notes" to actually reading them? The answer is a command palette on ⌘K, and one click from there.

What's in it

Library Handwritten notes scanned by students, filterable by class, stream, subject and type. Every file is credited to whoever wrote it.
Chapters Every NCERT Class 11 and 12 chapter as a direct link to the PDF on ncert.nic.in — no ad walls, no sign-up. The index is generated by probing NCERT and reading each title out of the PDF itself, so it tracks the current rationalised syllabus.
Resources Hand-checked links: CBSE syllabus and sample papers, NCERT textbooks and exemplars, free notes sites, Desmos/GeoGebra/PhET, scholarships. Plus the YouTube channels actually worth an evening.
Tools Six calculators that follow CBSE's own rules — best-of-five percentage, target marks, attendance against the 75% rule, grade points, exam countdown, unit converter.
School day A live bar showing which period is running and how many minutes are left. Timings are editable per device, because sections differ.
⌘K palette Searches notes, chapters, tools, links and pages at once. Paste five marks into it and it returns your aggregate inline.

Everything personal — saved files, your timings, your marks — stays in localStorage. Nothing is sent anywhere.

Design

The look comes from a school register rather than a dashboard: a committed bottle-green ground (the school's own #00674F, darkened), faint horizontal ruling on a 30px rhythm, and the single red margin line down the left that every Indian school notebook has. Marigold is the marking colour and appears only where something is happening now.

Type is Bricolage Grotesque (display), Archivo (UI) and Azeret Mono (data and labels). Light mode is a notebook page; dark mode is the register cover.

Stack

React 19 · TypeScript (strict) · Vite 7 · Tailwind v4 · Motion · Radix · cmdk · Fuse.js

src/
  data/        typed content — resources, subjects, NCERT index, links, channels, schedule
  lib/         search, CBSE marking maths, hooks, motion vocabulary, theme
  components/  layout, UI primitives, PeriodBar, ResourceCard, CommandPalette
  routes/      Home, Library, Viewer, Chapters, Resources, Tools, SchoolDay, About, NotFound
scripts/       build-ncert.py — regenerates the chapter index from ncert.nic.in

Routes are code-split; only the home page ships in the entry bundle. prefers-reduced-motion, keyboard navigation and visible focus are handled throughout.

Running it

npm install
npm run dev
npm run build

build typechecks first, so a type error fails the deploy. It also copies index.html to 404.html — that's what makes clean URLs work on GitHub Pages.

Deploying

Pushing to main deploys to GitHub Pages via .github/workflows/deploy.yml. vercel.json is included if you'd rather host it on Vercel; the SPA rewrite is already configured.

Regenerating the NCERT index

python3 -m pip install pypdf && python3 scripts/build-ncert.py

Writes src/data/ncert.json. Worth re-running when NCERT revises the syllabus.

Adding material

There's deliberately no upload form — every file is looked at by a person first, so juniors can trust what they find. Email dpsgnotes@gmail.com, or open a PR:

  1. Drop the PDF in public/notes/.
  2. Add one entry to src/data/resources.ts.

Search, filters, subject shelves and the command palette all read from that array, so nothing else needs touching. Please only send material you have the right to share.

Credits

Notes belong to the students who wrote them and each one is credited by name. The NCERT chapters and every outside link open from their original hosts — nothing is copied or re-uploaded here.

Class of 2026 — Aryan Rao. Best of luck, juniors. ❤️

Releases

Packages

Contributors

Languages