GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - brrock/oj-builds: Prebuilt Linux binaries of lovablelabs/oj on npm (@brrock/oj), e.g. for Vercel

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
npm
npm
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

Repository files navigation

@brrock/oj

Prebuilt Linux and macOS (arm64) binaries of oj (lovablelabs' Rust frontend tooling), packaged for npm so it can run where you can't cargo install, like Vercel builds.

Upstream oj only ships to crates.io. This repo builds it from source for each oj release and publishes:

package contents
@brrock/oj the oj command (a small Node launcher)
@brrock/oj-linux-x64-gnu oj for Linux x64, glibc ≥ 2.34
@brrock/oj-linux-arm64-gnu oj for Linux arm64, glibc ≥ 2.34
@brrock/oj-darwin-arm64 oj for macOS arm64 (Apple silicon)

npm installs only the platform package that matches the machine. Linux binaries are built inside amazonlinux:2023, which is Vercel's build image; the macOS one on GitHub's macos-15 runner.

Use on Vercel

npm i -D @brrock/oj
{
  "scripts": {
    "build": "oj build"
  }
}

Set the Vercel project's output directory to dist. Versions match upstream oj versions.

Supported: Linux x64/arm64 and macOS arm64. Elsewhere (Intel Mac, Windows) install oj with cargo install oj --locked; you can point the launcher at any binary with OJ_BINARY_PATH=/path/to/oj.

@brrock/oj depends on [email protected] and sets OJ_VENDORED_ROLLDOWN to it, the same rolldown the upstream nix build vendors for oj's TanStack Start bundles. Set OJ_VENDORED_ROLLDOWN= (empty) to use the app's own rolldown instead.

How releases work

.github/workflows/release.yml runs every 6 hours. When the latest lovablelabs/oj release isn't on npm yet, it:

  1. builds oj for Linux x64 and arm64 in amazonlinux:2023 and for macOS arm64 natively (fat-LTO release build, so expect 1–2 hours),
  2. publishes the platform packages, then @brrock/oj, through npm trusted publishing (OIDC). Provenance is attached automatically and no npm token is stored.

To build a specific version by hand: make release VERSION=0.2.16.

One-time setup

You need npm ≥ 11.10 (for npm trust) and 2FA enabled on your npm account.

make login     # npm login
make setup     # publishes empty 0.0.0 placeholders, then trusts release.yml for each package
make release   # build + publish the latest oj
make watch     # follow the run

Trusted publishing can only be configured on packages that already exist, which is why setup publishes placeholders first. Optionally run make lockdown afterwards to block token-based publishes.

About

Prebuilt Linux binaries of lovablelabs/oj on npm (@brrock/oj), e.g. for Vercel

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.