A modern, sleek, and intuitive Habit Tracker built with Svelte 5 and TailwindCSS 4. Build better habits, one day at a time, with zero friction.
localStorage—no account required!v20.x or higher (tested on v24.13.0)v10.x or higherClone the repository:
git clone https://github.com/aard-c/habit-tracker.git
cd habit-tracker
Install dependencies:
npm install
Start the development server:
npm run dev
Open your browser: Navigate to http://localhost:5173/ to start tracking!
habit-tracker/
├── src/
│ ├── lib/
│ │ ├── components/ # Reusable Svelte components
│ │ │ ├── AddHabitModal.svelte
│ │ │ ├── HabitCard.svelte
│ │ │ ├── HabitStats.svelte
│ │ │ └── DeleteConfirmModal.svelte
│ │ └── index.ts # Library entry point
│ ├── routes/
│ │ ├── +layout.svelte # Global layout & styles
│ │ └── +page.svelte # Main tracking interface
│ ├── app.css # Tailwind base & global styles
│ ├── app.html # Main HTML template
│ └── app.d.ts # TypeScript definitions
├── static/ # Static assets (images, icons)
├── package.json # Dependencies and scripts
├── svelte.config.js # Svelte configuration
├── tailwind.config.js # TailwindCSS configuration
└── vite.config.ts # Vite configuration
npm run dev: Start the development server.npm run build: Build the project for production.npm run preview: Preview the production build locally.npm run check: Run Svelte's type/syntax check.Contributions are welcome! Feel free to open an issue or submit a pull request.