Warranty Wallet
A full-stack warranty and purchase-document management platform that centralizes receipts, warranty evidence, product records and claims, helping users avoid missed warranty deadlines.
- Category
- Digital warranty management
What it is
Warranty Wallet keeps the paperwork of what you buy in one place: the invoice, the receipt, the warranty card and the photos. It tracks when each warranty ends and reminds you before it does, so a claim is never lost to a missing document or a missed date.
It is a Next.js web app and an Express API, with paid plans, an admin dashboard and exports, and a documented, versioned API.
How it works
A visitor registers or signs in with Firebase Authentication.
The frontend sends the Firebase identity to the API, which keeps a matching user record.
Every protected request is verified, and the matching user is loaded.
The user records an asset by hand, or starts from an uploaded purchase document.
The API checks ownership, plan limits, files and the data before saving anything.
Scheduled jobs look at every warranty and create reminder notifications.
A claim links an asset to its evidence and keeps a dated status history.
Stripe webhooks update a paid plan after a verified checkout.
Assets and warranties
Each asset has a category, an optional brand, a purchase price and date, the seller and a photo.
The warranty has a duration and a type (manufacturer or extended), and the expiry date is calculated for you.
An asset's warranty status is always one of four: no warranty, active, expiring soon or expired. A dashboard summarises them, and assets can be archived or removed.
Categories and brands are lists maintained by admins, so assets stay consistent.
Documents and uploads
Invoices, receipts, warranty cards and condition photos can be uploaded as JPEG, PNG, WebP or PDF and are stored in Cloudinary.
Every upload is checked for its type, its real file signature (a renamed file is refused), the number of files and the size.
Documents can be listed with filters, summarised in statistics, replaced or deleted.
A document that is used as evidence in a claim cannot be replaced or deleted until it is detached, so evidence is never lost by accident.
AI reads the invoice
Upload an invoice and Google Gemini extracts the product name, the brand, the purchase date, the price, the seller, the invoice number and the warranty duration. The person always reviews the values before they are saved.
The AI is treated as something that can fail. An unavailable model or an answer that cannot be understood is reported clearly and never saved, a provider quota or authentication problem returns a safe error, and entering an asset by hand always remains an option.
Reminders and notifications
Each person chooses whether to receive warranty reminders and how many days before expiry (30, 14 and 3 by default), plus their timezone, currency and date format.
In production the reminder job runs once a day through a scheduler and is protected by a secret; during development a local scheduler runs it.
A notification is created once per person, type, asset and event, so nobody is reminded twice about the same thing.
Reminders arrive in the app and by email. If an email fails the in-app notification stays, and the time it was sent is recorded.
There are notifications for reminders, payments, subscriptions and system messages, with an unread count and mark-as-read.
Claims with evidence
A claim has a number, a title, the issue, the service centre and its reference, the condition the item was submitted in and the resolution.
Its status moves through submitted, in progress, resolved, rejected or cancelled, and every step is added to a timeline.
Evidence is attached from the same user's documents for the same asset, and it can be attached and detached.
Admins can follow all claims and update their status.
Plans and payments
Three plans: Basic, Plus and Pro. Basic is limited to five assets, and the plan limit is enforced whenever an asset is created.
Paid plans use Stripe Checkout. After checkout the API confirms the session and reconciles it, and an unpaid session never grants access.
A plan can be upgraded immediately or downgraded at the end of the period, a subscription can be cancelled at the period's end and resumed, and the payment history is kept.
Stripe's webhook is verified against its signature on the raw request, and each event is stored so it can never be applied twice.
Reports and exports
Users can export their assets, their warranties and their payments, and admins can export users, revenue and categories. Every report can be downloaded as PDF or Excel and filtered by status and by date range.
The admin dashboard
Totals for the platform, plus revenue and product-growth views.
Users: search, block, unblock and delete. Products and payments: browse, open and remove.
Categories and brands with their statistics, and claims with their status.
Broadcast notifications to every user. Admin actions (blocking, deleting, broadcasting) are written to an activity log.
How it is built
Frontend: Next.js 16 App Router with Turbopack, React 19, TypeScript, Tailwind CSS 4, TanStack Query and Firebase Authentication, with shared state in contexts for sign-in and preferences.
Backend: Node.js and Express 5 with PostgreSQL through Prisma 7, Firebase Admin, Stripe, Gemini, Nodemailer, node-cron, ExcelJS, PDFKit and Zod.
A versioned API under /api/v1 with an OpenAPI 3.1 specification and an error catalogue. Every response has one shape, and each failure has a clear status: invalid input, a conflict, a file that is too large, too many requests, or an upstream service that failed.
Security: Firebase ID tokens verified on every protected route, an admin role for admin routes, Stripe signature checks, Helmet, CORS and rate limiting, and production errors that never leak internal details.
Tests with the Node test runner cover validation, repositories, product limits, document rules, claims, payments, reminders and AI failure handling.
Deployment: two Vercel projects (the API and the web app) with Postgres on Neon.