Back to the blog
BunAIOpen SourceCareer

AI bubble and bailout: what changes if you use Bun

October 31, 2026·6 min read·Diego Horvatti

When the word "bailout" shows up next to "AI" in a US Congress document, any dev paying an API bill should look up. That's what just happened: Representatives Greg Casar and Maxine Waters are leading a Democratic resolution against any public bailout of the AI bubble, and the subject gets closer to your code than it seems. Especially if you use Bun.

What does the resolution against an AI bailout propose?

The core idea fits in one sentence: if the AI bubble bursts, public money shouldn't save big tech, and the priority has to be protecting people. The announcement came from the Congressional Progressive Caucus. It's worth reading the original text to see the exact terms and who signed it.

Two caveats before anyone starts shouting:

  • Nobody has approved a bailout. This is a preventive discussion.
  • Resolutions like this usually stake out a political position. They rarely move money on their own.

So nothing changes in your package.json tomorrow. What stands out is something else: the question "what if it breaks?" has left Twitter and entered the legislature.

Why talk about a bailout now?

The sector is spending at a pace that scares even its fans. The Stargate project alone was announced in January 2025 with a target of up to US$ 500 billion in infrastructure. A good part of that money becomes data centers and GPUs, expensive assets that lose value fast.

In November 2025, OpenAI CFO Sarah Friar mentioned the idea of a government "backstop" for infrastructure financing. The reaction was bad, she walked it back, and Sam Altman said publicly that the company didn't want government guarantees. Even so, the word stayed in the air.

Anyone who lived through 2008 knows the script. TARP authorized up to US$ 700 billion to stabilize the financial system. In 2023, the US government guaranteed Silicon Valley Bank deposits, and many startups only made payroll because of it. "Too big to fail" is an old phrase that learns new tricks every cycle.

I don't know if it's a bubble, and I distrust anyone who claims to know the date it pops. But a contingency plan costs little, and that's what I want to talk about.

What does Bun have to do with the AI bubble?

More than you'd think. In December 2025, Anthropic bought Bun. Claude Code ships as an executable built with Bun, so the deal made sense: the company needed the runtime and brought the team in-house. The project stayed open source, under the MIT license.

At the time, the news was good for Bun users. Before that, the awkward question was how a runtime startup would ever make money. The answer became: now an AI company pays the bills.

But that answer trades one risk for another. Before, Bun depended on Oven's own cash. Today, it depends on the priorities of a company in a sector whose financing has become a topic in Congress.

I'm not predicting that Anthropic will go under or drop the project. I'm saying your runtime now has indirect exposure to the AI market, even if your app never calls a model. That's new, and few people have factored it in.

The MIT license protects the code. It doesn't pay the people who maintain it.

MIT guarantees you can fork. It doesn't guarantee there are people able to maintain a runtime written in Zig, with JavaScriptCore underneath, at today's speed. A fork on GitHub is easy. Maintaining that fork for three years is the real work.

The real risk for your project is price

A runtime dying overnight is the least likely scenario. The more likely one is API prices changing.

Many people suspect part of today's pricing is still subsidized by the race for market share. If money gets expensive, someone will send the bill. And a blocked public bailout, which is what the resolution wants, makes that adjustment more direct.

Run the math with a hypothetical number. Your product makes 1 million calls a month, at US$ 0.002 each. That's US$ 2,000. If the provider doubles the price, it's US$ 4,000, without a single new customer. If your margin was US$ 1,500, you now pay to work.

Now, here's what I'd do in the code, without drama.

How do you protect your Bun stack without rewriting anything?

First, find out how coupled you are. It takes ten seconds:

grep -rnE "Bun\.|bun:" src/ | wc -l

If you get 4, you can switch runtimes in an afternoon. If you get 400, the decision to leave has already been made for you. I still use Bun.serve and bun:sqlite where they make sense. I just keep that usage in a few files, so the rest of the app doesn't know which runtime it's on.

Second, put the model behind a single function:

// ai.ts: the rest of the app only knows this function
type Provider = (prompt: string) => Promise<string>

export async function complete(prompt: string, providers: Provider[]) {
  for (const provider of providers) {
    try {
      return await provider(prompt)
    } catch (err) {
      console.error('provider failed', err)
    }
  }

  throw new Error('no provider responded')
}

It's a few lines, with no framework and no abstraction layer to impress your coworkers. When a provider raises prices or goes down, you change the order of the array. If a vendor's SDK is spread across 60 files, you don't have an integration, you have a marriage without a prenup.

Third, lock what you install:

bun install --frozen-lockfile

This isn't paranoia. With the lockfile committed, CI breaks if someone changes a dependency by accident, and you decide when to update. It also makes sense to pin a known Bun version in your Dockerfile instead of latest.

Finally, track cost per feature. Knowing the total bill was US$ 2,000 doesn't help much. Knowing that the automatic summary eats 70% of it lets you make a decision.

Should I switch from Bun to Node because of this?

No. Switching runtimes over a resolution would be a funny overreaction. Bun is still fast, bun test is still great, and running TypeScript with no config is still one of the best things to happen to my routine.

What changes is how much the question weighs when you choose. For a new API, I'd still go with Bun. For a system that has to last ten years, with a big team and an enterprise contract, I'd have a longer conversation, and Node earns points for its more distributed governance.

What I take from this story

My opinion: whoever pockets the profit on the way up should absorb the loss on the way down. If the bill for the AI bubble lands on taxpayers, the message to the market is terrible, and I side with the resolution on this point. Whether it goes anywhere is another story.

For devs, the message is less political. Every dependency has a balance sheet behind it, and that now includes the runtime. Use Bun, use AI, charge for the value of both. Just keep the exit door unlocked. That's how I try to build my projects.

LinkedIn summary

My runtime now has exposure to the AI market, and almost nobody has factored that in.

The US Congress is already discussing a resolution against a public bailout of the AI bubble. Nobody has approved any bailout, but the question "what if it breaks?" has left Twitter and entered the legislature.

Since Anthropic bought Bun, the runtime depends on the priorities of a company in that sector, even if your app never calls a model.

The MIT license protects the code. It doesn't pay the people who maintain it.

I won't swap Bun for Node because of this. The more likely risk is a different one: API prices go up and your margin disappears without a single new customer.

That's why I keep Bun usage in a few files, put the model behind a single function, lock the lockfile and measure cost per feature.

Use Bun, use AI, just keep the exit door unlocked. I wrote the step by step on the blog, and I'd like to know: how many files would your project have to change to leave?

#Bun #ArtificialIntelligence #JavaScript #Technology #SoftwareDevelopment