Y
HN HRCB new | past | comments | ask | show | by right | domains | dashboard | about hrcb
+0.09 How we rebuilt Next.js with AI in one week (blog.cloudflare.com)
287 points by ghostwriternr 3 hours ago | 86 comments on HN | Neutral Editorial · vv3.4 · 2026-02-24
Article Heatmap
Preamble: +0.24 — Preamble P Article 1: +0.16 — Freedom, Equality, Brotherhood 1 Article 2: +0.09 — Non-Discrimination 2 Article 3: 0.00 — Life, Liberty, Security 3 Article 4: 0.00 — No Slavery 4 Article 5: 0.00 — No Torture 5 Article 6: 0.00 — Legal Personhood 6 Article 7: 0.00 — Equality Before Law 7 Article 8: +0.08 — Right to Remedy 8 Article 9: 0.00 — No Arbitrary Detention 9 Article 10: 0.00 — Fair Hearing 10 Article 11: 0.00 — Presumption of Innocence 11 Article 12: -0.31 — Privacy 12 Article 13: +0.16 — Freedom of Movement 13 Article 14: 0.00 — Asylum 14 Article 15: 0.00 — Nationality 15 Article 16: 0.00 — Marriage & Family 16 Article 17: 0.00 — Property 17 Article 18: +0.03 — Freedom of Thought 18 Article 19: +0.39 — Freedom of Expression 19 Article 20: +0.23 — Assembly & Association 20 Article 21: +0.08 — Political Participation 21 Article 22: +0.18 — Social Security 22 Article 23: +0.16 — Work & Equal Pay 23 Article 24: 0.00 — Rest & Leisure 24 Article 25: 0.00 — Standard of Living 25 Article 26: +0.26 — Education 26 Article 27: +0.26 — Cultural Participation 27 Article 28: +0.08 — Social & International Order 28 Article 29: +0.03 — Duties to Community 29 Article 30: 0.00 — No Destruction of Rights 30
Negative Neutral Positive No Data
Aggregates
Weighted Mean +0.09 Unweighted Mean +0.07
Max +0.39 Article 19 Min -0.31 Article 12
Signal 31 No Data 0
Confidence 100% Volatility 0.13 (Low)
Negative 1 Channels E: 0.6 S: 0.4
SETL +0.59 Editorial-dominant
HOTL -0.54 Consensus
Evidence: High: 2 Medium: 8 Low: 6 No Data: 15
Theme Radar
Foundation Security Legal Privacy & Movement Personal Expression Economic & Social Cultural Order & Duties Foundation: 0.16 (3 articles) Security: 0.00 (3 articles) Legal: 0.01 (6 articles) Privacy & Movement: -0.04 (4 articles) Personal: 0.01 (3 articles) Expression: 0.23 (3 articles) Economic & Social: 0.08 (4 articles) Cultural: 0.26 (2 articles) Order & Duties: 0.04 (3 articles)
Domain Context Profile
Element Modifier Affects Note
Privacy -0.15
Article 12
OneTrust consent management and Zaraz tag manager visible in page source; third-party analytics/tracking infrastructure present
Terms of Service
No on-domain ToS observable; deferred to parent domain Cloudflare
Accessibility +0.05
Article 2 Article 27
Semantic HTML structure observed (headings with IDs, navigation); view-transition reduced-motion preference respected; no major accessibility barriers detected in accessible markup
Mission +0.10
Article 19 Article 20
Cloudflare's public mission includes open internet and developer empowerment; content demonstrates transparency in technical development process
Editorial Code
No explicit editorial policy observable on-domain
Ownership +0.05
Article 2 Article 8
Cloudflare is a publicly-traded US company with established legal/corporate governance; no predatory ownership signals
Access Model +0.15
Article 19 Article 27
Content freely accessible, no paywall; open-source project (vinext) linked and promoted; supports developer access to tools and knowledge
Ad/Tracking -0.10
Article 12
Zaraz analytics platform active; Consent-dependent tracking; reduces privacy guarantee but consent mechanism present
HN Discussion 19 top-level comments
htch 2026-02-24 20:28 UTC link
In hindsight, a totally expected achievement given where models are and the high quality tests available, but wildly impressive all the same.

I don’t know what this means but it feels like yet another milestone moment.

