/svelte-easyroute

Easy router for Svelte framework

Primary LanguageTypeScriptMIT LicenseMIT

alt text

Habitual router in your projects

alt text

Svelte Easyroute - is a simple and convenient router for Svelte framework. It is good svelte router shich supports history and hash mode, navigation guards, base path. If you need svelte router, try this one.

A few words about router:

  • Create powerful SPA's with Svelte! Navigate between components without page reloading;
  • Get information from query string and dynamicly matched routes;
  • Programmatic navigation by URL string or by name;
  • Navigation hooks before leaving current route and after loading new;
  • Easy access to route parameters with simple "export let *" svelte variables;
  • Create router links with text or any other content you like;
  • Define your app base url;
  • Define your app default component for undefined urls;
  • Use one of three modes: hash (adds '#' symbol in address bar); history (uses History API); silent (uses built-in history and not changes current url in address bar);
  • Use CSS-transitions just outside the box.

Why you should try it?

1. Well-known syntax I was inspired by the router for Vue.js, so this router will be understandable to many of you

2. Still developing Many features of the router are still ahead. Already now it can be used in projects, and I’m happy to know what will make it better.

3. Community-friendly Repository cloning and pull requests are welcome! Together we can make the perfect tool for developing on Svelte

How to use?

Please see DOCUMENTATION WIKI. Router is still developing and new features are coming out frequently.

Contact me: