Assignment Cover Builder: a PDF tool that lives in the browser
2 min readNext.js · Developer Tools · Tools
Submitting a handwritten assignment at a university usually means the same chore: type a cover page in Word, fix the alignment, photograph your pages, then stitch everything into one PDF. Assignment Cover Builder does that in one tab. It recreates the Northern University Bangladesh cover, lets you edit the details, takes your page photos and exports a single A4 PDF. It is built with Next.js and keeps all of your work in the browser.
What it does
- Builds the cover from editable fields: course, department, topic, teacher details, student rows and submission date.
- Keeps the university logo and name locked, so the cover stays recognisable. Everything else can be restyled.
- Adds assignment pages from the phone camera or from uploaded images.
- Crops, rotates, brightens, converts to black and white, and reorders pages by dragging.
- Previews the whole document, then downloads one A4 PDF: cover first, pages in your order.
Why it stays in the browser
Photos of someone's coursework are personal enough that I did not want them on my server. Doing the work client-side also removes accounts, storage costs and an upload step that fails on a bad connection. The tool states that nothing is sent anywhere, and you can check that yourself in the browser's network tab.
IndexedDB instead of a database
Projects autosave in the browser using IndexedDB. It is a built-in, transactional store that handles large binary data, so it can hold page images where localStorage would run out of room. The app can list your projects, reopen them, import a project from a JSON file and clear everything on request.
const req = indexedDB.open("projects", 1);
req.onupgradeneeded = () => {
req.result.createObjectStore("projects", { keyPath: "id" });
};Where it bites
- The data is tied to one browser. Switch phones or clear site data and your projects are gone. The JSON import is the escape hatch, so use it.
- Browsers can evict storage. Under disk pressure a browser may clear site data. Do not treat autosave as a backup.
- Large photos are heavy. A document with many full-resolution images can use a lot of memory while the PDF is built, especially on older phones.
- Camera access needs permission and HTTPS. If the user denies it, upload has to be the fallback.
- The cover is a copy. It recreates a university layout, so check it against the current official format before you submit.
No server means no breach, no outage and no bill. It also means no recovery, and the interface should say so plainly.
Live: assignment.techlife24.store

Written by
Shihab Hossain — Full-Stack Developer
I build thoughtful digital products from Bangladesh — fast web experiences with Next.js, Android apps with Flutter, and the infrastructure behind them.
Work with me