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.
Add to your project
Section titled “Add to your project”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.8Bun reference
Section titled “Bun reference”Readme
Section titled “Readme”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.
Operation
Section titled “Operation”Getting started
Section titled “Getting started”- In the Dashboard, click Create Project +
- 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.
- In Pick Add-ons, select any databases you need.
- Choose Create Repository, which will generate a new GitHub repo.
- Finally, click Launch Stack
Link the guide https://diploi.com/blog/hosting_bun_apps
Development
Section titled “Development”Will run bun install when component is first initialized, and bun dev when deployment is started.
Production
Section titled “Production”Will build a production ready image. Image runs bun install & bun run build when being created. Once the image runs, bun start is called.