TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Bhvr, a Bun and Hono and Vite and React Starter

128 点作者 stevedsimkins20 天前
Hey all! I've been using this stack personally for a while now and decided to automate it a bit by turning it into a template I can reuse. Hope others might find it helpful!

27 条评论

pavlov20 天前
I think you might want to elaborate on why this stack is good.<p>Right now it’s summarized as “typesafe fullstack monorepo”… But that’s so dense, it’s practically just three buzzwords together. A more realistic description of the pros and cons would be welcome.<p>I’ve never heard of Hono, and I’d personally need a lot more convincing to pick an unknown framework for a new app.
评论 #43811887 未加载
评论 #43819618 未加载
评论 #43811598 未加载
评论 #43812236 未加载
评论 #43811667 未加载
insin19 天前
Hono also has an official Vite devserver plugin if want an easy way to run a single integrated dev server locally for an API which also serves up your UI and has the hot reloading goodness you want.<p>I&#x27;ve used a very similar setup for a couple of new projects which were about to default to Next.js but didn&#x27;t really specifically need what Next.js does (e.g. its SSR abstractions, these were internal, client-only apps sitting behind an auth redirect) from wasting their time fighting it.<p>Hono also supports JSX on the backend out of the box of you want to use components as a superior alternative to string templating libraries to serve up some HTML, a middle ground of sorts if Astro (:heart:) is too much for what your app needs to do.<p>I haven&#x27;t needed to take advantage of this yet, but if you don&#x27;t need full-fat React, it can also SSR and run on the client, sort of &quot;vanilla JSX&quot; if you will (sorry).
评论 #43819102 未加载
pier2520 天前
Hono is great. It&#x27;s a shame it all depends on a single maintainer and there&#x27;s zero official funding afaik.
crsr20 天前
Nice! I built something similar yesterday. But decided to use elysia instead. They have a tRPC like client with full TS support called eden.<p>- eden: <a href="https:&#x2F;&#x2F;elysiajs.com&#x2F;eden&#x2F;overview.html" rel="nofollow">https:&#x2F;&#x2F;elysiajs.com&#x2F;eden&#x2F;overview.html</a>
评论 #43823020 未加载
评论 #43813534 未加载
评论 #43812876 未加载
评论 #43812572 未加载
flashblaze20 天前
Using Hono RPC would immensely help this. I&#x27;m using a similar kind of setup for my upcoming micro SaaS and the API integration has been a breeze<p><a href="https:&#x2F;&#x2F;hono.dev&#x2F;docs&#x2F;guides&#x2F;rpc" rel="nofollow">https:&#x2F;&#x2F;hono.dev&#x2F;docs&#x2F;guides&#x2F;rpc</a>
评论 #43816390 未加载
评论 #43811982 未加载
koakuma-chan20 天前
I never use templates because it’s much faster to create a new project from scratch than use a template and remove all the unnecessary things.
评论 #43817016 未加载
vlucas19 天前
Alternatives are good, but there is almost no information on this site. I went to the site hoping to see things like what a route looks like, the syntax, how I might create a page or layout, how to make server only things vs. client only things, etc. None of that is on the page or GitHub README though. Not even one code example. Show people how this works!
dev_l1x_be19 天前
Is there a stack for loading html safely from the backend that has proper error handling? I would love to use HTMX but not sure how to do (for starting) error handling in it. I need to render some backend generated charts mostly, maybe adjust the time (datepicker). Is there something for this or just use vanilla?
评论 #43832503 未加载
ramon15619 天前
I&#x27;d love a stack that was<p>- NestJS - React Router - React<p>Whatever bundler&#x2F;pack-man you want to use, go ahead. I&#x27;m curious which one would objectively be better, because I&#x27;d go for vite due to familiarity
xrd19 天前
I really want this, but BHVS, where react is replaced with svelte.
theusus19 天前
Thanks, I really hate Remix and especially NextJS. But what about LTS? What is there are no updates after 6 months?<p>Also, does this have SSR?
评论 #43820040 未加载
ramesh3120 天前
I think it&#x27;s wonderful that there&#x27;s a choice to use whatever package manager you like for your own personal work. But there is a special place for anyone who uses anything other than npm with a stable Node LTS for a professional project that will need to be maintained.
评论 #43816822 未加载
评论 #43812851 未加载
dcsan14 天前
the main benefit of hono seems to be you can deploy to cloudflare either as a pages app or workers. so this is kind of like a &#x27;sveltekit for react&#x27;.<p>in which case it would be nice to see it extended slightly: tailwind client side and eg drizzle ORM - basically the minimum you need to really ship a client&#x2F;server app
TedMeftah20 天前
Just a heads up, the repo description says &quot;vice&quot; instead of &quot;vite&quot;
评论 #43812397 未加载
rohan_20 天前
Nice- why hono over Fastify?
评论 #43812537 未加载
评论 #43812371 未加载
评论 #43812427 未加载
nnx19 天前
Would it make sense to ReactRouter SSR though Hono?<p>If not, great opportunity for bvrrr.
评论 #43817022 未加载
root_axis19 天前
Why bother with Vite if you&#x27;re using Bun? Also, Hono is nice but I personally I prefer Elysia in that ecosystem. Anyway, thanks for sharing!
评论 #43820138 未加载
DrStartup19 天前
This is awesome! Why bun over deno? Curious your decision making process there. Making a similar but opposite decision there.
threatofrain19 天前
Has anyone added Tanstack Router to this stack?
评论 #43826920 未加载
theli0nheart20 天前
Love the name!
评论 #43811594 未加载
erikpukinskis20 天前
Cool!<p>Why do you need both Bun and Vite?
评论 #43811991 未加载
评论 #43812418 未加载
评论 #43818888 未加载
评论 #43811963 未加载
cranberryturkey18 天前
I just switched to hono.js. I like it.
johndevor19 天前
Needs an example project IMHO.
slt202120 天前
great work and very neat repo, love it!<p>Do you have a plans to add the ORM?
评论 #43817030 未加载
评论 #43812882 未加载
revskill19 天前
Lol the docs is using svelte.
评论 #43821027 未加载
bpiroman19 天前
I really don&#x27;t understand why typescript exists...
评论 #43817930 未加载
jim-jim-jim19 天前
Thanks for this, a few Qs though<p>1. How does this compare to the MUNGG stack?<p>2. When can we expect compatibility with Curlew templates?<p>3. I get cryptic build errors when I add Seieki.js as a dependency. Has anybody else experienced this?