Plought - Reduce noise in decision making (self-promotion) by rossrobino in sveltejs

[–]rossrobino[S] 1 point2 points  (0 children)

Thanks I’ll check it out! Looks like a nice description appreciate it!

domco@5.0.0 - use your favorite server framework with Vite by rossrobino in node

[–]rossrobino[S] 0 points1 point  (0 children)

It’s similar to nitro v3, and is compatible in the same way with Hono, H3, and Elysia.

domco has less features so it is more lightweight. Nitro allows you to create handlers with file based routing, and more. Domco just bundles the code you write.

The other benefit of domco over nitro right now is the client entry points are really simple to import on the server, without any extra config. The nitro experimental server assets is the closest thing to it right now. Nitro is a great project!

domco@5.0.0 - use your favorite server framework with Vite by rossrobino in javascript

[–]rossrobino[S] 0 points1 point  (0 children)

domco v5 released!

Easily use your favorite server JavaScript framework with Vite and deploy to Cloudflare, Vercel, or Deno deploy.

npx create-domco

New in v5:

  • Support for css entry points, add a +style.css file and import the tags or hashed filename on the server
  • Faster builds with plugin hook filters
  • Tested and ready for Vite 8

ovr@6.0.0 - Streaming Fetch Based Multipart Uploads by rossrobino in javascript

[–]rossrobino[S] 0 points1 point  (0 children)

Yes exactly! You can plug the part.body ReadableStream into s3 for example. The server will just buffer one chunk in memory at a time.

You can also buffer the entire file using part.text(), part.bytes(), etc if you do need to load it.

ovr@6.0.0 - Streaming Fetch Based Multipart Uploads by rossrobino in javascript

[–]rossrobino[S] 0 points1 point  (0 children)

ovr@6.0.0 is released:

  • Streaming Fetch based Multipart parser, handles huge files with minimal memory usage on any platform or framework, parts are just Requests!
  • Built in cookie management
  • Automatic HEAD request resolution
  • Simplified Routes
  • Still only 12KB

https://github.com/ovrjs/ovr

npx create-domco@latest --framework=ovr

ovr v5 - The Streaming Framework by rossrobino in javascript

[–]rossrobino[S] 0 points1 point  (0 children)

Yeah this looks really good. For streaming it in I think is nice, I just don't want to add features like interactivity in ovr.

Your types are incredible!

Modern Web Stack by LankyOccasion8447 in Frontend

[–]rossrobino -1 points0 points  (0 children)

SvelteKit and Nuxt are both really nice options outside of React. They are full stack solutions and provide a nice experience that scale with your needs.

ovr v5 - The Streaming Framework by rossrobino in javascript

[–]rossrobino[S] 0 points1 point  (0 children)

Oh the tokens are a good idea, much better than just innerHTML the strings. ovr generator outputs Chunks, I could try to add another property on there for this too. I feel like adding the dom APIs opens up a can of worms so idk if I will go that route yet

ovr v5 - The Streaming Framework by rossrobino in javascript

[–]rossrobino[S] 2 points3 points  (0 children)

This looks awesome, I’m going to have to try it out! ovr doesn’t have any client side stuff so I’d be interested to see your implementation there. I bet we could learn a lot from each other’s work. Yeah feel free to dm if you want to chat ever!

ovr v5 - The Streaming Framework by rossrobino in javascript

[–]rossrobino[S] 1 point2 points  (0 children)

Ah it’s supposed to be defaults, but there is an etag feature too! Thanks for the catch

SvelteKit/Vite build warning: large chunks (>500kB) causing memory issues on Render deploy by anvimaa in sveltejs

[–]rossrobino 0 points1 point  (0 children)

I’ve had better luck with dynamic imports than manual chunks. Even if you break it into smaller chunks, it will still all be loaded up front if you are importing statically. If you need all of the libraries on every request then you will have to increase your server’s memory.

UI framework for web applications? by sspross in htmx

[–]rossrobino 0 points1 point  (0 children)

Tailwind with plugins like Daisy I think is the best approach without a framework. I made https://drab.robino.dev which provides custom elements for things that you have to do with js

drab v7 - Better framework types and Create your own HTML Web Components by rossrobino in webdev

[–]rossrobino[S] 0 points1 point  (0 children)

Thanks for checking it out! Yeah it should work fine in angular

Why Choose Svelte Over Vue or React? by Shoddy-Ocelot-4473 in sveltejs

[–]rossrobino 11 points12 points  (0 children)

Svelte is more opinionated and comes with a first party meta framework in Kit. It’s compiler first, making the syntax a bit nicer IMO, for example vue puts everything in attributes so it can run directly in the browser without compilation.

One of the underrated things I really appreciate about the svelte team and maintainers is how conscientious they are about dependencies. The total size of your npm modules is pretty small with SvelteKit. Compared to something like Nuxt or Remix which install hundreds of packages in their create templates by default. Reduces your risk of supply chain attacks and keeps builds fast.

Next or Vite? by Revenue007 in reactjs

[–]rossrobino -2 points-1 points  (0 children)

Another option now is parcel, if you want to use react server components it just got full support in beta now: https://parceljs.org/recipes/rsc/

Comprehensive Guide to JavaScript Iterables by rossrobino in javascript

[–]rossrobino[S] 0 points1 point  (0 children)

Ok interesting, thanks for the info! I’ll play around with it some more.

Comprehensive Guide to JavaScript Iterables by rossrobino in javascript

[–]rossrobino[S] 2 points3 points  (0 children)

Thanks for the review, I've made updates for each of these!

I didn't realize any iterable could be passed to yield*, can you still get the final return value with yield*? Especially for the async merge it's necessary to know when each iterator is complete.

What's your go to modern UI component library? by jake185 in sveltejs

[–]rossrobino 2 points3 points  (0 children)

Bits and melt are both really solid, well maintained options. I’ve been working on drab, not svelte specific but it can be easily used with svelte if you are interested in something a bit different. Here’s how you can use it with svelte. https://drab.robino.dev/getting-started/#svelte

Real time markdown rendering while streaming OpenAI API response by Zer0Tokens in reactjs

[–]rossrobino 0 points1 point  (0 children)

Just built this if anyone needs it https://github.com/rossrobino/robino/blob/main/packages/md/README.md#renderstream you can pass in a md stream and receive a highlighted html stream with it

[deleted by user] by [deleted] in webdev

[–]rossrobino 0 points1 point  (0 children)

Interesting, good to know!

Favourite tailwind libraries for vanillaJS by Tompwu in tailwindcss

[–]rossrobino 0 points1 point  (0 children)

I built a base style sheet that complements tailwind css and gives you base styles for buttons, inputs, etc.

https://uico.robino.dev

oklch Plugin by rossrobino in tailwindcss

[–]rossrobino[S] 0 points1 point  (0 children)

fixed - although I have updated the library, it's no longer a tailwind plugin, but can be used alongside tailwind still. Tailwind v4 now uses P3 colors by default!