---
title: "Discussion on \"Building a Client-Side Router from Scratch with Vanilla JavaScript\" | Hashnode"
description: "Discussion on \"Building a Client-Side Router from Scratch with Vanilla JavaScript\". Modern web applications often need to handle multiple \"pages\" without actually reloading the browser. This is where client-side routing comes in. In this article, we'll build a powerful, TypeScript-based router for vanilla JavaScript projects that ri..."
url: "https://hashnode.com/posts/building-a-client-side-router-from-scratch-with-vanilla-javascript/67f29eccccc50524daa9dacb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a Client-Side Router from Scratch with Vanilla JavaScript](https://techover.hashnode.dev/building-a-client-side-router-from-scratch-with-vanilla-javascript?utm_source=hashnode&utm_medium=feed)

Modern web applications often need to handle multiple "pages" without actually reloading the browser. This is where client-side routing comes in. In this article, we'll build a powerful, TypeScript-based router for vanilla JavaScript projects that ri...

Apr 6, 2025 · 12 min read · techover.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#typescript-tutorial](https://hashnode.com/tag/typescript-tutorial)
-   [#routing](https://hashnode.com/tag/routing)
-   [#first-principles](https://hashnode.com/tag/first-principles)
-   [#browser-api](https://hashnode.com/tag/browser-api)

## Written by

[GASTON CHE](https://hashnode.com/@gastonche)

@gastonche

  
[View profile](https://hashnode.com/@gastonche)

## Responses 1

Markdown supported · ⌘↵ to post

[Rash Edmund](https://hashnode.com/@orashus)

[Apr 11, 2025](https://hashnode.com/posts/building-a-client-side-router-from-scratch-with-vanilla-javascript/67f29eccccc50524daa9dacb/comment/67f960bcfbab505abac48cdf)

Thank you for this. Are you working on shipping this as an npm package?

I think this will come in handy and should be installable too.

Also, if this is open-source, I'd love to contribute to your work.

[GASTON CHE](https://hashnode.com/@gastonche)

[Apr 14, 2025](https://hashnode.com/posts/building-a-client-side-router-from-scratch-with-vanilla-javascript/67f29eccccc50524daa9dacb/comment/67f960bcfbab505abac48cdf#reply-67fd658adbc503bdbdd5cedd)

I'm building this into a framework agnostic routing library called micro(for now).

Will let you know once version 0.01 is released

[Rash Edmund](https://hashnode.com/@orashus)

[Apr 15, 2025](https://hashnode.com/posts/building-a-client-side-router-from-scratch-with-vanilla-javascript/67f29eccccc50524daa9dacb/comment/67f960bcfbab505abac48cdf#reply-67fe272869898baeb7ab4139)

Thank you [GASTON CHE](https://hashnode.com/@gastonche). will be waiting then
