Introduction to Budibase
Relevant source files
The following files were used as context for generating this wiki page:
Budibase is an open-source, low-code platform designed to save engineers significant time when building internal applications such as forms, admin panels, portals, and approval apps. It enables the creation of performant, responsive single-page applications (SPAs) that can be securely self-hosted or used via Budibase Cloud. The platform is built to be extensible, allowing developers to code against it or fork the repository to make custom changes.
The core philosophy of Budibase is to provide a developer-friendly experience for building business applications. It can connect to a variety of data sources or be used to build applications from scratch. The platform includes powerful pre-made components, workflow automation capabilities, and integrations with popular tools, all manageable from a central administration interface.
Sources: README.md:11-13, README.md:31-33, README.md:37-41
Core Features
Budibase offers a range of features to accelerate the development of internal tools.
| Feature | Description |
|---|---|
| Build Real Applications | Create and ship responsive, performant single-page applications (SPAs) rather than simple forms. |
| Open Source & Extensible | Licensed under GPL v3, allowing for custom modifications and ensuring the platform's longevity. Developers can code against it or fork it. |
| Flexible Data Sources | Pull data from sources like MongoDB, CouchDB, PostgreSQL, MySQL, Airtable, S3, DynamoDB, and REST APIs, or start from scratch with Budibase's internal database. |
| Powerful Components | A library of beautifully designed, pre-made UI components that can be used as building blocks. CSS styling options are also exposed for customization. |
| Automation & Integrations | Automate manual processes and workflows, from connecting to webhooks to sending emails. Integrates with a number of popular tools. |
| Deployment & Security | Offers self-hosting options (Docker, Kubernetes) for full control over infrastructure, user management, SMTP, theming, and security. |
Sources: README.md:28-64, i18n/README.de.md:41-58
Architecture
Budibase is structured as a Lerna monorepo, which helps manage the various packages that constitute the platform. The packages are organized within the packages/ directory and use @budibase/ scoped imports for inter-package communication.
Sources: AGENTS.md:5-7
Monorepo Structure
The architecture separates concerns into backend (Node.js), frontend (browser), and shared packages. This modular design facilitates development and maintenance.
The diagram below illustrates the high-level package categories within the Budibase monorepo.
Sources: AGENTS.md:8-11
Key Packages
The repository is organized into several key packages, each with a specific responsibility.
| Package | Description | Source File |
|---|---|---|
packages/server | A Koa application that serves the JavaScript for the builder and deployed apps. It also provides the API for database and file system interactions. | README.md |
packages/client | A browser-based module that reads a JSON definition to render a live web application. | README.md |
packages/builder | The client-side Svelte application that constitutes the Budibase builder interface. | README.md |
packages/worker | A backend package responsible for handling background jobs and automations. | AGENTS.md |
packages/bbui | A shared component library containing all common Svelte components used across the Budibase platform. | packages/bbui/README.md |
packages/backend-core | Core functionalities shared among backend packages. | AGENTS.md |
packages/frontend-core | Core functionalities shared among frontend packages. | AGENTS.md |
packages/shared-core | A package containing code that can be run in both Node.js and browser environments. | AGENTS.md |
Sources: README.md:136-144, AGENTS.md:5-11, packages/bbui/README.md:3
Data and Integrations
Budibase is designed to connect to your existing data and integrate with other tools through its Public API.
Data Sources
Budibase can connect to a wide array of external data sources as well as its own internal database. Supported sources include:
- MongoDB
- CouchDB
- PostgreSQL
- MariaDB
- MySQL
- Airtable
- S3
- DynamoDB
- REST API
Sources: README.md:37-39
Public API
Budibase provides a public API that enables interoperability and allows Budibase to be used as a backend for other applications. For example, a Next.js application can interact with a Budibase app to perform CRUD operations on a database like PostgreSQL.
The following sequence diagram shows how a Next.js client can interact with the Budibase API.
UI and Component Development
The user interface of Budibase applications and the builder itself is constructed using a shared component library named bbui.
BBUI Component Library
@budibase/bbui is a dedicated package that contains all common Svelte components used across the Budibase ecosystem. It is developed using Svench, a tool for developing components in isolation with HMR (Hot Module Replacement).
Sources: packages/bbui/README.md:3, packages/bbui/README.md:33-34
Creating a New Component
The workflow for creating a new component in the bbui library is straightforward.
The following flowchart outlines the component creation process.
Sources: packages/bbui/README.md:10-15
Deployment
Budibase offers flexible deployment options to suit different needs.
- Budibase Cloud: A hosted solution for getting started quickly without managing infrastructure.
- Self-Hosting: For greater control, Budibase can be self-hosted on your own infrastructure using:
- Docker
- Docker Compose
- Kubernetes (K8s)
- Digital Ocean
- Portainer
Sources: README.md:80-90
Development and Contribution
Budibase welcomes contributions and has established guidelines to ensure code quality and a smooth development process.
Key Commands
- Build:
yarn build - Lint:
yarn lint - Test:
yarn test <filename>(run inside a package directory) - Type Check:
yarn check:types
Sources: AGENTS.md:14-18
Contribution Process
The project uses the C4 (Collective Code Construction Contract) process for contributions. All contributors are encouraged to familiarize themselves with this process. Pull requests should be opened as drafts for human review and the branch should be up-to-date with master.
Sources: packages/builder/CONTRIBUTING.md:7-8, AGENTS.md:50-54
Licensing
Budibase uses a multi-license model to balance open-source principles with business needs.
- The main Budibase platform is licensed under GPL v3.
- The client and component libraries are licensed under MPL (Mozilla Public License), which allows applications built with Budibase to be licensed under different terms.
Sources: README.md:148-150