Lurker News
Hey HN, I'm Nate, the creator of Tamagui.

One is a React framework that does two things differently in hopes of simplifying how we build websites and apps:
1. It unifies React Native and React web with typed file system routing by making Vite able to serve RN. This lets you share (or diverge) your code in a simpler way for cross-platform apps.
2. We've partnered with Zero (https://zerosync.dev) to make local-first work well. We've been building a solution in One that makes Zero supporting server rendering, without waterfalls, and with seamless server/client handoff.
---
Honestly - I'm a bit hesitant to post One here.
HN has really soured on frontend/frameworks. And I get it. We've collectively complicated the hell out of things.
That's why I decided to build One. I loved Rails, it made me as a young developer able to finally realize way more ambitious projects than I'd ever done before. I also liked the promise (not implementation) of Meteor - it felt like the clear future, I guess just a bit too early (and a bit too scope-creeped).
I worked at Uniswap and built Tamagui and so spent a lot of time building cross-platform apps that share code. Uniswap is built on Tamagui and I think proves you can make really high quality UX while sharing a lot of code - but it's insanely hard and requires a huge team. My goal with One is to make what is now possible but hard dramatically easier.
And I think the path to there goes through local-first, because it makes building super responsive apps much, much simpler, and Zero is the first library to actually pull it off in a way that doesn't bloat your bundle or have very limiting constraints.
I happened to live down the street from Aaron, one of the founders of Zero, in our tiny town in Hawaii. We talked a lot about Zero over the last couple years, and I found it really admirable how he consistently chose the "harder but better" path in building it. It really shaped into something incredible, and that convinced me to actually launch One, which at the time was more of an experiment.
I can see a lot of potential criticism - do we need yet another framework, this is too shiny and vaporware-y, this is just more complexity and abstraction, etc. Happy to respond to those comments if they come.
I'm just building out something that I've been wanting for a long time. Opinionated enough to let me move fast like Rails, but leaning on the great work of team Zero so that we don't end up with the scope creep of Meteor. And honestly, it's just really fun to hack on.

Comments (254) 60 threads

Earlier comments
bbor2 replies#
Great writeup(s), thanks for sharing! My immediate reaction was “that sounds too good to be true”, which is a nice compliment I think. I have some high level questions if you find the interest:

1. Why have a React Native clone of your SPA instead of just doing a PWA? Does it provide some technical benefit (better offline local data persistence, maybe?) or is it just to get your site advertised on the App Store? Surely all the device APIs for movement, multitouch, etc. are supported on mobile browsers? This has been bothering me for a while, so perhaps too broad of a question.
2. What’s the rough timeline and funding look like for this? In my eyes this is a solution to, like, all complex web apps ever, so I was shocked to see just a few developers. I know you acknowledge some bugs in the Native implementation, but besides that, do you feel like this could be used for a data intensive Postgres-backed TS application today with minimal chances of bugs, or is it still a bit more experimental? I guess I’m looking for a bit of clarification on the intended meaning of “production ready”, since it seems so damn ambitious.
Either way, Godspeed! Your website is gorgeous, and the whole project is insanely up my alley. Plus ‘npx one’ is just slick as hell

motoxpro#
even being a "tech" person i havent ever installed a PWA and no one in my "non tech" circle even knows that they exist. Lots of user education to do there for them to work in my opinion.
nwienert1 reply#
1. With Tamagui you can share almost 100% code, so it's not a re-write, and mostly the reasoning is that it feels a lot more native. Especially interactions, scrolling, and being able to use native UI and libraries anywhere you want. Performance is a bit better too in general. It's a bit more work for sure, but I think Tamagui + One really does make it a ton more doable than before.

2. Tamagui is bootstrapped and makes some money, we haven't raised and aren't sure yet if we will. But we may need to if we want to compete long-term against well funded competition. Honestly web works really well, we have a few sites in production already. Native works pretty decent but we just want to add a lot of tests and get a more apps into the app store before we call it stable. I'd estimate 6 months it'll be stable, but you can probably reliably deploy an app within 3.

bbor#
Fantastic. You’ve got a new user in me, will be porting my AI from next.js asap. Thanks for taking the time!
henning1 reply#
Web apps are complicated because we chose to make them complicated. We started with HTTP headers being sent over a socket and added on infinite layers of shit to "abstract" things. As if hiding what is actually going on is inherently helpful.

Your framework preserves the status quo rather than simplifying it.

nwienert2 replies#
I think people draw the line arbitrarily. Do you know how complex an OS is, a browser, etc. JS is super complicated, so is even CSS.

The iPhone is more “complicated” than an old blackberry, in a way. It’s also way simpler and more useful.
Complicated has nothing to do with amount of features, abstractions, or tech choices. It’s all in the thought and effort put into the final product.
It is harder to pull off with more layers, I hope we can make it work.

v1ne#
I agree, people often underestimate the complexity of a browser and its ecosystem. Yet, I find it valuable that people question the merit of all these additional layers, especially those added by JS frameworks. What do they yield? Do they allow you to more quickly develop an application? Are the applications better than before, by any metric?

I'm pretty sceptical because coming from real-time & desktop programs, I find UX on most web apps I use leaves a lot to be desired: I regularly see state inconsistencies when I go back & forward in my browser, I cause race conditions by quickly editing fields, fight with input validation missing my input, and just die a slow death because the page is just slow. I would have assumed that frameworks existed to remove all these burdens from developers. Yet that such issues persist so stubbornly for over a decade shows to me that somehow, even such simple and recurring tasks as providing and validating forms are not properly solved by those frameworks (or the field is full of people that don't know how to use them properly? Then, why is using them correctly not easier?).

nox101#
So I watched the video on the home page. It made almost zero sense to me. It was all very vague and seemed to be targeted at people who already knew all the product and the problems is solves without needing to be told. if that was the goal then great but maybe another video targeting a wider audience?

I got the point of rails and meteor immediately. it wasn't clear at all if this was even solving similar problems or what

Load more comments