<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum" -->

---
title: Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI...
description: Lovable is replacing Vite's dev server inside its cloud preview environments with OJ, a Rust-based build tool built to handle roughly one million short-lived...
canonical: https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source | daily.dev
og:description: Lovable is replacing Vite's dev server inside its cloud preview environments with OJ, a Rust-based build tool built to handle roughly one million short-lived...
og:url: https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum
og:image: https://api.daily.dev/og/posts/hxoBsiwUm.png
og:image:alt: Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source

**[Socket](https://daily.dev/sources/socketdev)** · 6 min read · 1 upvotes · 0 comments

## Summary

Lovable is replacing Vite's dev server inside its cloud preview environments with OJ, a Rust-based build tool built to handle roughly one million short-lived sandboxes daily. Lovable reports median sandbox acquisition time dropping from 14.5 seconds to 3 seconds and memory use cut by roughly 6.5x. OJ reuses Vite's own Rolldown and Oxc components but rewrites the dev-server layer (file watcher, module graph, HMR, WebSocket handling) in Rust, running a compatibility bridge for Node-based plugins. Vite creator Evan You disputed some benchmark framing but confirmed the memory gap, and used the release to argue that AI is lowering the cost of reimplementing pieces of open source dependencies, predicting more companies will maintain their own 'tailored' forks rather than contributing upstream, which risks fragmenting fixes and security patches across projects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://socket.dev/blog/oj-vite-rust>

## Questions this post answers

### What performance improvements does Lovable's OJ provide over Vite's dev server?

OJ reduced median sandbox acquisition time from 14.5 seconds to 3 seconds and cut dev-server memory use by roughly 6.5x in Lovable's production rollout. In a synthetic 10,000-component React app, OJ used about 115 MB of memory versus 1.5-1.75 GB for Vite's bundled mode, though cold-start times were much closer once comparing bundled-to-bundled modes (1,315ms vs 1,528ms).

_Anyone comparing Rust-based build tools against Vite can track these benchmarks and follow-ups on daily.dev._

### Is OJ a complete rewrite of Vite in Rust?

No, OJ only rewrites Vite's dev-server layer, including the file watcher, module graph, compiler coordination, hot updates, and WebSocket handling, moving them into a Rust binary. Both OJ and Vite still rely on the same underlying Rolldown bundler and Oxc parser from the VoidZero team. OJ can read an existing vite.config.ts and runs a compatibility bridge, starting a small Node process for JavaScript plugins or server-side modules.

_Developers deciding between build tool rewrites can dig into these architecture details on daily.dev._

### Why does Vite creator Evan You think AI will lead to more companies forking open source dependencies?

Evan You argues that AI collapses the cost of reimplementing parts of open source dependencies, making it easier for companies to build tailored versions optimized for their own workloads instead of submitting changes upstream. He points to TanStack's Redact, a synchronous reimplementation of React's runtime, as a similar 'tailored projection,' and predicts more companies will end up maintaining their own compatible forks within a few years.

_Engineers weighing whether to fork or contribute upstream can follow this debate on daily.dev._

## Similar posts on daily.dev

- [Vite team claims 10-30x faster builds with Rolldown](https://daily.dev/posts/vite-team-claims-10-30x-faster-builds-with-rolldown-mksk39ams) · The Register · 2 upvotes · 0 comments
- [The Pulse: Cloudflare rewrites Next.js as AI rewrites commercial open source](https://daily.dev/posts/the-pulse-cloudflare-rewrites-next-js-as-ai-rewrites-commercial-open-source-2nedvfoud) · The Pragmatic Engineer · 1 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#ai-coding](https://daily.dev/tags/ai-coding), [#vite](https://daily.dev/tags/vite), [#lovable](https://daily.dev/tags/lovable)

[View this post on daily.dev](https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source","url":"https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum"},"datePublished":"2026-09-22T07:47:03.020Z","dateModified":"2026-09-22T18:19:02.685Z","description":"Lovable is replacing Vite's dev server inside its cloud preview environments with OJ, a Rust-based build tool built to handle roughly one million short-lived...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f869ae72d3923b416a3d1e8c827e8081?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f869ae72d3923b416a3d1e8c827e8081?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Socket","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Socket","logo":"https://media.daily.dev/image/upload/s---oEn9czC--/f_auto/v1716187892/logos/socketdev","url":"https://daily.dev/sources/socketdev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"rust,ai-coding,vite,lovable","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Socket","item":"https://daily.dev/sources/socketdev"},{"@type":"ListItem","position":3,"name":"Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/lovable-s-oj-rewrites-vite-s-dev-server-in-rust-as-ai-lowers-the-cost-of-forking-open-source-hxobsiwum#faq","mainEntity":[{"@type":"Question","name":"What performance improvements does Lovable's OJ provide over Vite's dev server?","acceptedAnswer":{"@type":"Answer","text":"OJ reduced median sandbox acquisition time from 14.5 seconds to 3 seconds and cut dev-server memory use by roughly 6.5x in Lovable's production rollout. In a synthetic 10,000-component React app, OJ used about 115 MB of memory versus 1.5-1.75 GB for Vite's bundled mode, though cold-start times were much closer once comparing bundled-to-bundled modes (1,315ms vs 1,528ms). Anyone comparing Rust-based build tools against Vite can track these benchmarks and follow-ups on daily.dev."}},{"@type":"Question","name":"Is OJ a complete rewrite of Vite in Rust?","acceptedAnswer":{"@type":"Answer","text":"No, OJ only rewrites Vite's dev-server layer, including the file watcher, module graph, compiler coordination, hot updates, and WebSocket handling, moving them into a Rust binary. Both OJ and Vite still rely on the same underlying Rolldown bundler and Oxc parser from the VoidZero team. OJ can read an existing vite.config.ts and runs a compatibility bridge, starting a small Node process for JavaScript plugins or server-side modules. Developers deciding between build tool rewrites can dig into these architecture details on daily.dev."}},{"@type":"Question","name":"Why does Vite creator Evan You think AI will lead to more companies forking open source dependencies?","acceptedAnswer":{"@type":"Answer","text":"Evan You argues that AI collapses the cost of reimplementing parts of open source dependencies, making it easier for companies to build tailored versions optimized for their own workloads instead of submitting changes upstream. He points to TanStack's Redact, a synchronous reimplementation of React's runtime, as a similar 'tailored projection,' and predicts more companies will end up maintaining their own compatible forks within a few years. Engineers weighing whether to fork or contribute upstream can follow this debate on daily.dev."}}]}
```

