Skip to content

Bun

Bun is a high-performance JavaScript runtime that includes a bundler, test runner, and package manager. Use this component when you want Bun’s fast startup times and all-in-one tooling for web services or utilities. Diploi handles the deployment so you can take advantage of Bun without custom infrastructure.

Paste this entry into the components list in diploi.yaml to add Bun to your project.

components:
- name: Bun
identifier: bun
package: https://github.com/diploi/component-bun#v1.3.8

Launch a trial, no card or registration required https://diploi.com/component/bun

A generic Bun component that can be used to run any JS / TS app.

Uses the official oven/bun Docker image.

  1. In the Dashboard, click Create Project +
  2. Under Pick Components, choose Bun You can add other frameworks from this page if you want to create a monorepo application, eg, Bun for API + React for frontend.
  3. In Pick Add-ons, select any databases you need.
  4. Choose Create Repository, which will generate a new GitHub repo.
  5. Finally, click Launch Stack

Link the guide https://diploi.com/blog/hosting_bun_apps

Will run bun install when component is first initialized, and bun dev when deployment is started.

Will build a production ready image. Image runs bun install & bun run build when being created. Once the image runs, bun start is called.