Orange Juice: the dev server that speeds up AI agents
Discover how Orange Juice, Lovable’s new open-source compiler, cuts code-generation agent runtime costs by tenfold.
The shift to agent-driven development is putting new pressure on preview infrastructure. A development server designed for a single workstation isn’t necessarily optimized for platforms that create and destroy thousands of sandboxes. With Orange Juice (OJ), Lovable experiments with a response by rebuilding much of that layer in Rust.
Orange Juice (OJ): a development server built for AI agents
Why it matters now: application-generation platforms are multiplying ephemeral preview environments. Lovable says it runs about one million sandboxes per day, making memory and startup time full infrastructure concerns.
The key signal to remember
Lovable is rolling out progressively Orange Juice (OJ), a Rust-native build tool now maintained under an MIT license on Lovable’s GitHub organization. In an experiment on its own previews, the company reports median sandbox acquisition dropping from 14.5s to 3s and a dev-server process using about 6.5× less memory than Node/Vite. Those figures reflect Lovable’s environment and are not universal guarantees for every project.
Contents
- Why this matters now
- What it is
- What you can use it for
- Operational impact and ROI
- How to use it
- Pricing and business model
- Alternatives to consider
- A practical example
- Implementation guide
- Risks and limitations
- Questions to ask before you decide
- The KingLand verdict
- An AI explorer’s perspective
Why this matters now
Software development is undergoing a major shift with agents that can produce many code changes very quickly. This cadence doesn’t replace human development, but it imposes new constraints on environments that must continuously render and validate results. Vite remains a major standard of modern web development and continues to evolve, but Lovable must solve a particular scale problem: the platform claims to launch about one million sandboxes per day.
At that scale, two parameters become especially important: the time needed to make an environment available and the memory held by each dev server. Any footprint reduction can increase the number of previews runnable on the same infrastructure and reduce wait time when opening a project.
The arrival ofOrange Juice (OJ) thus illustrates less a broad abandonment of the JavaScript ecosystem than a specialization of the runtime layer for agentic, multi-tenant environments. Competition now hinges as much on the efficiency of the infrastructure around models as on the language models themselves.
What it is
Orange Juice (OJ) is a Rust-native build tool for React applications, originally developed by Raphael Amorim and later transferred to Lovable’s GitHub organization. It especially optimizes memory and startup times in scenarios where many builds or dev servers run concurrently, notably in CI, for agents, or in multi-tenant environments.
The technology, in brief
OJ is mainly written in Rust and relies notably on Oxc and Rolldown. It can read an existing Vite configuration and run Vite/Rollup plugins via a compatibility layer. Its core engine doesn’t require a JavaScript runtime to drive it, but OJ can spawn a small Node process when plugins or server code need it.
OJ combines file watching, the module graph, compilation, and hot updates in a tightly coordinated pipeline. This architecture suits agents: when an agent changes multiple files in quick succession, OJ can batch those changes so the preview applies a coherent state rather than a sequence of intermediate states.
This approach aims to limit resource consumption and transient states visible during rapid edits, without promising perfect stability or millisecond rebuilds.
What you can use it for
The main benefit ofOrange Juice (OJ) is to reduce the operational weight of development environments that must be created in large numbers. Lovable uses it progressively to speed its previews and reduce their memory footprint in the context of platforms that let you generate complex full-stack applications from natural language.
Concretely, the server addresses the following infrastructure issues:
- Reduced startup times: Benchmarks and experiments published by Lovable show faster startups than Vite across several scenarios, but the exact value varies strongly with project size and configuration.
- Preview coherence during edit bursts: OJ can group multiple edits produced rapidly by an agent to publish a coherent HMR update instead of several partial successive states.
- Reduced memory footprint: This is currently one of OJ’s best-documented advantages. Lovable measures its server at roughly one-third to one-eighth the memory of Vite depending on projects, and about 6.5× less memory for the dev-server process in its production experiment.
By lowering these technical costs, OJ can shorten the loop between code change and application visualization, especially when many environments need to run concurrently.
Operational impact and ROI
Orange Juice’s potential financial appeal comes mainly from lower memory use and faster startups. Lovable does not publish a universal cloud-bill reduction applicable to AWS, GCP, or other providers: the gain depends on sandbox count, lifespan, the app run, and hosting architecture.
For CTOs and VPs of engineering
- Gain: Potential reduction in resources consumed by dev servers when the app and its plugins are compatible with OJ.
- Use: Evaluate OJ for CI environments, agent-driven platforms, or multi-tenant systems where many dev servers are created and destroyed.
For platform architects and DevOps
- Gain: A smaller memory footprint can increase environment density per machine and reduce pressure on the orchestrator.
- Use: Test OJ on a representative sample of existing applications and measure cold start, RSS memory, plugin compatibility, and HMR behavior before any migration.
Resource gains can free budget or capacity, but they must be calculated from production measurements specific to each platform.
How to use it
OJ is publicly available on GitHub and crates.io. Its goal of Vite compatibility lets you start from an existing app rather than rewriting your configuration immediately.
- Installing the CLI: Install OJ currently with
cargo install oj, in accordance with the project’s official quickstart. - Project configuration: OJ can read the
vite.config.tsexisting file and pick up some parameters and plugins; it can also use its own configuration when necessary. - Starting the server: Run
oj devto start the dev server, which currently uses port 5199 by default, oroj buildto produce the build. - Interfacing with your AI agents: No admin port or agent-specific streaming protocol is required by public docs. An agent can modify project files like any other editing tool, while OJ watches those changes and updates the module graph.
Compatibility must be validated project by project, especially when the app uses complex Vite plugins, SSR, or server code.
Pricing and business model
Orange Juice is published under the MIT license. That license permits use, modification, distribution, and integration into commercial products, subject to the copyright and license notices required by the MIT text.
OJ is now maintained by Lovable, which is progressively using the project to optimize its own previews. This development happens in a context where Lovable raised $400 million in a Series C, but no official source indicates that this raise specifically funds OJ.
Lovable has announced no service called "OJ Cloud Link" nor any public managed hosting grid dedicated to OJ as of this check. The project can be used directly as open-source; any future commercial services should be evaluated if officially announced.
Alternatives to consider
OJ does not evolve in a vacuum. The build-tool ecosystem itself is rapidly changing, especially around Rust and other high-performance runtimes.
- Vite: The standard OJ aims to stay compatible with. Vite 8 now uses Rolldown as its bundler and continues its own optimizations, including an experimental development bundle mode for very large apps.
- Rspack: A Rust bundler initially developed to meet large-project constraints at ByteDance. It targets Webpack-ecosystem compatibility and is a relevant alternative for apps whose main problem is large-scale bundling.
- Bun: An alternative JavaScript runtime that includes a package manager, bundler, and server. Its scope is broader than OJ’s; it therefore doesn’t target exactly the same Vite-compatibility and multi-tenant preview problem.
The tradeoff depends mainly on your existing workflow, plugin compatibility, framework used, and the real infrastructure problem you face.
A practical example
To measure Orange Juice concretely, a test bench can simulate rapid file changes similar to those from a code agent. The scenario below is illustrative and was not executed by KingLand.
The prompt / the action
We simulate a code agent editing several dozen React components in an app, then saving those edits in a burst.
The result
OJ is designed to group rapid changes and can hold then publish a coherent HMR update instead of showing each partially modified state. Real timings depend on project and hardware. Official benchmarks, for example, measure HMR generally around a few tens of milliseconds on their synthetic apps, without promising a fixed value for a business application.
What can get stuck
The main risks are compatibility. Some plugins, Node behaviors, Vite configurations, or frameworks may require the Node sidecar or not yet be perfectly reproduced by OJ. These differences should be treated as compatibility limits to test, not as a general inability to handle CommonJS or CSS.
Note: This scenario is illustrative, inspired by mechanisms documented by the project; it is not a KingLand benchmark.
Implementation guide
Deploying Orange Juice should start with compatibility and performance tests on a real application before deciding on a multi-tenant infrastructure.
Phase 1: configuration
Objective: Prepare a local or test environment and verify the app starts correctly under OJ.
- Action: install OJ with
cargo install oj, then run the server from a copy of the target project. - Expected result: the app starts under OJ and main routes, dependencies, and development features remain operational.
Phase 2: first result
Objective: Compare OJ and Vite under the same conditions.
- Action: measure cold start, RSS memory, full reload, and HMR behavior across multiple cycles with the same app.
- Expected result: reproducible measurements let you determine whether OJ gives a meaningful gain in your environment rather than simply adopting Lovable’s published numbers.
Phase 3: deployment
Objective: Evaluate the engine’s value in a multi-tenant or agentic environment.
- Action: progressively deploy a limited number of OJ environments behind your existing orchestrator and compare stability, memory, latency, and compatibility with your current stack.
- Expected result: determine the actual density and savings before wider migration, without assuming a universal reduction factor.
Risks and limitations
OJ can already run real applications and some Lovable previews, but the project is still presented on GitHub as an experimental Rust-native tool. Its primary goal is compatibility with existing Vite apps, and that compatibility is still expanding.
| Key metrics | Vite + Node.js (old world) | Orange Juice (Rust stack) | Industrial gain |
|---|---|---|---|
| Cold start time | Variable by application; 4.9s on Lovable’s synthetic benchmark at 10,000 components published with the announcement | 1.2s on that same benchmark published with the announcement | About 4× on that specific benchmark; production results must be distinguished from this synthetic measurement |
| RAM consumption per instance | More than 1.5 GB on the initial synthetic benchmark at 10,000 components | About 115 MB on that same initial benchmark | A very large gap on this scenario; in Lovable production, the dev-server process is reported to be around 6.5× lighter |
| Plugin compatibility | Vite ecosystem as a reference | Vite/Rollup compatibility layer in active development, with no public coverage percentage | To be tested against the plugins and configurations actually used by the project |
Ideal for: AI-building platforms, CI or multi-tenant environments, and infrastructures that run many dev servers or previews simultaneously.
Watchouts: Compatibility with Vite is a central objective but remains evolving. Some plugins or server uses still need an auxiliary Node process, and Lovable itself is rolling out OJ progressively to detect differences with Vite.
Avoid if: Your application depends heavily on very specific Vite or Node behaviors and you cannot run compatibility tests before migration. For a typical local project already fast under Vite, operational benefit can also be far less dramatic than at Lovable’s scale.
Questions to ask before you decide
[CTO] Is Orange Juice a fork of Vite?
No. OJ is a distinct Rust-native tool that reimplements needed features for targeted apps while aiming to read configurations and run existing Vite plugins. It relies notably on Oxc and Rolldown, two Rust foundations also used in Vite’s current evolution.
[Ops / Product] How does OJ behave under heavy network load?
Public documentation shows OJ integrates its own server, WebSockets, and HMR protocol in the Rust pipeline, but it does not publish a universal guarantee for thousands of concurrent connections per container. This behavior should be tested with your traffic, proxies, and network limits.
[CTO] Can we use existing Vite plugins?
OJ has a persistent Node plugin host and can pick up plugins defined in a vite.config. Compatibility is an explicit project goal and several Vite functions are already covered, but Lovable does not publish a total compatibility percentage. Critical plugins must be validated individually before migration.
[Developer] Is OJ usable for regular local development?
Yes, the repo provides a CLI installable with Cargo and the commands oj dev and oj buildThe project, however, targets situations where memory and cold start are costly, like agents, CI, and multi-tenant. For a local app already performant, the benefit should be measured rather than assumed.
The KingLand verdict
Impact score: 4.5 / 5
Orange Juice provides a concrete answer to a problem that emerges with multiplying ephemeral development environments: each sandbox must be quick to start and, crucially, cheap to keep in memory. Lovable’s early data is impressive and releasing the project under MIT increases its interest beyond the platform itself. OJ remains experimental and its compatibility must be validated before adoption. For architectures that truly run many Vite environments simultaneously, it clearly merits technical evaluation; for others, Vite remains an extremely active ecosystem that is itself being optimized.
An AI explorer’s perspective
Orange Juice highlights an interesting shift in software development: when agents can change many files in seconds, historical assumptions about dev-tool pacing begin to change. Constraints don’t disappear; they shift to the infrastructure’s ability to absorb more edits and more concurrent environments.
Lovable’s strategy is revealing. Rather than treating the language model as the only source of advantage, the company also optimizes the much less visible layers around the agent: sandbox, preview, memory, and feedback loop. It’s likely that platform economics for agentic development will be decided in the combination of model intelligence and infrastructure efficiency.
The most interesting point is not the immediate disappearance of Node.js or Vite. It’s seeing tools explicitly designed for workloads where hundreds or thousands of environments can be ephemeral. If this trend continues, code agents could indeed shape the design of compilers, dev servers, and CI infrastructure as much as they already change how code is produced.