cloudflare-worker-router
navaid
cloudflare-worker-router | navaid | |
---|---|---|
2 | 1 | |
196 | 755 | |
- | - | |
7.8 | 3.4 | |
2 months ago | 3 months ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cloudflare-worker-router
-
Why I Fell in Love with Cloudflare Workers
Also way faster, but doesn't support node.js. If you're looking for a more spicific example check out my github: https://github.com/tsndr/cloudflare-worker-router There's also a more manual style article in works, so stay tuned for that.
navaid
-
What is a Relay EntryPoint
let routes = { '/:owner/:repo': RepositoryViewEntryPoint, }; const matchRoute = (url: string) => routes[url]; const initialPage = loadEntryPoint(matchRoute(location.href)); const App = () => { const { entrypoint, setEntryPoint } = useState(initialPage); useEffect(() => { // Please use something like https://github.com/lukeed/navaid window.addEventListener('pushstate', () => { setEntryPoint(matchRoute(location.href)); }); }, []); return Suspense>; };
What are some alternatives?
vitedge - Edge-side rendering and fullstack Vite framework
page.js - Micro client-side router inspired by the Express router
Google-Drive-Index - Index Google Drive Files Easily and Free
swiftui-router - Path-based routing in SwiftUI
CORSflare - A lightweight JavaScript CORS Reverse Proxy designed to run in a Cloudflare Worker.
interfy - A Javascript library for robust web front-end routing.
cloudflare-worker-router-template - A wrangler template for a super lightweight router (3.6 kB) with middleware support and ZERO dependencies for CloudFlare Workers, inspired by express.js syntax.
crossroads - JavaScript Routes
hono - Web Framework built on Web Standards
frontexpress - An Express.js-Style router for the front-end
html-rewriter - WASM-based implementation of Cloudflare's HTML Rewriter for use in Deno, browsers, etc.
pathjs - Simple, lightweight routing for web browsers