Pooya Parsa
@pi0.io
4.4K followers 700 following 330 posts
Building opensource stuff ◦ @unjs.io ◦ @nitro.build ◦ @nuxt.com 🌱 github.com/pi0 ❌ x.com/_pi0_
Posts Media Videos Starter Packs
Reposted by Pooya Parsa
thealexlichter.com
Finally, we got PHP in JavaScript! 👀
pi0.io
Coolest part: LLMs understood the syntax instantly! No explanation needed; most completions were single-shot correct.

Turns out, using familiar patterns (PHP-like + Web API) really pays off.
pi0.io
Introducing Rendu: JavaScript Hypertext Preprocessor

Not just a template engine — Rendu bridges SPA and SSR using modern Web APIs with multi-streaming and async support.
Reposted by Pooya Parsa
markus.oberlehner.net
Reverse JSX? Instead of HTMLish syntax in JS, JSish syntax in HTML 🤭
pi0.io
Introducing Rendu: JavaScript Hypertext Preprocessor

Not just a template engine — Rendu bridges SPA and SSR using modern Web APIs with multi-streaming and async support.
pi0.io
Haha, I LOVE this line 😀
pi0.io
What if I told you your Vite SPA could do partial server-side rendering and streaming? 😌

Let’s talk about how. 👇 (1/1)
pi0.io
Coolest part: LLMs understood the syntax instantly! No explanation needed; most completions were single-shot correct.

Turns out, using familiar patterns (PHP-like + Web API) really pays off.
pi0.io
Introducing Rendu: JavaScript Hypertext Preprocessor

Not just a template engine — Rendu bridges SPA and SSR using modern Web APIs with multi-streaming and async support.
pi0.io
Introducing Rendu: JavaScript Hypertext Preprocessor

Not just a template engine — Rendu bridges SPA and SSR using modern Web APIs with multi-streaming and async support.
pi0.io
Express has proven to be simple and reliable. It’ll never die just like good old PHP 😁
pi0.io
jhp-fpm? :))
pi0.io
<?= is shorthand for <? echo 😁
pi0.io
Only now there is no framework just good HTML and JS 😁
pi0.io
But why? I mean what can go wrong for simple dynamic pages?
pi0.io
Too late 😂
pi0.io
Lets make old, the new 😄
pi0.io
@juliangruber.bsky.social, would you donate npmjs.com/jsp ? 😅 I will make it happen!
pi0.io
JS pro tip: Add { cause } to errors. Makes debugging and inspection way easier 🔍

developer.mozilla.org/en-US/docs/W...
pi0.io
So obsessed with keeping H3Core’s bundle small. It’ll grow over time with more features, so now’s the best chance to make the baseline tiny (currently: 7.5 kB /3 kB gzip).
pi0.io
H3.dev now natively supports { fetch } handler format.

This means you can plug in any web-compat framework (like @hono.dev or @elysiajs.com with @nitro.build’s filesystem routing out of the box 🤝

Standards + interop FTW! ❤️
pi0.io
Interesting! Feel free to open a GitHub issue tracker at least. I want to upstream it eventually and reduce install size.
pi0.io
🌶️ Hot take on JS runtimes, based on my obs, take it with a grain of salt.

🚀 Perf: bun > node > deno
🛡 Stability: node > deno > bun
📜 Compliance: deno > node > bun
🧩 Features: bun > deno > node
pi0.io
Thank you for the new default! 🙏