Vites Fatal Flaw Fixed With Vinxi

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025

ความคิดเห็น • 85

  • @not_cool_dev
    @not_cool_dev 6 หลายเดือนก่อน +21

    With most of the documentation still "Coming soon", I really appreciate you taking the time figure out how to get it up and running by diving into the examples.

  • @StingSting844
    @StingSting844 6 หลายเดือนก่อน +24

    Great content pops. I hope you're doing well ❤

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      I am. And thank you!

  • @tomasb3191
    @tomasb3191 6 หลายเดือนก่อน +4

    I couldn't figure out the docs, I know this is what solid uses. I'll follow this, love vite! great content as always

    • @jyjyjyj3
      @jyjyjyj3 6 หลายเดือนก่อน

      Check examples folder in vinxi repo

  • @jyjyjyj3
    @jyjyjyj3 6 หลายเดือนก่อน +6

    I don't like file-based routers and I don't need SSR in my pet project, but I enjoy the convenience of server functions.
    Recently, I created a standard SPA React app with the ability to call server functions. Thanks, Vinxi!
    It's important to mention that adding this functionality took only a few minutes.
    I think it would be a great idea for your next video to showcase a similar setup

  • @emersondemetrio
    @emersondemetrio 6 หลายเดือนก่อน +5

    Also, thanks a lot for sharing the source code. I've been learning a lot with you lately 🙏

  • @zakir.nuriiev
    @zakir.nuriiev 6 หลายเดือนก่อน +1

    Cool! Thank you for the nice overview!

  • @cariyaputta
    @cariyaputta 6 หลายเดือนก่อน +3

    Cool. First time heard of Vinxi.

  • @RyanRampersad
    @RyanRampersad 6 หลายเดือนก่อน +1

    Great video! I hadn't heard of Vinxi (and wouldn't have pronounced it like that - ha). Thanks!

  • @MoulyTTS
    @MoulyTTS 6 หลายเดือนก่อน

    Great content, I just arrived to your channel and I am so happy. Great quality,,

  • @coreyspeisman3941
    @coreyspeisman3941 6 หลายเดือนก่อน +1

    Thanks Jack! I would be really curious to explore what the build output looks like!

    • @devinxi
      @devinxi 6 หลายเดือนก่อน +2

      It’s exactly vite for the client side and the server side is a nitro build.. but basically a bundled node script kinda thing

  • @0x3334
    @0x3334 5 หลายเดือนก่อน +1

    More Murph-driven projects please. Great video as always!

  • @rezaghifary3653
    @rezaghifary3653 6 หลายเดือนก่อน +1

    Webdev is up to the roof!

  • @nro337
    @nro337 6 หลายเดือนก่อน +2

    Great video!!

  • @grugbrain
    @grugbrain 6 หลายเดือนก่อน +7

    I guess next time you are going to talk about pnpm workspace, or monorepo thing, sharing code/components/hooks among multiple next.js apps. 🥰

    • @VeaceslavBARBARII
      @VeaceslavBARBARII 6 หลายเดือนก่อน +2

      Great idea

    • @jherr
      @jherr  6 หลายเดือนก่อน +7

      It sounds like you want me to talk about that. :)

    • @grugbrain
      @grugbrain 6 หลายเดือนก่อน +1

      @@jherr Yes! Yes! Please do!

    • @Zephury
      @Zephury 6 หลายเดือนก่อน +1

      @@jherr coolify + turbopack builds with caching at some point maybe?

  • @6little6fang6
    @6little6fang6 6 หลายเดือนก่อน +2

    sick

  • @khoinguyen-ft2ys
    @khoinguyen-ft2ys 6 หลายเดือนก่อน +2

    Thanks for your awesome video. If possible, please create a video about honojs + vitejs

  • @DivjotSingh
    @DivjotSingh 6 หลายเดือนก่อน +6

    Would be nice to compare this with vite ssr server.js. That feels more straightforward but equally experimental.

  • @jongseoklee9477
    @jongseoklee9477 6 หลายเดือนก่อน +2

    Thank you for the very informative video today. I was happy to see you use pnpm. Can you make a video about monorepo such as pnpm or Nx?
    Thank you always :)

  • @magne6049
    @magne6049 6 หลายเดือนก่อน +1

    Vinxi is really a MetaRouter (built on top of a web server, H3/Nitro). Since its core thing is that it allows you to compose routers. It routes between routers.

    • @jyjyjyj3
      @jyjyjyj3 6 หลายเดือนก่อน

      Yep. You can literally create several APIs in your project (one in Hono and one in Express, for example).

  • @gnrsn9714
    @gnrsn9714 6 หลายเดือนก่อน +1

    Corepack vid yes please! ❤

  • @emersondemetrio
    @emersondemetrio 6 หลายเดือนก่อน +1

    Fantastic.

  • @denno021
    @denno021 6 หลายเดือนก่อน +1

    Is it possible to extend this a little to show how it works in production? I've only been using Vite for static building of my SPA currently, not as a production server, so would be interested to see how that works, and then how Vinx works on top of Vite to make that even better.

  • @xorlop
    @xorlop 6 หลายเดือนก่อน +4

    Just a heads up, I think the node team wants to deprecate corepack. Probably won’t happen for another five years though, lol.
    I think nix devenv is a good solution for node and package manager installations, instead.

    • @jherr
      @jherr  6 หลายเดือนก่อน +2

      Never a dull moment in node land.

  • @grugbrain
    @grugbrain 6 หลายเดือนก่อน +1

    This is cool!

  • @ErickRodrCodes
    @ErickRodrCodes 6 หลายเดือนก่อน +1

    Nice explanation on Vinci! I wonder if I can Inject that with an electron app :D :D

  • @wepieces
    @wepieces 6 หลายเดือนก่อน +1

    time to rewrite my project 🎉

    • @jyjyjyj3
      @jyjyjyj3 6 หลายเดือนก่อน

      You don't need to do this if you used Vite before

  • @whoknows3679
    @whoknows3679 6 หลายเดือนก่อน +5

    Have you tried vike?

    • @jherr
      @jherr  6 หลายเดือนก่อน +3

      I have not. I'll give it a look.

  • @guhaprasaanthnandagopal8486
    @guhaprasaanthnandagopal8486 6 หลายเดือนก่อน

    Great content @jherr
    I do have a question
    What would the difference be if I were to use Bun instead of PNPM/NPM/Yarn?

    • @jherr
      @jherr  6 หลายเดือนก่อน +2

      AFAIK you can 100% use bun for the install. Not sure if you can run it with bun. But it would be a bun problem if you can't. It's not the job of library/framework authors to make their code Bun compatible. It's the job of Bun to be compatible with frameworks and libraries.

    • @devinxi
      @devinxi 6 หลายเดือนก่อน +1

      Yup can both install with bun and run with bun .. which actually runs vinxi in node.. but you can do bun run dev -bun and that’s pure bun magic

    • @guhaprasaanthnandagopal8486
      @guhaprasaanthnandagopal8486 6 หลายเดือนก่อน

      @@jherr Thank you

    • @guhaprasaanthnandagopal8486
      @guhaprasaanthnandagopal8486 6 หลายเดือนก่อน

      @@devinxi Thank you

  • @Metruzanca
    @Metruzanca 6 หลายเดือนก่อน

    Solidstart? Thats a framework. Vinxi? Thats a meta-meta-framework. Vite? Thats the meta-framework that the meta-meta-framework vinxi uses to power the framework solidstart.

    • @magne6049
      @magne6049 6 หลายเดือนก่อน

      solid is a framework, and solidstart is its metaframework (that uses the metaRouter Vinxi). Now try again😅

  • @dinckelman
    @dinckelman 6 หลายเดือนก่อน

    The reason you don't need to use a useEffect anymore, is because in SSR pages, you can just async/await your api calls directly. However, since you're using client-side state, you still have to do it anyway

    • @MrEnsiferum77
      @MrEnsiferum77 4 หลายเดือนก่อน +1

      just wire it with tanstack query, and u don't need useEffect at all, nor client state, unless u need to set some current item

  • @naranyala_dev
    @naranyala_dev 6 หลายเดือนก่อน +1

    full typescript stack

  • @rahulsriram6295
    @rahulsriram6295 4 หลายเดือนก่อน

    is there anything similar for Hono? Like how Vinxi is for Nitro

  • @netvaibhav
    @netvaibhav 6 หลายเดือนก่อน +1

    How do we do ssr? Also, can we have filesystem based routing?

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      Yes and yes. But the file based routing is currently at
      "experimental" level./

  • @electroheadfx
    @electroheadfx 6 หลายเดือนก่อน +1

    is vinxi could run solidJS + ReactJS each one on a router via plugin in one app ?

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      Yep.

    • @electroheadfx
      @electroheadfx 6 หลายเดือนก่อน

      @@jherr Its amazing

  • @CaleMcCollough
    @CaleMcCollough 6 หลายเดือนก่อน +2

    What is better in 2024: Vite with Vinxi or Next.JS 14?

    • @viniciusataidedealbuquerqu2837
      @viniciusataidedealbuquerqu2837 6 หลายเดือนก่อน +3

      vendor locking is a bitc* so vinxi it is

    • @CaleMcCollough
      @CaleMcCollough 6 หลายเดือนก่อน

      ​@@viniciusataidedealbuquerqu2837 Next.JS isn't vendor locked. I'm building a monolith server with Appwrite and Next.JS using TrueNAS Scale and Docker. The good thing about Appwrite is that you can use their cloud, it has in-memory caching, and then transfer into a 64 or 128-core server you can upgrade to 2TB RAM, multiple petabytes of hard drives and U2 NVMe. By the time you exhaust those resources, you will have so much money coming in someone else can deal with it. It's more important to have your database and server on the same server with in-memory caching than it is to have a horizontally scaled service you may never need that much power for.

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      I'm going to go with NextJS because it's a canned complete solution. Vinxi to me feels like SPA++.

    • @luka1790
      @luka1790 6 หลายเดือนก่อน +1

      Depends what u wanna build

  • @jialx
    @jialx 6 หลายเดือนก่อน +3

    Absolutely typical.. I build something that was now extremely simplified two weeks later.

  • @mikkelwf1984
    @mikkelwf1984 6 หลายเดือนก่อน +6

    Fatal flaw? Come on.. 🤣

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      It's TH-cam. I gotta push the clickbait a little. :)

    • @akay64x2
      @akay64x2 6 หลายเดือนก่อน +1

      I actually thought they fixed that memory issue on bigger projects, that's the real fatal flaw.

  • @Frostbytedigital
    @Frostbytedigital 6 หลายเดือนก่อน +7

    While its a slightly quicker dev experience in general (especially within meta frameworks like solid start) i still find vinxi and all other js https server implementations much less performant than using golang for apis, and have to be certain the service will never have a high user base for me to feel comfortable using JS apis.

    • @MrEnsiferum77
      @MrEnsiferum77 4 หลายเดือนก่อน

      it's server close the the client, but it can be rewritten in go or rust, the point is that, u don't need fullblown framework. Btw, the BE server api endpoints are least important if they are written in go or js (besided different handling of GC), u will sooner or later ends up wtih CQRS for performance issues.

  • @magne6049
    @magne6049 6 หลายเดือนก่อน

    Please do VikeJS (vite-plugin-ssr)!

  • @tzelon47
    @tzelon47 6 หลายเดือนก่อน +4

    I love you. But man, a meta meta framework. Where did we take the wrong turn?

    • @luka1790
      @luka1790 6 หลายเดือนก่อน

      Why tho, i like it

    • @magne6049
      @magne6049 6 หลายเดือนก่อน +1

      Vinxi is a meta-router which is used in meta-frameworks like SolidStart.

  • @ChristianMoentest
    @ChristianMoentest 6 หลายเดือนก่อน

    What about remix?

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      What about remix?

    • @ChristianMoentest
      @ChristianMoentest 6 หลายเดือนก่อน

      @@jherr They migrated to vite, so remix is now a vite plugin :-) I though you might like it?

    • @jherr
      @jherr  6 หลายเดือนก่อน

      @@ChristianMoentest Sure. Yeah. It's good stuff.

  • @krishna-santosh
    @krishna-santosh 6 หลายเดือนก่อน +9

    What's up with all these comments 😂 lol

    • @codingwithbrian
      @codingwithbrian 6 หลายเดือนก่อน +5

      Haha I don't know but they are not wrong!

    • @jherr
      @jherr  6 หลายเดือนก่อน +1

      I guess it's a sign of success that my first comments are always bots with sexy avatars making generalized comments. I'm not sure what it gets them though.

  • @FatahChan
    @FatahChan 6 หลายเดือนก่อน +1

    can you deploy this on vercel?

    • @Peshyy
      @Peshyy 6 หลายเดือนก่อน +1

      Yes

  • @Gaijin101
    @Gaijin101 6 หลายเดือนก่อน

    Just use Nitro tbh.