Warracker is an open-source warranty tracker application designed to help you effortlessly keep track of product warranties, expiration dates, and related documentation.
Warracker is a web-based application designed to simplify and centralize product warranty management. Key capabilities include:
- Centralized Warranty Management: Track and manage all your product warranties in one place.
- Detailed Records: Save essential details like purchase dates, durations, and notes.
- Document Storage: Upload and securely store receipts, invoices, and product manuals.
- Proactive Alerts: Visual notifications for active, expiring (customizable from 1 to 365 days), and expired warranties.
- Quick Search and Filter: Instantly find warranties by product name, tags, or notes.
- Notes Support: Add freeform notes to each warranty for extra context or reminders.
- Secure Access with Multi-User Support: Create multiple user accounts for shared access; admins can enable or disable new user creation.
- System Status Dashboard: Real-time system health and warranty summary.
- Data Export and Import: Export warranty data to CSV, or import warranties from CSV files.
- Email Notifications: Receive timely email reminders about upcoming expirations β configurable as daily, weekly, or monthly.
- Customizable Currency Symbols: Display prices using your preferred currency symbol ($, β¬, Β£, Β₯, βΉ, or a custom symbol).
- Customizable Dates: Display dates based on your own region.
- Tagging: Organize warranties with flexible, multi-tag support.
- Password Reset: Easily recover accounts through a secure, token-based password reset flow.
Home Page
Status Dashboard
- Warranty Management: Add, edit, and delete warranty information easily.
- Document Storage: Upload and manage receipts, invoices, and product manuals securely.
- Status Tracking: Visual indicators for warranty status (active, expiring soon, expired).
- Notes: Add detailed notes for each warranty, viewable and editable via a dedicated notes modal.
- Search and Tagging: Find warranties quickly using product names, notes, or multiple tags.
- Multi-User Management: Support for multiple user accounts; admin users can control whether new accounts can be created.
- Responsive Design: Optimized for both desktop and mobile devices.
- Secure Login: Safe and private authentication for all users.
- Password Reset: Token-based secure password recovery flow.
- Email Alerts: Customize how and when you receive expiration notifications.
- CSV Export/Import: Full support for backing up and restoring warranty data.
- Currency Customization: Personalize displayed prices with your preferred symbol.
- Frontend: HTML, CSS, JavaScript
- Backend: Python with Flask
- Database: PostgreSQL
- Containerization: Docker and Docker Compose
- Web Server: Nginx
- Docker and Docker Compose installed on your system.
- Git (for cloning the repository).
- Clone the repository:
git clone https://github.com/sassanix/Warracker.git
- Navigate to the project directory:
cd Warracker
- Start the application using Docker:
docker compose up
-
Pull the latest changes:
git pull origin main
-
Rebuild and restart the containers:
docker compose down docker compose up --build
-
Access the Application:
Open your browser and navigate to
http://localhost:8005
.
services:
warracker:
image: ghcr.io/sassanix/warracker/main:latest
ports:
- "8005:80"
volumes:
- warracker_uploads:/data/uploads
environment:
- DB_HOST=warrackerdb
- DB_NAME=warranty_db
- DB_USER=warranty_user
- DB_PASSWORD=${DB_PASSWORD:-warranty_password}
- SMTP_HOST=smtp.email.com
- SMTP_PORT=465
- SMTP_USERNAME=youremail@email.com
- SMTP_PASSWORD=password
depends_on:
warrackerdb:
condition: service_healthy
restart: unless-stopped
warrackerdb:
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=warranty_db
- POSTGRES_USER=warranty_user
- POSTGRES_PASSWORD=${DB_PASSWORD:-warranty_password}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
warracker_uploads:
To get the docker compose file please go here
- Click add new warranty button then fill in the product details .
- Enter the purchase date and warranty duration.
- Optionally upload receipt/documentation.
- Click the "Add Warranty" button.
- Use the search box to filter warranties.
- Click the edit icon to modify warranty details.
- Click the delete icon to remove a warranty.
Field Name | Format / Example | Required? | Notes |
---|---|---|---|
ProductName | Text | β Yes | Provide the name of the product. |
PurchaseDate | Date (YYYY-MM-DD , e.g., 2024-05-21 ) |
β Yes | Use ISO format only. |
WarrantyYears | Whole Number (1 , 3 , 10 ) |
β
Yes, unless IsLifetime is TRUE |
Must be between 1 and 100 if provided. |
IsLifetime | TRUE or FALSE (case-insensitive) |
β No (Optional) | If omitted, defaults to FALSE . |
PurchasePrice | Number (199.99 , 50 ) |
β No (Optional) | Cannot be negative if provided. |
SerialNumber | Text (SN123 , SN123,SN456 ) |
β No (Optional) | For multiple values, separate with commas. |
ProductURL | Text (URL format) | β No (Optional) | Full URL to product page (optional field). https://producturl.com |
Vendor | Text | β No (Optional) | Name of the vendor or seller where the product was purchased. |
Tags | Text (tag1,tag2 ) |
β No (Optional) | Use comma-separated values for multiple tags. |
-
Clone the repository.
-
Make your changes.
-
Build and run with Docker Compose:
docker-compose build docker-compose up -d
warracker/
βββ backend/ # Python Flask backend
β βββ app.py # Main application logic
β βββ requirements.txt # Python dependencies
β βββ init.sql # Database initialization
βββ frontend/ # Web frontend
β βββ index.html
β βββ script.js
β βββ style.css
βββ docker-compose.yml # Docker configuration
βββ Dockerfile # Container definition
βββ nginx.conf # Web server configuration
- User Authentication - Completed β
- Settings Page - Completed β
- Status Page - Completed β
- Customizing Reminders to any day needed - Completed β
- Email Reminders for Expiring Warranties - Completed β
- Warranty Categories/Grouping through tags - Completed β
- Warranty Data Import (CSV) - Completed β
- Improved Search and Filtering - Completed β
- Warranty claim tracking - Planned
- Calendar Integration - Planned
- Connection Refused Error: Ensure all containers are running (
docker-compose ps
). Verify the backend is correctly connected to the database. - Database Errors: If schema issues arise, double-check that the database initialization script (
init.sql
) matches the expected schema inapp.py
.
Contributions are welcome! We encourage you to submit a Pull Request.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/amazing-feature
). - Commit your changes (
git commit -m 'Add some amazing feature'
). - Push to the branch (
git push origin feature/amazing-feature
). - Open a Pull Request.
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
- Flask
- PostgreSQL
- Docker