switz 2026-02-24 20:58 UTC link
This is pretty fascinating and comes with some complicated AI-world incentives that I've been ruminating on lately. The better you document your work, the stronger contracts you define, the easier it is for someone to clone your work. I wouldn't be surprised if we end up seeing open source commercial work bend towards the SQLite model (open core, private tests). There's no way Cloudflare could have pulled this off without next's very own tests.

Speaking more about the framework itself, the only real conclusion I have here is that I feel server components are a misunderstood and under-utilized pattern and anyone attempting to simplify their DX is a win in my book.

Next is very complex, largely because it has incrementally grown and kept somewhat backwards compatible. A framework that starts from the current API surface and grows can be more malleable and make some tough decisions here at the outset.

Crazy to see it's already being run on a .gov domain[0]. TTFGOV as a new adoption metric?

[0] https://www.cio.gov/

rc1 2026-02-24 21:42 UTC link
> The whole thing cost about $1,100 in tokens.

I like this is called out.

aggregator-ios 2026-02-24 21:45 UTC link
Surprised this didn't get a higher placement on the HN front page, only 34 points?

Absolutely impressive that this was done with $1100 in tokens and in 1 week. I agree, and so do a lot of my peers that code has quickly become nothing more than a tool to accomplish a task. Code never was and never should have been the product in and of itself. This is amazing news, and this is exactly where we should be as a civilization. The only people that have trouble with this development are the gatekeepers who think that code should be sacred and revered by itself. That is a perversion of computing, and we got the wrong group of people there.

While Vercel continues to be the #1 host for Next.js projects, others seem to claim that migrating to their platform is as easy as enabling the Github integration. It's not. Cloudflare even mentions that you can port your Next project to run on its infra, but I couldn't get it to work. Replit markets the same, and yet, Next fails to on there too. You have to go through several painful hacks and try-build-fail loops and eventually not worth it.

You know what took less time and frustration? I asked Claude Code with Opus 4.6 to convert the entire Next project to React+Vite. And as a shameless plug, I was able to get https://jsonquery.app fully up and running and the builds are lightning fast with Vite, and worked with just 2-3 tries on Cloudflare pages. If you don't need SSR and Next routing, I suggest you do the same.

Oh, and in Next.js land, Turbopack had severe edge cases, that I had to revert to Webpack. Esp when dealing with WASM, as JSON Query uses the jq dependency brought in as a wasm to run on the web. This is not an issue with Vite.

bryanrasmussen 2026-02-24 21:49 UTC link
someone spent over 1000 dollars to replicate the functionality of Next.JS, even 1 dollar would seem too much somehow. I suppose that is me being overly retributive.
thawab 2026-02-24 21:56 UTC link
Nextjs had remote code execution vulnerabilities because of how they implemented react server side. I am not touching an AI version without waiting for a while.
troupo 2026-02-24 21:57 UTC link
Here's what is buried a bit in the text:

--- start quote ---

Something like 95% of vinext is pure Vite. The routing, the module shims, the SSR pipeline, the RSC integration: none of it is Cloudflare-specific.

--- end quote ---

The real achievement is human-built Vite (and it is an amazing project).

Since Next.js's API surface and capabilities are known, this is actually quite a good use of AI: re-implement some functionality using a different framework/language/approach. They work rather well with that.

hungryhobbit 2026-02-24 22:07 UTC link
Man, I love Next ... but I also love Vite ... and I hate the Next team, because they focus on fancy new features for 0.1% of their users, at the complete expense of the other 99.9% of the Next community (who they basically ignore).

This gives someone like me everything we want. Better performance is something the Next community has been begging for for years: the Next team ignored them, but not the Cloudflare team. Meanwhile Vite is a better core layer than the garbage the Next people use, but you still get the full Next functionality.

I wish Cloudflare the best of luck with this fork: I hope it succeeds and gets proven so I can use it at my company!

keeganpoppen 2026-02-24 22:08 UTC link
i love how this disintermediates the next.js/vercel axis, which seems to be determined to make basically everything hard except for exactly what they want to do. as much as i love what vercel has done for open source in general (amazing stuff!) it is hard to interpret some of the stuff they do with next as anything other than vendor lock-in bs… the kind that i know is not in their hearts.
evilhackerdude 2026-02-24 22:16 UTC link
> The [next.js] developer experience is top-notch.

