r/reactjs • u/Independent-Cry1829 • Jan 12 '26
Show /r/reactjs I built a new React framework to escape Next.js complexity (1s dev start, Cache-First, Modular, Bun.js optimized)
I've spent the last few years working with Next.js, and while I love the React ecosystem, I’ve felt increasingly bogged down by the growing complexity of the stack—Server Components, the App Router transition, complex caching configurations, and slow dev server starts on large projects.
So, I built JopiJS.
It’s an isomorphic web framework designed to bring back simplicity and extreme performance, specifically optimized for e-commerce and high-traffic SaaS where database bottlenecks are the real enemy.
🚀 Why another framework?
The goal wasn't to compete with the ecosystem size of Next.js, but to solve specific pain points for startups and freelancers who need to move fast and host cheaply.
1. Instant Dev Experience (< 1s Start) No massive Webpack/Turbo compilation step before you can see your localhost. JopiJS starts in under 1second, even with thousands of pages.
2. "Cache-First" Architecture Instead of hitting the DB for every request or fighting with revalidatePath, JopiJS serves an HTML snapshot instantly from cache and then performs a Partial Update to fetch only volatile data (pricing, stock, user info).
Result: Perceived load time is instant.
Infrastructure: Runs flawlessly on a $5 VPS because it reduces DB load by up to 90%.
3. Highly Modular Similar to a "Core + Plugin" architecture (think WordPress structure but with modern React), JopiJS encourages separating features into distinct modules (mod_catalog, mod_cart, mod_user). This clear separation makes navigating the codebase incredibly intuitive—no more searching through a giant components folder to find where a specific logic lives.
4. True Modularity with "Overrides" This is huge for white-labeling or complex apps. JopiJS has a Priority System that allows you to override any part of a module (a specific UI component, a route, or a logic function) from another module without touching the original source code. No more forking libraries just to change one React component.
5. Declarative Security We ditched complex middleware logic for security. You protect routes by simply dropping marker files into your folder structure.
needRole_admin.cond-> Automatically protects the route and filters it from nav menus.No more
middleware.tsspaghetti or fragile regex matchers.
6. Native Bun.js Optimization While JopiJS runs everywhere, it extracts maximum performance from Bun.
x6.5 Faster than Next.js when running on Bun.
x2 Faster than Next.js when running on Node.js.
🤖 Built for the AI Era
Because JopiJS relies on strict filesystem conventions, it's incredibly easy for AI agents (like Cursor or Windsurf) to generate code for it. The structure is predictable, so " hallucinations" about where files should go are virtually eliminated.
Comparison
| Feature | Next.js (App Router) | JopiJS |
|---|---|---|
| Dev Start | ~5s - 15s | 1s |
| Data Fetching | Complex (SC, Client, Hydration) | Isomorphic + Partial Updates |
| Auth/RBAC | Manual Middleware | Declarative Filesystem |
| Hosting | Best on Vercel/Serverless | Optimized for Cheap VPS |
I'm currently finalizing the documentation and beta release. You can check out the docs and get started here: https://jopijs.com
I'd love to hear what you all think about this approach. Is the "Cache-First + Partial Update" model something you've manually implemented before?
Thanks!
17
u/anonyuser415 Jan 13 '26
It’s an isomorphic web framework designed to bring back simplicity
Nothing says simplicity like "isomorphic!"
Highly Modular
True Modularity with "Overrides"
Nothing says simplicity like a highly modular structure and an override system inspired by WordPress!
Instant Dev Experience (< 1s Start) No massive Webpack/Turbo compilation step before you can see your localhost. JopiJS starts in under 1second, even with thousands of pages.
Did you test this with thousands of pages?
The structure is predictable, so " hallucinations" about where files should go are virtually eliminated.
Did you test this?
-4
u/Independent-Cry1829 Jan 13 '26
Simplicity is relative to the use case and the size of the project.
Take a look at the e-commerce site demo that comes with it (run npx jopi init and then choose the demo template). Do the same with another framework and compare: you'll clearly see the difference. With jopijs, you immediately know where everything is, even if it's not your project.
Then, user management, roles, caching, data, Tailwind: everything is integrated and almost transparent; you don't have to do anything. Compare that to NextJS and others, where you have to configure everything manually and rebuild the Lego tower for each project.
-8
u/Independent-Cry1829 Jan 13 '26
Yes, tested with Gemini 3 Pro. It can create a website entirely from start to finish. Make sure to check for the presence of the .agent/ folder to ensure you have the AI learning rules.
3
u/anonyuser415 Jan 13 '26
Cool, thanks.
I’d recommend you not have AI write your claims next time. You haven’t validated the claims you’ve made, which makes you a liar.
This is no different from me saying my JS library is “100x faster” than competitors despite doing no testing to that effect. I would be a liar. This post is you lying.
9
u/CapitalDiligent1676 Jan 12 '26
I still don't understand why you should use NextJS for a SaaS. What advantages does it have over a simple SPA architecture?
3
u/skidmark_zuckerberg Jan 13 '26
Not many I think. I also don’t see widespread adoption at the enterprise level. Most companies seem to stick to React applications that are still built as simple SPAs tailored to specific product needs. Next.js tends to lock you into a Vercel-style deployment model, and its opinionated design can be constraining, whereas a straightforward SPA is more flexible.
0
u/Independent-Cry1829 Jan 13 '26
That's true. I've been using NextJS again (for the documentation site, which uses Fumadoc). What a nightmare to deploy! I simply wanted to generate a static site, but it was impossible.
On that note: static site generation in JopiJS is in development; I've temporarily disabled it because it wasn't quite ready for v3.1 yet. However, I generated it to convert my NextJS site to static (irony).
2
u/CapitalDiligent1676 Jan 13 '26
We had Ruby connecting to the database and a NextJS app.
We removed NextJS, served the FE with a static server, and accessed Ruby with JSON directly from the client.
We achieved a huge increase in speed and code simplification.I have nothing against Vercel, but companies are now demanding NextJS as a hiring skill.
I don't want to learn their tech stack with all the tricks to do things I can do better without.This is really annoying.
1
u/Independent-Cry1829 Jan 13 '26
The early versions of Nextjs were great, then... how to describe it?
5
u/Frexeptabel Jan 12 '26
Gotta admit that this seems well thought out and the docs are well written! Good job on that. One thing I’ve noted is that you use npm as the package manager in the docs. Might make more sense to use bun itself if using bun :) also what’s the reason for the need to run npm install twice?
4
u/Independent-Cry1829 Jan 12 '26
As for bun, there's a bug in the latest version, so I've switched back to npm. Frustrating :-(
For npm twice: it's because it add subproject into workspaces (first npm install), but don't immediatly install his dependencies (it's why it need this second one).
2
u/RoutineKangaroo97 Jan 13 '26
production-ready now?
1
u/Independent-Cry1829 Jan 13 '26
I'm using version 3 (unpublished) in production. For version 3.1, I made many small changes, mostly cosmetic, but also some fundamental performance improvements. I'm testing everything on the included e-commerce project (you can run `npx jopi init` and install it to see for yourself). This project allows me to move beyond simple scenarios and uncover other issues. I've pushed the framework quite hard, and if there are any problems, they're currently related to the automatic restart system in development mode (I've completely rewritten it). Not the core issue. I'm continuing to work on and push the framework to stabilize it as much as possible.
The documentation page displays "beta" at the top. I hope to remove this indicator within two weeks.
Note: Anything not documented is subject to change. This includes the middleware and global cache hook system, which I'm going to simplify.
2
u/juicybot Jan 13 '26
i'm a simple man. i see a post for a new vibe-coded library (complete with a vibe-coded description!) trying to compete with one of the hottest tech companies on the planet, i downvote and move on.
1
u/Independent-Cry1829 Jan 14 '26
You probably have a good technical background, so you likely don't realize how complicated Next.js has become for a beginner.
Also, since you've already worked on a large project with Next.js, or any other framework, you've probably experienced how difficult it is to collaborate with others and train newcomers. Here, Jopijs imposes a structure, without being overly rigid: this greatly helps in keeping track of everything without having to learn the specifics of a project.
These two points are one of my main motivations here: simplicity for beginners, both in terms of learning and integration into an existing project.
... as for "vibe coding": AI documentation, yes, although it only writes the doc while I'm supervising it. It doesn't write the code itself; try doing it with AI and you'll see how impossible it is to have such a system written with AI.
JopiJS is x6.5 faster than NextJS. AI cannot build something so meticulously thought out.
Benchmarks: https://www.youtube.com/watch?v=h7p9FM2uTu4&t=175s1
u/juicybot Jan 14 '26
good luck, truly hope your project takes off. IMO it's unrealistic for any company of a medium-up size to migrate to a project that is so new and maintained by a single person. i would much prefer to provide the engineers in our org who aren't adept to nextjs with the tools needed to get there (articles, video tutorials, pair sessions). not only does that make them a better engineer for us, but it makes them a more desirable engineer across the market because they now have a marketable skillset to put on their resume.
1
u/roggc9 Mar 28 '26
I've built Dinou and it works fine. In Dinou you can call a server function wrapped in Suspense. In Next.js you cannot do that. For this reason I ended up building Dinou.
28
u/heatdeathofpizza Jan 13 '26
Opus is cool huh
1
u/roggc9 Mar 28 '26
Now I use Gemini 3.1 pro, for me it's the best. By the way, in building my own framework for React 19, Dinou, I have not used Opus but of course a lot of other AI's. So you don't use AI? what have you built? are you cinic?
7
u/atrtde Jan 13 '26
Seems fully AI at least docs and this post, that’s not totally an issue tho. But will use TanStack Start anyway.
1
u/roggc9 Mar 28 '26
I have used Dinou to make my own web project (saas). I built Dinou (dinou.dev). It works fine.
4
1
u/csorfab Jan 12 '26
So what happens if the "unchanging" data returned by getDataForCache does change? After all, although products rarely change (in some webshops at least), they do change eventually almost everywhere. What happens then? How would you handle it with this architecture?
-1
u/Independent-Cry1829 Jan 12 '26
getDataForCache --> response is cached inside the html himself and send with the page. Hook usePageData() allows you to get this data.
If you add the getRefreshedData function (optional) --> will automatically be called by the browser (automatic server call) and usePageData() will return the refreshed value1- usePageData() returns result of getDataForCache for the html stored cache
2- getRefreshedData() is automatically call.
3- react refresh
4- now usePageData() returns result from getRefreshedData()(Was that your question?)
1
u/csorfab Jan 13 '26
Not really. What I see as a problem is that your caching solution apparently presupposes that most of the data in getDataForCache doesn't change.
Let's say getDataForCache returns four products
[{ name: "A", ... }, { name: "B", ...}, { name: "C", ... }, { name: "D", ...}]But product "C" is no longer available, so I delete it from the DB. How would you handle this case within your framework so that product "C" won't show up on the site anymore? Do you need to restart the instance? Is there a way to invalidate the getDataForCache cache? Can I represent deletion somehow in getRefreshedData() and brew my own logic there?
1
u/Independent-Cry1829 Jan 13 '26
First, the actual implementation of `getDataForCache` and `getRefreshedData`, including the seed, depends on your strategy: jopijs doesn't impose anything, it provides a tool.
My answer is therefore related to my use case for an e-commerce site: when a product is deleted, or modified with respect to data like its title/image, I remove the associated html pages from the cache. This simultaneously destroys the data cache (the result of `getDataForCache` is stored directly in the HTML, allowing the browser to immediately access this data and perform a very fast initial display).
(all of this is done by my back office, which is specific to my application)
I hope this answers your question. If you have a specific example to suggest, it could help me improve things.
1
u/Independent-Cry1829 Jan 13 '26
Here's an example of how to remove a page (I realize I'm missing some documentation on this):
** File config.ts**
```typescript
import { JopiRouteConfig } from "jopijs";export default function(config: JopiRouteConfig) {
// Here I invalidate the cache every time the admin browser a page.
config.onPage.cache_beforeCheckingCache(async (req) => {if
(req.role_userHasRole("admin")) req.cache_removeFromCache();
})
1
u/Spaceoutpl Jan 12 '26
I see docs about mostly SSR, is there SSG ? print pages and forget about the server ?
1
u/Independent-Cry1829 Jan 12 '26
I've temporarily disabled SSG while I finish a refactoring; it will be back in version 3.2.
The principle is simple: a crawler automatically fetches the site. No declaration is required, except for invisible pages that need to be added. This produces a relocatable site (one that doesn't adhere to a URL).
1
u/prehensilemullet Jan 13 '26
needRole_admin.cond -> Automatically protects the route and filters it from nav menus.
Does this somehow work when a user is an admin of some organizations but not others, if you’re looking at a nav menu for a specific organization’s settings?
1
u/Independent-Cry1829 Jan 13 '26
For each user, you associate a list of roles. For example, a user might have "admin" + "writer" as roles. You define the strategy yourself, whether simple or more elaborate. For instance, you could have "shop.admin" to indicate that they are the admin of the e-commerce section. However, JopiJS distinguishes between "admin" and "shop.admin": `needRole_admin.cond` will not accept "shop.admin"; you will need to add `needRole_shop.admin.cond`.
The same logic applies to your organization: you need to establish a role naming strategy.
1
u/prehensilemullet Jan 13 '26
Are you able to set the role based upon which organization a user is looking at though or does Jopi just accept a single app-wide list of roles for a given user? What if the user is a member of multiple organizations?
1
u/Independent-Cry1829 Jan 13 '26
This case is not natively supported, but can easily be implemented by overriding the function that manages the user/role association. Everything is designed to be easily overridden; if you understand the logic of modules and overriding, you'll see that the authentication module can be completely hacked without even modifying its source code.
1
u/prehensilemullet Jan 13 '26
Ah okay, that’s good there’s an option to do something like that. If everything in the auth module can be overridden that means it’s all public api and any changes to it could break userland overrides. So hopefully you’re planning to bump the major version if you make any changes like that. If not, gotta warn users that it’s upgrade at your own risk if you’re using overrides.
1
u/Independent-Cry1829 Jan 13 '26
Not it's not really public API but possibility to completely replace a function / class / interface / hook by another version.
1
u/prehensilemullet Jan 13 '26 edited Jan 13 '26
I can already use bundler plugins or loader hooks to replace whatever modules of whatever packages I want. But I don’t make a habit of doing that because it’s brittle to upgrade if I’m replacing internal APIs. An override system that doesn’t provide any more stability than that sounds pretty lackluster. Maybe a bit more convenient if I’m going to do the override, but still brittle
1
u/Independent-Cry1829 Jan 14 '26
Imagine a commercial template. The override system allows users to easily customize parts of it without modifying the code: this means the template can be updated without having to revert to previous versions. The same applies to other modules from third parties.
Another scenario: you want to evolve your site but still be able to easily revert to the previous version. Here, you can use override to replace an existing page or a React component... without modifying the original source code and with the ability to revert simply by deactivating the module (using an underscore before its name).
That's the idea behind override. For anything else, it's really at your own risk.
1
u/Vtempero Jan 14 '26
I'd love a candidate explaining to me that he built his own framework. I'd have plenty of questions.
Jk. Make sure you learn along the way while the LLM builds your framework.
1
u/Independent-Cry1829 Jan 14 '26
If you examine the code and its complexity, it's clear that it wasn't written by AI. Although I understand your concerns : since I use AI extensively to write the documentation.
Specifically, at the code level, AI helps me pinpoint certain bugs. For everything else, it's not capable of producing anything sufficiently optimized.
However, JopiJS is 6.5 times faster than NextJS at delivering pages (2 times faster with the Node.js version). Benchmark: https://www.youtube.com/watch?v=h7p9FM2uTu4&t=10s
This benchmark is also available if you run "npx jopi init"; it will prompt you to install the benchmark test used.
1
u/roggc9 Mar 28 '26
I think you are quite cynic. I have also built a React 19 full-stack framework, Dinou. tell me, do you think it can be done by vibe-coding alone and learning in the process? sure you learn, because you face walls and have to circumvent them or find solutions to problems. but it's not so easy. you have to code and work hard, it's not something you can do in a week, at least not in my case. in the future coding will not exist, only we will tell what we want to achieve and AI will make it for us, but now we are not still there. so don't be cynic please and, even if you are, then at least the OP has learned something by "letting the LLM build something" as you say. What have you let your LLM's build for you? anything at all? have you learned anything?
1
u/Vtempero Mar 29 '26
What really is this full stack framework, sprinkling some vite opinions over create vite app? Maybe write a plugin if you are feeling adventurous?
A basic wiring with a external storage that sounds convenient using a lower level API?
Some built in styling setup?
Saying that you built a "full stack framework" that nobody uses sounds cringe, non descriptive, not a real problem. A solution to nobody's problems. Reeks vibe coding.
1
u/roggc9 Mar 29 '26
If it's so easy to build a framework with just vibe-coding as you say, why don't you, or anyone, build one yourself? I think you don't do it, or anyone, because it is not so easy yet and not possible yet with just vibe-coding. But I can tell you, building your own framework it's something cool because you can use it instead of Next.js and it works better for me, in this case Dinou. So your comment is stupid and rubbish. You are criticising something new without knowing it or even tried it. So your comments have no credit. It's the typical reddit comment.
1
u/Vtempero Mar 29 '26
Why don't you contribute with an existing framework? Goo tackle a ticket, report a bug, write a blog post about it.
1
u/roggc9 Mar 29 '26
I am quite happy with the end result of my framework. It fits quite well to what I wanted it for, specifically the way I fetch data from the client using Suspense from react-enhanced-suspense and Server Functions. People from Next.js won't change their framework just for me (but it's true they change their framework a lot, maybe too much for users to keep up with the pace). It has been a nice adventure to build such a framework and have kept me busy. If I have to wait for people from Next.js to change their framework for me, to adjust it to my needs and demands, I will still be waiting. I've contributed to the building shape of Waku, raising issues to the creator, who, I have to say, has responded very quickly. But then I started building my own framework and as I say I am quite proud and happy with the end result. It is also a contribution to the community, if just anyone else wants to try and test it to see if it works for him/her. In essence, I don't see what's wrong in building your own framework or any other contribution to the community and React ecosystem. Should be something to celebrate. I understand there is a learning curve for something new, and this can be the reason behind the criticism. Also the doubts about something new if it is production ready. Anyway, if you want you can stick yourself to Next.js or Tanstack Start or Waku, but you can try Dinou too or JopiJS or Phyre (https://justkelu.github.io/phrye-documentation/) to see if it works and you like it (nobody forces you to use them).
1
u/Smart-Hurry-2333 Jan 14 '26 edited Jan 14 '26
Man an advice, DO NOT show to the public a presentation that is completely AI, i don't know if your framework Is vibecoded (i really hope not), but if u share a post like this i will think that it is. There is no problem to use AI imo, to be honest i'm working on a similar project too, and i use AI, but u need to use AI to understand better what are you doing if u have a knowledge gap or to have some code review in a few second NOT to create something from 0, because you in this post are literally saying, "use my framework instead of Next", and man... You are challenging thousand and thousand of Devs using an AI probably without understanding the internals of your framework yourself.
1
u/Independent-Cry1829 Jan 16 '26
Personally, I don't know of any AI capable of coding such complex and efficient things. AI quickly falls behind as soon as it moves to a higher level of complexity. Personally, it only helps me with documentation: I outline the main points, it writes the rest, explaining it much better than I can, since English isn't my native language.
JopiJS vs. NextJS benchmark, highlighting the 6.5x performance increase, with a good 2x increase for the internal bundler: https://www.youtube.com/watch?v=h7p9FM2uTu4&t=312s
1
u/roggc9 Mar 28 '26
I have also built a React 19 framework, full-stack, Dinou (dinou.dev). Everyone is using AI to build these days. But assuming you do not understand your own framework it is too much. AI still doesn't make a framework from scrach, with a single prompt.
1
u/roggc9 Mar 28 '26
hi the link jopijs.com is not working for me. Just want to say congrats on building your own React framework based on bunjs. Dinou (dinou.dev) it is also another full-stack React 19 framework based on node-express. I built it.
1
u/Independent-Cry1829 Apr 13 '26
Hello, sorry for the link not working anymore. The host server is physically crashed and I need to migrate it on a new one. Congratulation for your project. I'm currently rewriting JopiJS with latest ViteJS version, it's very interesting. Will be happy to discover your project internal. Home made bundler ?
1
u/WintyBadass Jan 12 '26
Hey man. Few years ago I built a proprietary framework that uses very similar modular architecture, just a little bit more advanced and flexible (you can enable/disable modules, configure their order which controls priority, and much more). We've build several very large applications on it, and I gotta say, this style of modularity is one of the best things I ever seen in modern web. So stick with it.
1
u/daftv4der Jan 12 '26
I'm sure I've seen an extremely similar site theme to yours, whether it was an old version of Shuttle or someone else.
I'm interested in the framework tho. I've wanted exactly something like this.
1
u/Brilla-Bose Jan 14 '26
0
u/roggc9 Mar 28 '26
1
1
2
Jan 13 '26
[removed] — view removed comment
1
u/Independent-Cry1829 Jan 13 '26
I needed a simplicity that I couldn't find elsewhere. Simple for small projects. And capable of remaining simple on very large projects, with collaborators of all levels.
1
1
20
u/Im_Working_Right_Now Jan 12 '26
How does this compare to Tanstack Start + Tanstack Query which also caches and revalidates the cache or allows for partial cache updates via query keys?