todo-app-svelte Svelte Themes

Todo App Svelte

A modern, minimal Todo List web app built with Svelte 5, TypeScript, and Vite. Features reactive state management and clean component-based architecture.

šŸ“ Svelte Todo List App

A modern, lightweight Todo List web application built using Svelte 5, TypeScript, and Vite.
The app focuses on clean UI, reactive state management, and a modular component-based architecture.


šŸš€ Features

  • āž• Add new todos
  • āœ… Mark tasks as completed
  • šŸ—‘ļø Remove todos
  • šŸ” Reactive state management using Svelte stores
  • 🧩 Component-based structure
  • ⚔ Fast development & build thanks to Vite
  • šŸ›”ļø Fully typed with TypeScript

šŸ› ļø Tech Stack

Core Frameworks

  • Svelte 5 – reactive UI framework
  • TypeScript – static typing and better developer experience
  • Vite – fast development server and optimized builds

Tooling & Configuration

  • @sveltejs/vite-plugin-svelte – Svelte integration for Vite
  • svelte-check – static analysis and type checking
  • @tsconfig/svelte – recommended TypeScript config for Svelte

šŸ“ Project Structure

src/
ā”œā”€ā”€ app.css                # Global styles
ā”œā”€ā”€ App.svelte             # Root component
ā”œā”€ā”€ main.ts                # App entry point
ā”œā”€ā”€ vite-env.d.ts          # Vite type declarations
ā”œā”€ā”€ lib/
│   ā”œā”€ā”€ AddTodo.svelte     # Component for adding new tasks
│   ā”œā”€ā”€ Header.svelte      # Application header
│   ā”œā”€ā”€ TodoItem.svelte    # Single todo item
│   └── TodoList.svelte    # List of todos
└── store/
    └── todos.ts           # Svelte store for todo state

🧠 State Management

The application uses Svelte stores (writable) to manage the todo list globally.
This allows components to reactively update when the state changes without prop drilling.


ā–¶ļø Getting Started

1ļøāƒ£ Install dependencies

npm install

2ļøāƒ£ Run development server

npm run dev

App will be available at:

http://localhost:5173

āœ… Type Checking

npm run check

Runs svelte-check and TypeScript validation.


šŸŽÆ Purpose

This project was created as a learning and portfolio project, demonstrating:

  • Modern Svelte 5 syntax
  • Component communication
  • Reactive stores
  • Type-safe frontend development

šŸ“„ License

This is an open-source project. Feel free to use and modify it as needed!

Top categories

Loading Svelte Themes