let me add my own unqualified statement to that: no.

> Next.js has invested heavily in Turbopack but if you want to deploy it to Cloudflare, Netlify, or AWS Lambda, you have to take that build output and reshape it into something the target platform can actually run.

it's almost as if vercel had some kind of financial incentive to gear this towards their own platform.

> reimplemented the Next.js API surface on Vite directly

a clown car screeches to a halt; several burnt-out-bored oracle vs google lawyers climb out and, weirdly, i am there for it

all in all, it's definitely a good example of something we couldn't have done for $1100 pre-llms, but: should we have? did somebody consult the lava lamps?

jtbaker 2026-02-24 22:23 UTC link
All my homies hate Next.js
ratorx 2026-02-24 22:25 UTC link
I find it interesting that they bought Astro (https://blog.cloudflare.com/astro-joins-cloudflare/), which from my definitely-not-a-frontend-person perspective seems to tackle a similar problem to Next. A month ago.

If it is so cheap to make something that they recommend using (rather than a proof of concept), why buy Astro (presumably it was more expensive than the token cost of this clone?).

One conclusion is that, at the organisational level, it still makes sense to hire the “vision” behind the framework, rather than just clone it. Alternatively, maybe AI has improved that much in 1 month!

theteapot 2026-02-24 22:59 UTC link
> Most abstractions in software exist because humans need help. We couldn't hold the whole system in our heads, so we built layers to manage the complexity for us.

Kind of a sloppy statement, but I don't think it's accurate to say abstraction or layering exists in software just because humans need help comprehending it. Abstractions often exist to capture the essence of some aspect of the real world, and to allow for software reuse. AIs will still find reusing software useful? Secondly, you equate "abstractions" with "layers" which aren't really the same thing. Layers are more about separation of concerns. Maybe it could be argued layering is a type of abstraction.

slopinthebag 2026-02-24 23:02 UTC link
This is probably the most interesting AI experiment I've seen yet. Looking through the codebase has me wondering where all the code is. I don't know if anyone has had the displeasure of going through the next.js codebase, but I estimate it's at least two orders of magnitude more code than this reimplementation. Which makes me wonder, does it actually handle the edge cases or does it just pass the tests.

Like compare the two form implementations for example. Vinext is a completely different implementation compared to what the Next.js version does. Is their behaviour actually the same? The rewrite looks incredibly naive.

https://github.com/vercel/next.js/blob/b8cbaad24ca66ec673a7b...

https://github.com/cloudflare/vinext/blob/main/packages/vine...

Either way, pretty impressive.

cline6 2026-02-24 23:03 UTC link
The article say that "Next.js is well-specified." I... don't think this is actually true. It certainly has lots of documentation, but as has come up time and time again, there are tons of undocumented or poorly documented behaviors that have been the cause of consternation.

So I kinda wonder, did they just create the framework that Next.js claims to be but never has been? And is Next.js without the hidden stuff actually a good framework? Who knows.

moffkalast 2026-02-24 23:12 UTC link
> In early benchmarks, it builds production apps up to 4x faster and produces client bundles up to 57% smaller.

> And we already have customers running it in production.

Wouldn't be like Claude to maybe forget to implement half the library, would it?

I guess they can call themselves Claudeflare now ;)

wewewedxfgdf 2026-02-24 23:23 UTC link
I'm deeply skeptical of the "X reimplemented and it was super easy" thing.

The devil is in the detail.

So many edge cases unlikely to be there.

So many details or fine details unlikely to be there.

Years of bug fixes.

If it is literally a drop in replacement and it passes all the tests, and you're replicating something with and extremely thorough test suite, then sure I'll give you the benefit of the doubt.

Otherwise, I don't believe people "rebuilt X product in a week".

samtheprogram 2026-02-24 23:23 UTC link
The irony of this in the README:

- Node.js production server (vinext start) works for testing but is less complete than Workers deployment. Cloudflare Workers is the primary target.

tills13 2026-02-24 23:34 UTC link
I get the gist here but I hate the tone of these sorts of posts. Imagine being a NextJS developer, pouring your heart and soul into it day after day, knowing the codebase inside and out, and seeing some dude on the Cloudflare blog bragging about how he rewrote your project in a week using AI. It's tone deaf. It's not impressive.

