Svelte Micro

screenshot of Svelte Micro
svelte

Light & reactive client-side router for Svelte

Overview

The svelte-micro is a reactive client-side router designed for Svelte. It allows users to easily manipulate the history, push new URLs, replace current URLs, and access and modify router options. This routing system provides a simple and lightweight solution for handling routing in Svelte applications.

Features

  • Router Object: Allows users to manipulate the history by moving through the history, pushing new URLs, and replacing current URLs.
  • Options Store: Provides methods to access and modify router options, including setting the mode and base path for the router.
  • Path Store: A store that contains the current path.
  • Query Store: A store that contains the current query.
  • Hash Store: A store that contains the current hash.
  • Route Component: Defines a route in the application.
  • Link Component: Allows users to create links to other routes in the application.
  • Link Handle Action: Provides methods for handling link actions.
  • getPathSegments Function: Allows users to retrieve the segments of a path.
svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.