Amazing video! I don’t know if it’s just me but: being able to write your server logic in Typescript without extra tooling, the fact you can write JSX, just amazing, my only concern with these new and better technologies is compatibility with existing libraries and packages, maybe you could do a video addressing that
@raident2910 ай бұрын
JS developers change frameworks more often than they take a bath.
@jotaroisdarius19186 ай бұрын
yeah this is getting rediculous lol
@TolyaBogomolov5 ай бұрын
Express.JS is 14 years old. So, this is a little bit concerning. How can a human being survive without showering for 14 years straight?
@raident295 ай бұрын
@@TolyaBogomolov i see humor is lost to js devs
@malcolmn.52225 ай бұрын
Why complain most of this stuff is free and you get to use something that you like.
@AjayYoutube-rz2so11 ай бұрын
Your content is really amazing, i would love to see a vite and hono full fledged tutorial.
@ayushgogna973211 ай бұрын
i wanted to use hono for a time now but bun and hono combined looks crazy fun. I think the next project will be with bun and hono
@zunnoorainrafi5985 Жыл бұрын
Bro will you make a full stack application using Bun, so that we can learn something from your experience
@dinckelman11 ай бұрын
The way you can learn from this experience is if YOU make a full-stack app using Bun. His knowledge isn’t magically transferred into your head
@Agent_Six_11 ай бұрын
Is it that you're not sure how full-stack works? Here. OPEN THE TERMINAL AND RUN > mkdir HotelTrivago > cd HotelTrivago > bun init > bun install express cors CREATE FILE CALLED "server.js" IN THE "HotelTrivago" FOLDER THEN BUILD AN API THAT SPITS OUT SOME TEXT USING THE BELOW CODE START CODE BLOCK const express = require('express'); const cors = require('cors'); const app = express(); app.use(cors()); app.get('/', (req, res) => { res.send("Trivago"); }); app.listen(3000, () => { console.log('listening on port 3000'); }); END CODE BLOCK BACK TO THE TERMINAL AND START UP THIS BAD BOY > bun server.js OPEN BROWSER AND GO TO 'localhost:3000/' AND BEHOLD, OUR SERVER/API HAS RESPONDED WITH THE WORD "Trivago" NOW WRITE A CLIENT APP THAT USES THIS API ENDPOINT CREATE AN "index.html" FILE ANYWHERE, OPEN WITH A TEXT EDITOR AND INSERT THIS MARKUP START MARKUP BLOCK async function clickityclickity() { let response = await fetch('localhost:3000'); let data = await response.text(); document.querySelector('p').innerHTML = data; } Hotel? Click Me END MARKUP BLOCK NOW OPEN "index.html" WITH A BROWSER CLICK THE BUTTON AND BEHOLD THE "Hotel?" TURNS INTO A "Trivago" FULL STACK, BABY
@koteelok201411 ай бұрын
Yo, can't wait for Hono+Vite+React setup tutorial!
@armandsalle844711 ай бұрын
I've tried a couple of time to make it works but failed! Can't wait to see the video!
@jarnathan-snow10 ай бұрын
Man just ditch React and Client frameworks once and for all. You have JSX on the server with these. What else do you need?
@voidmind10 ай бұрын
I'd love to see that too. Where I work, we use Next.js (page router) for a big web app and the DX is terrible. The dev server crashed at least one a day and take close to 2GB of memory. All I care about in Next if getServerSideProps(), so if I could use something lightweight to replace it, that would be awesome.
@ustav_o7 ай бұрын
beth stack but hono @@jarnathan-snow
@koteelok20147 ай бұрын
@alaskandonut yoooo, thx bud
@aldrickdev11 ай бұрын
the use of context reminds me of how Golang Web Frameworks like Gin and Echo work. Pretty nice!
@gusparr2811 ай бұрын
Same here! I was looking for this comment
@Marujah0711 ай бұрын
Amazing! We’re waiting for a full Tutorial ;-)
@cartermckay150910 ай бұрын
Thanks!
@VictorMongi11 ай бұрын
Hello sam, how about ElysiaJs?
@gadgetboyplaysmc11 ай бұрын
Have you tried Elysia? The DX is really amazing
@jarnathan-snow10 ай бұрын
it is not. Have you tried nesting guards?
@killerdroid9910 ай бұрын
@@jarnathan-snowyh that's a chore but I prefer beforehandle function
@rmnkot11 ай бұрын
It would be great to see the performance part in comparison with express, fastify on node to understand the capabilities of this modern framework
@blender_wiki11 ай бұрын
Google is your friend: "Node.js vs Deno vs Bun: Express hello world server benchmarking"
@kodekorp206411 ай бұрын
While bun is great, Bun is still reliant on one primary developer. I love bun and will continue to use it for smaller projects or side projects, but until it becomes reliable longevity wise, I prefer to stay with the standard tech for now for business focused work.
@WillDelish11 ай бұрын
Luckily hono supports node too
@uchennaofoma462411 ай бұрын
@@WillDelishtrue
@juststudying10197 ай бұрын
JS developers are sick to be honest they always run for new things without any need, searching for the perfect library or runtime or framework and they never find one or will. I am a js developer but the community is just too much, and I am not against developing more libraries that are better, but not hundred of solutions for the same problem and most of them are the same
@pmrebel27333 ай бұрын
Today bun is good tomorrow there is something better and we all abandon bun😢
@SirusStarTV2 ай бұрын
@@juststudying1019 i want programming/computer things to not change for years, to not be deprecated. For programs/games to work on any future computers. For things to be reproducable on any computers.
@Hut-1818 ай бұрын
What about the server folder you created at the start, Sam? 😁
@henriquematias198622 күн бұрын
I always use a library called "nock" for writing tests for HTTP requests so i can mock external http requests in the "network" level. would be nice to see if that works out of the box or if there are some other library that can do that. would be wicked.
@fullstack_journey11 ай бұрын
Subscribed for the hono+vite magic that you'll drop
@sujjee11 ай бұрын
Hey sam please make a comparison between Hono and ElysiaJS
@whodoneitx2x11 ай бұрын
Could you make a video integrating tRPC with hono?
@cyrilgeorge781811 ай бұрын
You know what I have an old express project, I will try migrating it to bun + hono . Want to see what are the gotchas in this combo.
@ainulyaqin19588 ай бұрын
that absolutely look great!, would be nice to see hono - monorepo tutorial :D
@1apostoli10 ай бұрын
Someone lmk what extension is showing errors right from inline
@danvilela8 ай бұрын
Hono seems cool, but after Sveltekit I can’t see me using another tool for api
@shouryansharma7 ай бұрын
error: Cannot find module "react/jsx-dev-runtime" from "/Users/sam/Documents/server/src/app.tsx"
@xzex2609Ай бұрын
wow this is awesome , specially the ability to write jsx ( I don't hate ejs but i wish that if it was jsx ) in the template engine. I hope to see more on this matter especially from you that obviously are very good at explaining . thanks bro
@brtk710 ай бұрын
Could you compare Hono and tRPC? It appears they both have similar capabilities. Thanks!
@pedapudiraviteja73888 ай бұрын
Which cli and cli font are you using? I'm so obsessed with the fonts, ain't I?
@kamalkamals3 ай бұрын
hono still has a loooot of issues like websocket implement and graphql like yoga with enable ws ...etc, so i cannot recommend hono for now
@franka1154Ай бұрын
Sam- It seems that since this video was posted, Hono has changed a bit, requiring its "helpers" -- which include: stream(), streamText() and streamSSE() -- to now be imported (i.e.: import { stream, streamText, streamSSE } from 'hono/streaming') for your streaming example @T=3:35 to work. Otherwise, well done!! Thanks.
@npx_riff_lift-g5 ай бұрын
Same here. Bun + Hono is such a nice combo. Easy to work with, and holy f-- it’s performant.
@thequang923411 ай бұрын
amazing demonstration Sam!
@blkgames144710 ай бұрын
What about elysia? Can you also review that project?
@jaymartinez3118 ай бұрын
Tutorial for hono/vite if possible. Idk if you already did it but thanks ahead of timeif you are thinking about it.
@mehedihasanridoy108611 ай бұрын
What about database operations? I used it around 10 month ago. Only problem in that time i found is that db operation. I need to use totally raw operation. Express has mongoose ODM but i Don't find similar that
@elephant_88811 ай бұрын
I’ve used Prisma with hono and bun. No problem.
@mehedihasanridoy108611 ай бұрын
@@elephant_888 can you share the setup docs?
@SamMeechWard11 ай бұрын
try out drizzle.team
@hugodsa8910 ай бұрын
Dude, super well paced and explained, mint.
@JohnMcclaned11 ай бұрын
How do you feel about there only being basically 1 contributor to bun? Do you still recommend bun for production even though it doesn't pass the bus test?
@perc-ai10 ай бұрын
Nope use deno …
@ArielBenichou6 ай бұрын
ok you've sold me! next project will be with hono (bun i already use :D)
@davidhombe23139 ай бұрын
Gratefull, I'll waiting for your tutorial using Hono🤩
@chiqui1234ok4 ай бұрын
Thanks for showing the basic for a fresh start. Cheers!
@ArielBenichou6 ай бұрын
do you have a video about exposing an ML (AI) model thourgh a JS/TS API?
@TianYuanEX3 ай бұрын
Can hono be used in non serverless environments? Because if it can't how would you implement socket connections or anything that needs a longer connection
@cholasimmons6 ай бұрын
Are you able to run a successful docker build with Bun? I've been bashing my head for the past 6 versions
@patrick_kabwe11 ай бұрын
Hi Sam, have you built a production app with bun? if yes how has been your experience?
@SamMeechWard11 ай бұрын
It’s been awesome, only great things to say about using bun. I’ve been deploying to fly.io.
@patrick_kabwe11 ай бұрын
@@SamMeechWard Wow! will definitely try it. Thanks
@mdmathewdc11 ай бұрын
Definites on what a production app is - if you mean an app with thousands of live users, then Bun isn't stable for that.
@patrick_kabwe11 ай бұрын
@@mdmathewdc Please share your experience.
@blender_wiki11 ай бұрын
We have few public API running with bun, it is just great.
@anasaitzouinet96997 ай бұрын
im always wanting to try bun , but i don't know if its stable for production yet or not
@harryzachariou110 ай бұрын
This is great! Is there support to integrate Bun into a AWS lambda runtime and Hono into an AWS lambda proxy?
@domw239111 ай бұрын
How hono vs Elysia?
@faahkoo11 ай бұрын
looks so cool! I'm gonna try it out for sure, thanks for the info!
@carlosricardoziegler265011 ай бұрын
How about ElisiaJS ? Some insights ?
@shiningview10 ай бұрын
Its developed by one person. Just like express.js
@ashimov19709 ай бұрын
why hono, not bun-native elysia?
@zenithdevgroup11 ай бұрын
Have they solved Bun not working with SSH-ed25519? I couldn't use Bun due to my SSH dependencies not working with it.
@vickylance10 ай бұрын
what about security like helmet plugin?
@BunnyMolester8 ай бұрын
Hey Sam, how can we connect to a database while calling APIs
@exapsy11 ай бұрын
amazing, seems like something's great is growing out of bun. im excited to see where it will go.
@brunoacev11 ай бұрын
that is soo good dud, i see yesterday.
@elephant_88811 ай бұрын
There’s a Safari bug that prevents Bun web servers from successfully sending binary downloads like images and files to that web browser. 😢
@ayushgogna973211 ай бұрын
can you also make a video on elysiajs and bun
@MattChinander9 ай бұрын
Where can this be deployed?
@Malcolm777-i9 ай бұрын
Is Bun.serve() necessary? when already using bun run --hot src/index.ts??
@aprilm2941 Жыл бұрын
You had me at “Because Bun” it’s always about the bun
@seoky64 ай бұрын
Have you tried ElysiaJS?
@Fullflexno11 ай бұрын
Super Cool video! Subbed!
@misterlinuxfriendly94711 ай бұрын
Nice intro! Well done.
@jjrise10 ай бұрын
we need more Hono videos! this was great!
@crimsonautumnsun10 ай бұрын
How does it compare to Elysia?
@ronaldtejada88468 ай бұрын
I'm interested in hono + react app and how the live together and interact
@kasper3699 ай бұрын
do you think hono is production read?
@LeoWasHere14 ай бұрын
can jsx work with htmx this way?
@uchennaofoma462411 ай бұрын
One of the issues i still have with the validator is that your validator has to return strings (if you try a number itll just throw a ts error)
@WillDelish11 ай бұрын
Looove hono + bun combo. Also sprinkle some htmx and its pretty magical
@SamMeechWard11 ай бұрын
Don’t forget drizzle
@NattaWang11 ай бұрын
bun update command not update version numbers in package.json in my local, do you know how to fix it?
@rohantunikipat68433 ай бұрын
Such a amazing tutorial
@crimsonautumnsun10 ай бұрын
Is it sending a Server Sent Event stream with the stream.write stuff?
@tinypell3ts10 ай бұрын
Great video! I would love to see a Hono, Vite, React tutorial.
@natainditama11 ай бұрын
How about koa js. It's like similar with hono right ?
@makisetakashi11 ай бұрын
how to handle concurrency or multithread using Hono ?
@danlazer7419 ай бұрын
I do trpc with zod and I don't get why I should use hono or bun unless there's a trpc hono adapter
@danlazer7419 ай бұрын
And the fact I get 0 users lol
@7doors84711 ай бұрын
Great, as always. ✌️
@DoudouCircus10 ай бұрын
That is very cool I usually use python for backend development but I am excited to try hono and bun
@Gadrawingz3 ай бұрын
The future of us!
@flipperiflop11 ай бұрын
Damn, Hono looks incredible!
@chiqui1234ok4 ай бұрын
Hi again, I'm testing Bun and I already setted up half of JWT. But right now I want to make my register and login routes. Finded out c.req.query('user') and c.req.query('password') didn't retrieve anything. I'm sending those two variables through Postman in form-urlencoded (as always). Anybody finds the solution? In Node + Express was app.use(express.json()) in the main javascript file, but here I don't know if I need some method like this, or maybe I'm doing something wrong... Thanks
@chiqui1234ok4 ай бұрын
Data though params (GET variables) works ok.
@chiqui1234ok4 ай бұрын
Ok, I get body/post/form-urlencode variables thanks to: await c.req.parseBody() or: await c.req.formData() That's weird AF, anyone has another way to get form data? This way I showed you, looks sketchy. I never needed a Promise to get form data in NodeJs+Express lol
@chiqui1234ok4 ай бұрын
in "Validation" section they didn't mention (and even the data model seems different) we need to get body/form data in the way I showed you. :O Damn, something it's looking bad haha
@nathanschmidt19887 ай бұрын
What clipboard manager to copy paste is he using?
@SamMeechWard7 ай бұрын
alfred
@limpep11 ай бұрын
how does this compare to fastify?
@chhinsras9 ай бұрын
how to make something like nodemon with hono + node
@haroonalbar272511 ай бұрын
awesome content . subbed :)
@Meuhandle11 ай бұрын
Do you get any memory leaks?
@CSkyGameGen10 ай бұрын
Yes we would love a tutorial on vite and hono please 🙏
@nonefvnfvnjnjnjevjenjvonej33846 ай бұрын
why use this over next js
@darkoplax7688 Жыл бұрын
I wish Bun had Windows and Nextjs support ... hopefully soon
@fabrice98483 ай бұрын
Just quit using Windows and start using Linux, you'll thank me later.
@zb27479 ай бұрын
Being able to serve HTML using JSX instead of EJS or other template language is so good!!!
@DaxSudo11 ай бұрын
yea i tried this ~ 12 - 18 months ago but couldnt stick w it for larger stuff glad the ecosystem has improved w it
@easywest111 ай бұрын
Hono is awesome! Would love seeing more content on hono
@superslash9467 ай бұрын
Pardon my incompetence, but why would you want to send jsx as a response?
@shantanukulkarni0074 ай бұрын
If you have a frontend in react then the frontend developer can simply make an empty page and backend developer can send some custom jsx webpage as a response, to be displayed in that empty frontend page. This could be very useful for authentication purpose
@2u841r4 ай бұрын
Theme name please?
@lukor-tech11 ай бұрын
The client/server type safety is a nice feature!
@debadipti11 ай бұрын
Hey Sam! Great video as always! I am curious how this works with bigger projects where I have JSX templates and layouts just like Next, but without all the hassle, it just renders HTML. I would appreciate if you could make a longer video on that.
@SamMeechWard11 ай бұрын
It’s not opinionated like next, so you would just have to create your own layout components. You could make it work however you want but you wouldn’t get default caching behaviour or default 404 or error pages.
@debadipti11 ай бұрын
I don't think 404 pages or error pages are that much difficult to handle. But I can't say the same about caching. Caching seems very hard. If you could make a video on caching different parts of your website i.e mixing database caching, CDN caching and all that good stuff, that would be really good. @@SamMeechWard
@pixelriegel11 ай бұрын
how do you deploy Hono. I tried it but I have no clue how.
@SamMeechWard11 ай бұрын
Depends on where you want to deploy. I think one of the easiest solutions is to use fly.io If you use their CLI, you just run `fly deploy`
@pixelriegel11 ай бұрын
I wanted to use it in a Docker Container to selfhost in a cluster @@SamMeechWard
@kurniamassidik57987 ай бұрын
since i only new about express js, could be more risk to implement this to my project, but i will try my best to use it from my next project
@ChrisJaydenBeats9 ай бұрын
Hono is beautiful. Been using it so much.
@lastink4448 ай бұрын
Would be nice to see more vids on this topic
@damianjanus199011 ай бұрын
More bun and Hono please! Maybe build full rest api with swagger, mongo and some sort of autorization it is be nice