The tool is hella useful. The messaging is ignorant. This should have been a "we built a tool to deploy NextJS on cloudflare natively" instead of this AI brag.

Score Breakdown
+0.24
Preamble Preamble
Medium F: framing of technical development as democratization A: implicit advocacy for open tools and platforms
Editorial
+0.25
Structural
+0.10
SETL
+0.60
Combined
ND
Context Modifier
ND

Content emphasizes human innovation ('one engineer and an AI'), collaborative development, and accessibility. Preamble values recognition via promotion of open-source work and cross-company collaboration. Structural tracking slightly undermines dignity principles.

+0.16
Article 1 Freedom, Equality, Brotherhood
Medium F: human ingenuity and technical equality emphasized
Editorial
+0.20
Structural
+0.10
SETL
+0.50
Combined
ND
Context Modifier
ND

Story of individual engineer achieving significant technical result affirms human dignity and creative capacity. No contradicting signals. Neutral structural baseline.

+0.09
Article 2 Non-Discrimination
Low
Editorial
+0.10
Structural
-0.05
SETL
+1.00
Combined
ND
Context Modifier
ND

No explicit discrimination signals in content. Ownership profile is non-discriminatory (publicly-traded US company). Tracking infrastructure is consent-conditional. No adversarial data.

0.00
Article 3 Life, Liberty, Security
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding right to life, security of person, or bodily integrity. ND.

0.00
Article 4 No Slavery
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable content regarding slavery or servitude. ND.

0.00
Article 5 No Torture
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding torture or cruel/degrading treatment. ND.

0.00
Article 6 Legal Personhood
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding right to recognition as person before law. ND.

0.00
Article 7 Equality Before Law
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding equality before law or equal protection. ND.

+0.08
Article 8 Right to Remedy
Low
Editorial
+0.05
Structural
0.00
SETL
+1.00
Combined
ND
Context Modifier
ND

Publicly-traded company with established legal remedies framework. No predatory practices observable. Neutral structural signals. Limited direct evidence.

0.00
Article 9 No Arbitrary Detention
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding arbitrary arrest or detention. ND.

0.00
Article 10 Fair Hearing
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding fair trial or judicial process. ND.

0.00
Article 11 Presumption of Innocence
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding criminal law or presumption of innocence. ND.

-0.31
Article 12 Privacy
High P: tracking infrastructure (Zaraz, OneTrust) reduces privacy guarantee P: third-party analytics present without explicit user notice in visible content
Editorial
-0.10
Structural
-0.25
SETL
+0.60
Combined
ND
Context Modifier
ND

Privacy actively compromised by visible tracking infrastructure in page source. OneTrust consent layer and Zaraz tag manager enable third-party data collection. Consent-conditional but default tracking posture reduces privacy protection. Domain context profile confirms privacy-invasive practices.

+0.16
Article 13 Freedom of Movement
Medium F: celebration of developer mobility and tool flexibility A: implicit advocacy for freedom of tooling choice
Editorial
+0.20
Structural
+0.10
SETL
+0.50
Combined
ND
Context Modifier
ND

Content explicitly addresses freedom of movement in technical ecosystem: 'drop-in replacement', easy deployment to multiple platforms (Cloudflare Workers, Netlify, AWS Lambda). Supports developer agency. No structural barriers to information access.

0.00
Article 14 Asylum
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding asylum or political persecution. ND.

0.00
Article 15 Nationality
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding nationality or state membership. ND.

0.00
Article 16 Marriage & Family
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding marriage, family, or personal status. ND.

0.00
Article 17 Property
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding property rights or ownership. ND.

+0.03
Article 18 Freedom of Thought
Low
Editorial
+0.05
Structural
0.00
SETL
+1.00
Combined
ND
Context Modifier
ND

No restrictions on thought, conscience, or religion observable. Neutral baseline. Limited direct evidence.

+0.39
Article 19 Freedom of Expression
High F: emphasis on transparency in technical development A: advocacy for open-source knowledge sharing P: public benchmarks and methodology disclosed P: content freely accessible without paywall
Editorial
+0.35
Structural
+0.20
SETL
+0.43
Combined
ND
Context Modifier
ND

