A simple, responsive, and interactive To-Do List application built with HTML, Tailwind CSS, and Vanilla JavaScript. KaniTask helps you organize everyday tasks with a minimal interface and browser-based data persistence using Local Storage.
Just do it. Turn your tasks into actions.
- Add Tasks: Quickly add new tasks to your to-do list.
- Persistent Storage: Uses browser Local Storage to retain saved tasks across page reloads.
- Mark Tasks as Completed: Click on a task to apply a strikethrough effect.
- Remove Tasks: Double-click a task to remove it from the displayed list.
- Responsive Design: Tailwind CSS utility classes provide a layout that adapts to different screen sizes.
- Minimal User Interface: Clean and distraction-free design with a dark background and cyan accents.
- No Backend Required: Runs entirely in the browser without requiring a server or database.
| Technology | Purpose |
|---|---|
| HTML5 | Application structure and content |
| Tailwind CSS v4 | Styling and responsive design |
| Vanilla JavaScript (ES6+) | DOM manipulation and application logic |
| Browser Local Storage | Client-side task persistence |
- Tailwind CSS Browser CDN – Used to load Tailwind CSS directly in the browser.
Follow these instructions to run KaniTask on your local machine.
You only need:
- A modern web browser (Chrome, Firefox, Edge, etc.).
- Git installed on your machine.
- A code editor such as Visual Studio Code (optional).
No Node.js installation, package manager, or database setup is required.
1. Clone the repository
git clone https://github.com/kavinanandr/kani-task.git2. Navigate to the project directory
cd kani-task3. Open the project
Open index.html directly in your browser.
Alternatively, if you use Visual Studio Code, install the Live Server extension and launch the project using Go Live.
4. Start managing your tasks!
Add your tasks and organize your daily activities with KaniTask.
kani-task/
│
├── img/
│ └── logo.svg
│
├── index.html
├── main.js
├── vercel.json
├── .gitignore
└── README.md
| File / Directory | Description |
|---|---|
img/ |
Contains image assets used in the application. |
img/logo.svg |
SVG logo displayed in the application header and browser favicon. |
index.html |
Main HTML document containing the application layout, input field, task container, and Tailwind CSS integration. |
main.js |
Handles task creation, DOM manipulation, event listeners, and Local Storage operations. |
vercel.json |
Contains configuration for deploying the application on Vercel. |
.gitignore |
Specifies files and directories that Git should ignore. |
README.md |
Project documentation. |
KaniTask uses JavaScript DOM manipulation and the browser's Local Storage API to manage tasks.
- Enter a task in the input field.
- Click the
+button. - JavaScript creates a new task element and adds it to the task list.
- The task array is updated and saved in Local Storage.
KaniTask uses the browser's localStorage API to store tasks.
Tasks are converted into JSON strings using JSON.stringify() before being stored.
When the application loads, JSON.parse() retrieves the stored tasks and recreates their corresponding elements.
Clicking a task applies a strikethrough style to visually distinguish it.
The current implementation also removes that task from the stored task array.
Double-clicking a task removes its element from the displayed task list and updates the stored task array.
This project provided practical experience with:
- Structuring web applications using semantic HTML.
- Styling interfaces using Tailwind CSS utility classes.
- JavaScript DOM manipulation.
- Selecting and dynamically creating HTML elements.
- Handling browser events using event listeners.
- Working with JavaScript arrays and array methods.
- Implementing browser Local Storage.
- Converting JavaScript objects and arrays to and from JSON.
- Building responsive user interfaces.
Potential improvements for future versions include:
- Add individual delete buttons for tasks.
- Introduce separate completed and pending task states.
- Add task editing functionality.
- Add task categories and priority levels.
- Implement due dates and reminders.
- Add filters for All, Pending, and Completed tasks.
- Improve task validation and empty-input handling.
- Add a clear-all-tasks option.
Try KaniTask here:
Kavin Anand
B.Tech Computer Science and Engineering Student | Aspiring Full-Stack Developer
- GitHub: @kavinanandr
- Project Repository: KaniTask
This project is open-source and available for learning and educational purposes.
⭐ If you find this project useful, consider giving the repository a star!