Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an initial PR for HonoX!
HonoX is a new meta-framework that enables a files-based routing and supports the client side with island hydration. It is formerly Sonik.
The diffences with Sonik
The main difference with Sonik is that it is Renderer-based. We can define UI things with renderer in
_renderer.tsx
instead of_layout.tsx
. Using the Renderer, you can flexibly specify layouts without being tied to a UI library. You can also use the assets of Hono's renderer middleware.Also, each route is now defined as a
(Handler | MiddlewareHandler)[]
. This allows you to use middleware such as Zod Validator with the type enabled.Including v4 release
I would like to make HonoX the highlight feature of the next major Hono release v4. Until then, we will keep this repository https://github.com/honojs/honox private and improve it.
What to do in this PR
I would like to discuss the basic API before merging it into the main. I think this is the best we can do, but I want to hear any feedback if you have any.