Strong positive signal for freedom of opinion and expression. Content explicitly shares technical knowledge ('full methodology and historical results are public'), celebrates open-source collaboration, links to public repository. Promotes information freedom and technical literacy. Structural model (free access, public code) reinforces editorial intent. Domain context confirms commitment to information access.

+0.23
Article 20 Assembly & Association
Medium A: promotion of collaborative ecosystems F: framing of cross-company technical collaboration as positive
Editorial
+0.20
Structural
+0.15
SETL
+0.25
Combined
ND
Context Modifier
ND

Content emphasizes peaceful assembly of ideas and collaboration: 'collaborating with them [Next.js team]', 'multiple providers including us at Cloudflare', public benchmarks enabling community discussion. Supports associational freedom in technical domain. Structural openness reinforces this.

+0.08
Article 21 Political Participation
Low
Editorial
+0.10
Structural
+0.05
SETL
+0.50
Combined
ND
Context Modifier
ND

Indirect signal: content about technical tools accessible to developers implies participation in innovation governance. Limited direct evidence of political participation signals.

+0.18
Article 22 Social Security
Medium F: celebration of technical achievement and developer empowerment A: implicit advocacy for equitable access to tools
Editorial
+0.15
Structural
+0.10
SETL
+0.33
Combined
ND
Context Modifier
ND

Content addresses social security implicitly: free access to powerful tools ('$1,100 in tokens'), developer empowerment, reduced barrier to entry for deployment. 'Drop-in replacement' reduces friction for developers with fewer resources. Accessibility modifier applies.

+0.16
Article 23 Work & Equal Pay
Medium F: celebration of individual engineer's work A: implicit advocacy for fair recognition of labor
Editorial
+0.20
Structural
+0.10
SETL
+0.50
Combined
ND
Context Modifier
ND

Prominent story of individual engineer 'rebuilt the most popular front-end framework from scratch' affirms labor dignity and recognition. Names the contribution explicitly. No exploitative labor signals. Neutral structural baseline (no employment relationship observable).

0.00
Article 24 Rest & Leisure
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding rest, leisure, or working hours. ND.

0.00
Article 25 Standard of Living
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding adequate standard of living, healthcare, or social services. ND.

+0.26
Article 26 Education
Medium A: promotion of technical education and knowledge transfer F: framing of tool accessibility as democratization P: public documentation and tutorials (inferred from standard developer content)
Editorial
+0.25
Structural
+0.15
SETL
+0.40
Combined
ND
Context Modifier
ND

Education signals present: content educates developers on technical alternatives, promotes learning by open-sourcing implementation details, encourages knowledge sharing. Public benchmarks and methodology support educational access. Domain context confirms commitment to developer education.

+0.26
Article 27 Cultural Participation
Medium A: advocacy for accessible innovation F: celebration of cultural/technical achievement P: free tool distribution enables broader participation
Editorial
+0.25
Structural
+0.15
SETL
+0.40
Combined
ND
Context Modifier
ND

Content celebrates technical achievement in participatory context. Open-source model enables broader community participation in cultural/technical evolution. Reduced cost barrier ('$1,100 in tokens' vs. traditional development) supports wider cultural participation. Accessibility modifier applies.

+0.08
Article 28 Social & International Order
Low
Editorial
+0.10
Structural
+0.05
SETL
+0.50
Combined
ND
Context Modifier
ND

Implicit signal: content about accessible technical infrastructure suggests belief in social order supporting human rights. Limited direct evidence of explicit social/international framework commitment.

+0.03
Article 29 Duties to Community
Low
Editorial
+0.05
Structural
0.00
SETL
+1.00
Combined
ND
Context Modifier
ND

No observable signals regarding duties or community obligations. Neutral baseline. Limited evidence.

0.00
Article 30 No Destruction of Rights
Editorial
0.00
Structural
0.00
SETL
ND
Combined
ND
Context Modifier
ND

No observable signals regarding prohibition of rights destruction. ND.

About HRCB | By Right | HN Guidelines | HN FAQ | Source | UDHR
build cf3dcd7+9tle · 2026-02-24 23:19 UTC