Dynamic route handler loader with Bun and Hono #3018
skitsanos
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've open-sourced a template for microservices development available on https://github.com/skitsanos/bun-dynamic-routes. This setup uses a Route Loader to automate route management, dynamically discovering and loading HTTP and WebSocket handlers from the filesystem. It features asynchronous operations and dynamic imports for improved performance and scalability.
The project emphasizes an organized folder structure mirroring URL paths, supporting parameterized routes for dynamic segments. It also includes a Logger class with customizable formats and levels, streamlining development and maintenance for web applications requiring low latency and high responsiveness.
It does a great job for me, maybe it can do the trick for you as well :)
Beta Was this translation helpful? Give feedback.
All reactions