The Bun 1.0 Tech Stack

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 111

  • @jherr
    @jherr Рік тому +184

    Bun 1.0 has an issue with the native `fetch` and libsql/Turso. To fix it import fetch from 'isomorphic-fetch' and send it along with the url and authToken to the createClient.

    • @toastedavqcado
      @toastedavqcado Рік тому +11

      You should open an issue for this!

    • @lukei9772
      @lukei9772 Рік тому +27

      JACK HERRINGTON THE GOAT!!!!!

    • @Jaber_Dev
      @Jaber_Dev Рік тому

      Yuo will must make pull request
      Can't do commit like this 😅

    • @its.arjun.s
      @its.arjun.s Рік тому +3

      This should be fixed now!

  • @paperdave
    @paperdave Рік тому +50

    im so glad you and the whole community is enjoying bun 1.0. the jsx to html plugin is very cool looking, but i wonder if thats something we should do built in to the transpiler

    • @ethanniser
      @ethanniser  Рік тому +1

      x.com/jarredsumner/status/1697356667258827000?s=46&t=r6W08josgpNiUkyXidK8Uw

    • @boot-strapper
      @boot-strapper Рік тому +1

      Please do!

  • @technoe02
    @technoe02 Рік тому +10

    Bun is crazy fast. I've been absolutely blown away by the improvements

  • @ycombine1053
    @ycombine1053 Рік тому +26

    Bro I was literally just trying out some beth stack stuff and was thinking "this is cool but I wish I didn't need this typed-html package". This is starting to look pretty viable. Exciting stuff

    • @katjapotensky4054
      @katjapotensky4054 Рік тому

      TL;DR: use htmx-tsx
      Thought the same and made my own package that relies on battletested (tm) packages from unified instead of parsing and stringifying myself (hastscript). Also has some (imho) nice features like passing classes and ids to components without explicit declaration, i.e. gives a more "native element" feel to custom components.

  • @lucasmachado6447
    @lucasmachado6447 Рік тому +2

    Just built my first project with the BETH stack today and then saw that you posted this video :) Great work btw

  • @nate_codes
    @nate_codes Рік тому +8

    Awesome followup, the Winter-CG (community group not garbage collector btw) compatibility in particular is something that REALLY makes me want to try Elysia! Love seeing Bun get all of this hype too after the hard work they have put in.
    “Let’s be honest, I don’t post often so you’ll want to know when I do!” Is one of the best CTAs I’ve heard yet! Kudos on another great video, can’t wait for the full tutorial!

    • @ethanniser
      @ethanniser  Рік тому +1

      Oops, thanks for catching
      Guess I’m too used to seeing G and C only in that order

    • @its.arjun.s
      @its.arjun.s Рік тому +1

      CG felt like computer graphics more than GC for me

  • @Atmos41
    @Atmos41 Рік тому +7

    Looking forward to the next beth stack video :)
    I made a similar stack using hono and cfw that I believe was a bit more flexible, at least before Bun supported Windows and Elysia had cfw support.

  • @A-LMedia
    @A-LMedia Рік тому +1

    Subscribed and turned on notis. I like your thesis. Thank you.

  • @trappedcat3615
    @trappedcat3615 Рік тому +3

    I body slammed the notification bell. Looking forward to the tuturial.

  • @JaredJewell-wi4fy
    @JaredJewell-wi4fy Рік тому +1

    So excited for the next video - keep up the awesome work!!! ❤

  • @caffeine01
    @caffeine01 Рік тому +1

    subscribed within the first 60 seconds of watching this. great video man!!

  • @steveoc64
    @steveoc64 Рік тому +1

    Subbed !
    I am all in with zig on the backend, generating htmx, for static binaries
    Been using bun at $work for 12 months now
    Great channel, love ur work, looking fwd to deep dives

  • @Atmos41
    @Atmos41 Рік тому

    FYI, htmx config can be set from a meta tag with name htmx-config and content a JSON holding all of the config

  • @acemanftw
    @acemanftw Рік тому +2

    How is your hair so awesome man? Like for real.
    Nice video!

  • @itscooldawgdonteventrip
    @itscooldawgdonteventrip Рік тому +1

    subcribed. waiting for that in the mean time I will try that stack

  • @ardianhotii
    @ardianhotii Рік тому +1

    I'm so hyped about that app with this awesome stack

  • @MrXperx
    @MrXperx Рік тому +9

    It's unlikely that anything JS is as fast as Rust under realistic workload scenarios. Still, looking forward to trying bun for side projects.

    • @wolfeygamedev1688
      @wolfeygamedev1688 Рік тому +3

      Agreed, while it’s definitely mags faster then other JS routers, once the GC kicks in it doesnt matter. Most cases it doesnt really matter tho.

  • @sebwylleman
    @sebwylleman Рік тому +1

    Top video, keep them coming mate!

  • @adil284
    @adil284 Рік тому +27

    next: the METH stack 😂

  • @gungun974
    @gungun974 Рік тому +2

    Personally I don’t use this stack like you show but I’m really inspired by you. You make me discover Bun and Elysia for example and give me the idea to use Tsx for rendering.
    Well for the curious my stack is similar but I use prisma and I integrate vite with full page reload (not hmr) and postcss and finally brandi cause I love dependency injections.
    So thanks you for the inspiration

  • @yash1152
    @yash1152 Рік тому

    0:39 "win support coming" aaaaahhhhht

  • @igorreti
    @igorreti Рік тому

    I'm eagerly waiting for the next video

  • @datguy4104
    @datguy4104 Рік тому +2

    1:20 Bro if you told me it was as fast as Go I wouldn't have believed it. This is NUTS

  • @wolfeygamedev1688
    @wolfeygamedev1688 Рік тому +4

    My only gripe with HTMX is having to write ur API layer twice if you want to have a different frontend access it.

    • @Lucas-gt8en
      @Lucas-gt8en Рік тому

      Honestly that feels like a good reason to not use HTMX if that's non-negotiable or perhaps have the HTMX server talk to the API instead of the database?

    • @wolfeygamedev1688
      @wolfeygamedev1688 Рік тому

      @@Lucas-gt8en Yeah suppose could have the HTMX talk to the api, but at that point yk may as well just use a JS framework r som.

    • @thisgoesnowhere
      @thisgoesnowhere Рік тому

      You have to write your validation twice when you have a traditional frontend so I'd say it's a pretty similar tradeoff in terms of complexity

  • @intelpakistan
    @intelpakistan Рік тому +1

    Looking forward to the tutorial! ❤

  • @TroyMartz-y2l
    @TroyMartz-y2l Рік тому +1

    Looking forward to it!

  • @yash1152
    @yash1152 Рік тому

    3:16 htmx preload on hover
    didnt know that was a thing for web too

  • @gosnooky
    @gosnooky Рік тому +1

    Now if Bun can easily accommodate NestJS, I'm game.

  • @unknown-user001
    @unknown-user001 Рік тому

    Bun has some problems in db:push of Turso. I used drizzle with turso, and I ran into the issue. And the problem's been pointed out for a while, but it's not been yet resolved.

  • @KURWAMACJAPIERD0LE
    @KURWAMACJAPIERD0LE Рік тому +6

    I’m super sceptic about HTMX, but gonna watch your content - it seems like a interesting concept. Would be cool to see some content related to what problems it actually solves and why people should care about it. Anyways, I like your style - keep it up!

  • @victorpinasarnault9135
    @victorpinasarnault9135 Рік тому

    I would love a playlist about BETH stack! Please, make ir!

  • @craigcaski
    @craigcaski Рік тому

    Hyped for that tutorial!

  • @Noritoshi-r8m
    @Noritoshi-r8m Рік тому +1

    looks cool, gonna try that later

  • @JJ72486
    @JJ72486 Рік тому +3

    Became interested in this stack recently (namely due to HTMX), and by my luck I run into a video by the stack's author. Your presentation style/communication style seem to lend really well to teaching, so I'm really looking forward to your tutorials/courses on how to best use the stack (you are the expert, after all). Awesome work and I know we all can't wait!

  • @renegadeace1735
    @renegadeace1735 Рік тому

    I'm using react + express + node right now. Might try Bun for my next project :)

  • @CodingPhase
    @CodingPhase Рік тому +1

    I want to give htmx a chance but I find it to be just weird... I enjoy watching this type of video tho

  • @filipetamaral
    @filipetamaral Рік тому +4

    Cool, but shouldn't you set the Cache-Control attr in the response headers so preload can work? Or caching is the default behavior?

  • @s4ndeep1203
    @s4ndeep1203 Рік тому

    Would be glad to have your thoughts on Nitro and OFetch in this stack

  • @okerror1451
    @okerror1451 Рік тому +1

    Could you maybe include how to integrate with something like Auth0 in your tutorial.. I feel like that area is really not covered all that well in Elysia

    • @killerdroid99
      @killerdroid99 Рік тому

      You can look in the plugins sections in their docs

  • @ericjunior105
    @ericjunior105 Рік тому

    Waiting for B2B Tutorial, Siuuuuu!

  • @tno2007
    @tno2007 Рік тому

    bun needs windows support for it to 'sell' itself

    • @killerdroid99
      @killerdroid99 Рік тому

      Well I still use it in windows with wsl but dedicated windows support would be fine imo

  • @herok3447
    @herok3447 Рік тому

    When are you releasing a detailed video building production ready app with bun?

  • @Meleeman011
    @Meleeman011 Рік тому

    i await your beth stack implementation

  • @szymex22
    @szymex22 Рік тому +4

    Cool, but don’t you have to write your backend routes basically 2 times to support a mobile app? Once for the htmx stuff and the other for JSON or another format that can be parsed

  • @basketberoende
    @basketberoende Рік тому

    I tested the stack just for fun, but one problem with the DX is that the hot realoading do not work. Or atleast it did not do it for me.... Maybe i missed something but that would be nice to have

  • @HuynhLuong227
    @HuynhLuong227 Рік тому

    Wow bun is amazing🎉🎉🎉

  • @bobDotJS
    @bobDotJS Рік тому +4

    I built an app with the beth stack today. I love bun but I hate HTMX. But your video was super helpful.

  • @wojciechosinski5927
    @wojciechosinski5927 Рік тому

    I still can't believe it's as fast as rust. It doesn't make sense for a scripting language to be as fast as compiled one. What's the real performance?

  • @boot-strapper
    @boot-strapper Рік тому +1

    It’s so good. Wtf. No going back.

  • @rahulagarwal968
    @rahulagarwal968 Рік тому

    What are your views on Golang ? Is it worth learning for backends api.

    • @ethanniser
      @ethanniser  Рік тому +1

      Go can be a great language for certain use cases, but personally I’m not a big fan. I would use typescript up until the point I need the additional safety/performance of rust.
      But you should use whatever interests you can fits your use case the best.

  • @clintkennedy8387
    @clintkennedy8387 Рік тому

    The "author" of the stack? 🤔

  • @Jaypiasco
    @Jaypiasco Рік тому

    im a beginner! :D, can you do a run through or a video where you make a htmx template, compile it with idk bun? and elysia and turso? and like give a breakdown run through on how to implement each and their application to the project.

    • @Jaypiasco
      @Jaypiasco Рік тому

      im making a project with Electron JS that uses Node JS, i don't really know how to make use to try to implement bun instead of node js there

    • @ethanniser
      @ethanniser  Рік тому +1

      The BETH Stack: Build Hypermedia-Driven Web Apps with Great DX and Performance
      ua-cam.com/video/cpzowDDJj24/v-deo.html

  • @lorddaniel3354
    @lorddaniel3354 Рік тому

    can framework that run on node like nestjs, expressjs, reactjs, svelte work with bun ?

  • @darknetworld
    @darknetworld Рік тому

    Well it better to use debug dev tool to see network status.

  • @davdmoo
    @davdmoo Рік тому

    Is it just me or does view transition not work on Firefox?

    • @ethanniser
      @ethanniser  Рік тому

      Yea only in chrome for now, but other browsers soon

  • @SiliO_
    @SiliO_ Рік тому

    is this stack is good for beginners?

  • @MrAverageViewer
    @MrAverageViewer Рік тому

    Ethan, first, thank you for introducing the B.E.T.H stack! It will be especially exciting to see your upcoming B2B framework; this changes the SaaS landscape significantly! Man o' man, this is fantastic!! Hoping someday you might even consider doing a real-world project-based Udemy Tutorial on the B.E.T.H B2B stack 🙂

  • @PTBKoo
    @PTBKoo Рік тому

    Elysia vs hono?

  • @rickdg
    @rickdg Рік тому

    A lot of potential, but how are the segfaults?

    • @ethanniser
      @ethanniser  Рік тому +3

      Personally haven’t had any issues so far, doesn’t mean they don’t exist. The bun team is working hard to squash bugs, and it’s a technology promise enough to be worth using.

    • @rickdg
      @rickdg Рік тому +1

      @@ethanniser Can also be some healthy pressure put on Zig, it’s time to shine.

  • @Delubrum
    @Delubrum Рік тому

    Waiting for the tutorial!

  • @juanmacias5922
    @juanmacias5922 Рік тому

    Tutorial should be fun!

  • @kasper369
    @kasper369 Рік тому

    But I don't want to leave Deno T.T

  • @dn5426
    @dn5426 Рік тому

    sick cans dude!

  • @alexqs96
    @alexqs96 Рік тому +1

    nice video, but just wondering when did i suscribe... O.O

  • @jlf_
    @jlf_ Рік тому

    You look like a nice Ben Awad

  • @ebibek1091
    @ebibek1091 Рік тому

    All can work except for the react 😊

  • @ShimizuIzumi
    @ShimizuIzumi Рік тому

    I want to use Bun but I can't because I use Windows

  • @joaopetersonscheffer
    @joaopetersonscheffer Рік тому

    sick

  • @acykablyatley
    @acykablyatley Рік тому

    common zig W

  • @f0ssig
    @f0ssig Рік тому +3

    You are not the author of bun, elysia, turso or htmx. What are you an author of exactly?
    Since most complete node techstacks have been compatible with bun since forever, is it even the first?
    is 1.0 ready for production? what?!
    Also, what's up with this comment section? the other commenters seem to follow some script...

    • @jtms1200
      @jtms1200 Рік тому +1

      Yeah seriously, I think many of them are straight up bots. Currently the only way I am aware of to ship a Bun app to prod is by dockerizing it (or using some other container) and deploying it to an orchestration infra like kubernetes or one of the many full managed container environments like ECS. I highly doubt this guy or many other people are doing this already. I am not going to get excited about Bun until one of the big hosted PaaS providers start offering one touch Bun deploys.

    • @ShadoFXPerino
      @ShadoFXPerino Рік тому

      @@jtms1200 I suspect it's Turso viral marketing PR at play. They sponsor tons of techtubers to shill their fancy DBaaS SQLite fork.

  • @soulsearch7383
    @soulsearch7383 Рік тому

    Bun doesn’t build properly. Even if you target bun it the build doesn’t even run. Everything else is amazing so far.

  • @kalahari8295
    @kalahari8295 Рік тому

    Bruh

  • @savire.ergheiz
    @savire.ergheiz Рік тому

    Its garbage 😂
    Unusable on older env. Too much issues and seriously god knows what it has under its compatibility hell.
    If you start new projects then it might be fine on again wont advise to use it on production as of now yet.

  • @MagicAndReason
    @MagicAndReason Рік тому

    I ❤ the *content* of this video, but I HATE the video overall. You need to keep the pictures on the screen longer. It's as simple as that.
    I feel like I need to remind you that what you have in your head isn't what I have in my head, so give me more time, please. I hope your goal is to be educative. But that means you have to CARE if people understand you.
    Otherwise, the video is very good. Personally, I'd fully talk through any acronyms once at the start. I also think you could stand to talk just a smidge slower.
    But to reiterate, those pics need to stay up longer, please please please.

    • @NOK42
      @NOK42 Рік тому

      You realize this is UA-cam and not a TV from the 90s right? You can pause...

  • @marshallgreenhouse
    @marshallgreenhouse Рік тому +2

  • @arthurfiorette
    @arthurfiorette Рік тому +5

    The guy who wrote @kitajs/html is so beautiful omg. (ps its me)