Skip to main content

Onboarding

Bun

Um so, what's Bun?

Bun is an emerging technology that aims to be a drop in replacement for NodeJS with a few favored changes like improved memory management, an incredible developer experience that offers first-class Typescript support, built in bundling, a native SQLite driver, a pnpm-like package manager experience, and many other fun little things.

Setting up Bun

Bun ships as a single executable with no dependencies that can be installed a few different ways via a terminal/CLI.

npm i -g bun

Package Registry Configuration

We utilize our self hosted Forgejo (Git) instance as our package registry and it requires an access token with read:package access.

You can generate a token in the Forgejo on your user settings page under the Access tokens section.

Then, in your .npmrc file (~/.npmrc), add the following:

@sone-works:registry=https://git.sone.dev/api/packages/global/npm/
//git.sone.dev/api/packages/global/npm/:_authToken=<ACCESS_TOKEN>