The CI Challenge: save 10% or get $1,000

Format with bun fmt

Move the format check from oxfmt to bun fmt, the formatter built into bun, as Ramp did for the full CI pipeline of Glass.

How Ramp used this technique

Read what Ramp changed and follow the original sources.

Format with bun fmt

On 20 November 2026 Pontus Abrahamsson, who builds Glass at Ramp, wrote: “Our full CI pipeline is now sub 1 min.” He listed eight changes. The fourth was the formatter: oxfmt -> bun fmt. His prompt gives the step a budget (“Format, under 1 second: `bun fmt`.”), and the pre-commit hooks he shared run the same formatter on staged files with `bun fmt --no-script {staged_files}`. In a tool benchmark he published on 30 November 2026, run on the Supabase codebase, he timed bun fmt at “~130× vs Prettier”. As with every tool in the prompt, old and new run side by side before the switch. The OPT84 recipe describes the same swap procedure for formatters: migrate the config first, then time both tools on the same commit and runner class, and ship a bulk reformat as its own commit.

2026: One of eight changes Pontus Abrahamsson, who builds Glass at Ramp, listed on 20 November 2026 in his post “Our full CI pipeline is now sub 1 min.” Source

Use it when
A pull request job checks formatting with oxfmt or Prettier, and the format step runs on every pull request.
Before applying it
bun fmt has to produce the same formatting as the tool it replaces on this repository, so format the tree with both, diff the results, and ship any bulk reformat as its own commit before removing the old formatter.

Company Playbooks