Building: How to start building an application on Diploi # Using Add-ons > Add-ons are used to host services and databases for projects. ## Add-ons Add-ons provide services used by your application. In general, add-ons in Diploi are services that do not require direct development work, which can be services like databases, analytics services, CMS dashboards, etc. #### Add-ons available [![](https://diploi.b-cdn.net/component/diploi/addon-mariadb/icon.svg?ref=main)**MariaDB**](/building/add-ons/mariadb)[![](https://diploi.b-cdn.net/component/diploi/addon-minio/icon.svg?ref=main)**MinIO**](/building/add-ons/minio)[![](https://diploi.b-cdn.net/component/diploi/addon-mongo/icon.svg?ref=main)**MongoDB**](/building/add-ons/mongo)[![](https://diploi.b-cdn.net/component/diploi/addon-postgres/icon.svg?ref=main)**PostgreSQL**](/building/add-ons/postgres)[![](https://diploi.b-cdn.net/component/diploi/addon-redis/icon.svg?ref=main)**Redis**](/building/add-ons/redis) *** ### MariaDB An open-source relational database forked from MySQL, with additional features and performance improvements. [How to add MariaDB to a project](/building/add-ons/mariadb) [MariaDB add-on repository](https://github.com/diploi/addon-mariadb) *** ### MinIO An S3-compatible object storage service used to save uploads, backups, and other binary data. [How to add MinIO to a project](/building/add-ons/minio) [MinIO add-on repository](https://github.com/diploi/addon-minio) *** ### MongoDB A NoSQL document database that stores data in JSON-like documents. [How to add MongoDB to a project](/building/add-ons/mongo) [MongoDB add-on repository](https://github.com/diploi/addon-mongo) *** ### PostgreSQL An open-source relational database system known for being reliable, and performant handling complex queries and transactions. [How to add PostgreSQL to a project](/building/add-ons/postgres) [PostgreSQL add-on repository](https://github.com/diploi/addon-postgres) *** ### Redis An in-memory data structure store used as a database, cache, and message broker, known for its high speed and support for various data structures. [How to add Redis to a project](/building/add-ons/redis) [Redis add-on repository](https://github.com/diploi/addon-redis) # MariaDB > Provision MariaDB when your Diploi app needs MySQL compatibility. MariaDB is a relational database that’s compatible with MySQL, and adds performance and tooling improvements. You can use MariaDB when your project requires a db compatible with MySQL or if you are migrating existing MySQL workloads. ## Add to your project Paste this entry into the `addons` list in `diploi.yaml` to add MariaDB to your project. ```yaml addons: - name: MariaDB identifier: mariadb package: https://github.com/diploi/addon-mariadb#v1.0.0-url ``` ## MariaDB reference What MariaDB defines in a deployment. ### Environment variables MariaDB sets these values in every deployment. Components can import them with [`env.include`](/reference/diploi-yaml#env) as `mariadb.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Connection** Connection & user configuration. | Variable | Type | Default | Description | | ------------------ | ------- | ----------- | ----------- | | `MARIADB_HOST` | string | *generated* | Host | | `MARIADB_PORT` | integer | `3306` | Port | | `MARIADB_USER` | string | `root` | User | | `MARIADB_PASSWORD` | secret | `root` | Password | | `MARIADB_DATABASE` | string | `app` | Database | | `DATABASE_URL` | string | *generated* | | **Other variables** Set by the package. Override them on the deployment’s **Environment** tab or in `diploi.yaml`. | Variable | Default | | -------------- | ------- | | `MARIADB_USER` | `root` | ## Readme Uses the official [mariadb](https://hub.docker.com/_/mariadb) Docker image. ## See also * [Using Add-ons](/building/add-ons) * [MariaDB add-on repository](https://github.com/diploi/addon-mariadb) * [MariaDB docs](https://mariadb.org/documentation/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # MinIO > Provision MinIO as an S3-compatible Diploi add-on. MinIO is an open-source, S3-compatible, object storage system that you can run in Diploi. Use this add-on when your components need to store uploads, backups, or other binary data without relying on an external cloud bucket. ## Add to your project Paste this entry into the `addons` list in `diploi.yaml` to add MinIO to your project. ```yaml addons: - name: MinIO identifier: minio package: https://github.com/diploi/addon-minio#v2026-10-18 ``` ## MinIO reference What MinIO defines in a deployment. ### Environment variables MinIO sets these values in every deployment. Components can import them with [`env.include`](/reference/diploi-yaml#env) as `minio.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Connection** Root user & connection configuration. | Variable | Type | Default | Description | | --------------------- | ------ | ------------ | ------------- | | `MINIO_HOST` | string | *generated* | Host | | `MINIO_ROOT_USER` | string | `minioadmin` | Root User | | `MINIO_ROOT_PASSWORD` | secret | *generated* | Root Password | **Other variables** Set by the package. Override them on the deployment’s **Environment** tab or in `diploi.yaml`. | Variable | Default | | ---------------- | ----------- | | `MINIO_ENDPOINT` | *generated* | ## Readme S3-compatible object storage for your components. Runs [SILO](https://github.com/pgsty/silo), the community fork of MinIO maintained by Pigsty, from the [pgsty/silo](https://hub.docker.com/r/pgsty/silo) Docker image. MinIO, Inc. no longer publishes a community image, and the `minio/minio` image this addon used to run has been removed from Docker Hub. SILO keeps MinIO’s S3 API, `MINIO_*` variables and data format, so the addon keeps the MinIO name and existing data carries over as it is. ### Connecting from a component Import the variables in your project’s `diploi.yaml`. This example renames them for the AWS SDKs: ```yaml components: - name: Next.js identifier: app package: https://github.com/diploi/component-nextjs#main env: include: - minio.MINIO_ENDPOINT:AWS_ENDPOINT_URL - minio.MINIO_ROOT_USER:AWS_ACCESS_KEY_ID - minio.MINIO_ROOT_PASSWORD:AWS_SECRET_ACCESS_KEY ``` Set the region to `us-east-1` and turn on path-style addressing, `forcePathStyle: true` in the JavaScript SDK. The S3 API is only reachable inside the deployment. To serve files publicly, proxy them through your app or use presigned URLs. ### Console Open the deployment’s **MinIO Console** host and log in with **Root User** and **Root Password** from the Setup tab. The console manages buckets, users, policies and access keys. The root user can do everything. For an app, consider creating an access key with a narrower policy in the console. ### Setup tab | Field | Variable | Description | | ------------- | --------------------- | ---------------------------------------------------- | | Host | `MINIO_HOST` | Internal host name, `minio.`. Read-only. | | Root User | `MINIO_ROOT_USER` | The admin user. Default `minioadmin`. | | Root Password | `MINIO_ROOT_PASSWORD` | The admin password. Generated per project. | `MINIO_ENDPOINT` is also set, to `http://minio.:9000`. Projects that added this addon before the password was generated use `minioadmin` as the password. Change it in the Setup tab. ### Storage Buckets are stored on a persistent 10 GiB volume, mounted at `/data`. ### Upgrading The version is the image tag in [`diploi.yaml`](https://github.com/diploi/addon-minio/blob/main/diploi.yaml). Pin a `RELEASE.*` tag, never `latest`, and read the [SILO release notes](https://github.com/pgsty/silo/releases) before bumping it. ## See also * [Using Add-ons](/building/add-ons) * [MinIO add-on repository](https://github.com/diploi/addon-minio) * [SILO docs](https://silo.pgsty.com/docs/) * [SILO repository](https://github.com/pgsty/silo) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # MongoDB > Attach a MongoDB database to Diploi components. MongoDB is a document database that stores flexible JSON-like records with dynamic schemas. Use this add-on when your application benefits from schema-less data modeling or rapid iteration. ## Add to your project Paste this entry into the `addons` list in `diploi.yaml` to add MongoDB to your project. ```yaml addons: - name: MongoDB identifier: mongo package: https://github.com/diploi/addon-mongo#v8.2.3-url ``` ## MongoDB reference What MongoDB defines in a deployment. ### Environment variables MongoDB sets these values in every deployment. Components can import them with [`env.include`](/reference/diploi-yaml#env) as `mongo.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Connection** Connection configuration. | Variable | Type | Default | Description | | -------------- | ------ | ----------- | ----------- | | `DATABASE_URL` | string | *generated* | | ## Readme Uses the official [mongo](https://hub.docker.com/_/mongo) Docker image. ## See also * [Using Add-ons](/building/add-ons) * [MongoDB add-on repository](https://github.com/diploi/addon-mongo) * [Mongo docs](https://www.mongodb.com/docs/manual/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # PostgreSQL > Provision PostgreSQL as a Diploi add-on for relational data. PostgreSQL is a popular relational database suited for transactional workloads and complex queries. Use this add-on when your application needs structured data storage with ACID guarantees. ## Add to your project Paste this entry into the `addons` list in `diploi.yaml` to add PostgreSQL to your project. ```yaml addons: - name: PostgreSQL identifier: postgres package: https://github.com/diploi/addon-postgres#v18.3-pgvector ``` ## PostgreSQL reference What PostgreSQL defines in a deployment. ### Environment variables PostgreSQL sets these values in every deployment. Components can import them with [`env.include`](/reference/diploi-yaml#env) as `postgres.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Connection** Superuser & connection configuration. | Variable | Type | Default | Description | | ------------------- | ------- | ----------- | ----------- | | `POSTGRES_HOST` | string | *generated* | Host | | `POSTGRES_PORT` | integer | `5432` | Port | | `POSTGRES_USER` | string | `postgres` | User | | `POSTGRES_PASSWORD` | secret | `postgres` | Password | | `POSTGRES_DB` | string | `app` | Database | | `DATABASE_URL` | string | *generated* | | ## Readme Built on the official [postgres](https://hub.docker.com/_/postgres) Docker image, with third-party extensions installed in [`Dockerfile`](https://github.com/diploi/addon-postgres/blob/main/Dockerfile). ### Extensions Extensions are per-database, so enable the ones you need against your own database: ```sql CREATE EXTENSION IF NOT EXISTS vector; -- pgvector CREATE EXTENSION IF NOT EXISTS pg_stat_statements; -- preloaded, ready to enable ``` Everything else below is part of the [contrib](https://www.postgresql.org/docs/current/contrib.html) set that ships with the base image, so it needs no installation — just `CREATE EXTENSION`: | Extension | Use | | ------------------------------------------ | --------------------------------------------------------------------------------------- | | `pg_trgm` | Fuzzy matching; accelerates `ILIKE` and similarity search | | `btree_gin`, `btree_gist` | Mixed-column GIN indexes and exclusion constraints; commonly needed alongside `pg_trgm` | | `unaccent` | Accent-insensitive search | | `citext` | Case-insensitive text, for emails and usernames | | `pgcrypto` | Hashing and encryption functions | | `postgres_fdw`, `dblink` | Cross-database queries | | `pg_buffercache`, `pgstattuple`, `amcheck` | Diagnostics and corruption checking | `uuid-ossp` and `hstore` are available but not recommended for new schemas — `gen_random_uuid()` and `uuidv7()` are built in, and `jsonb` supersedes `hstore`. #### Adding another extension Add the package to [`Dockerfile`](https://github.com/diploi/addon-postgres/blob/main/Dockerfile) and open a PR. The image is built and published by [`.github/workflows/Prebuild.yaml`](https://github.com/diploi/addon-postgres/blob/main/.github/workflows/Prebuild.yaml). Extensions requiring `shared_preload_libraries` must also be added to the `args` list in [`.diploi/helm/postgres.yaml`](https://github.com/diploi/addon-postgres/blob/main/.diploi/helm/postgres.yaml), where `pg_stat_statements` is already preloaded. Treat additions as permanent. Once a deployment runs `CREATE EXTENSION`, removing that extension from the image breaks the database on its next restart, and dropping an entry from `shared_preload_libraries` stops the cluster from starting at all. Extensions are deliberately not user-configurable at deploy time: an arbitrary image reference would let a deployment run a mismatched PostgreSQL major against an existing data directory, which is unrecoverable without a dump and restore. ### Upgrading PostgreSQL majors Bumping the `FROM` tag in [`Dockerfile`](https://github.com/diploi/addon-postgres/blob/main/Dockerfile) changes the major version. PostgreSQL cannot start on a data directory written by a different major, and storage here is persistent, so a major bump requires `pg_dumpall` on the old version followed by a restore into a freshly initialised directory. Downgrades are not possible in place. ## See also * [Using Add-ons](/building/add-ons) * [PostgreSQL add-on repository](https://github.com/diploi/addon-postgres) * [Postgres docs](https://www.postgresql.org/docs/) * [pgvector](https://github.com/pgvector/pgvector) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Redis > Add Redis for caching, queues, and ephemeral data in Diploi. Redis is an in-memory data store ideal for caching, rate limiting, queues, and other latency-sensitive workloads. Choose this add-on when your components need fast key-value access or pub/sub messaging. ## Add to your project Paste this entry into the `addons` list in `diploi.yaml` to add Redis to your project. ```yaml addons: - name: Redis identifier: redis package: https://github.com/diploi/addon-redis#v7.4-url ``` ## Redis reference What Redis defines in a deployment. ### Environment variables Redis sets these values in every deployment. Components can import them with [`env.include`](/reference/diploi-yaml#env) as `redis.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Persistent Storage** Keep a snapshot of the DB on the disk. Optional, off by default. | Variable | Type | Default | Description | | --------------------- | ------- | ----------- | ------------------------ | | `REDIS_SAVE_INTERVAL` | integer | `60` | Save Interval in Seconds | | `REDIS_URL` | string | *generated* | | ## Readme Uses the official [redis](https://hub.docker.com/_/redis) Docker image. ## See also * [Using Add-ons](/building/add-ons) * [Redis add-on repository](https://github.com/diploi/addon-redis) * [Redis docs](https://redis.io/docs/latest/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Connecting via SSH > Diploi utilizes SSH keys for user authentication when establishing SSH connections to deployments. Diploi utilizes SSH keys for user authentication when establishing SSH connections to deployments. This authentication method is commonly employed for remote development connections, such as those established through VS Code. To add an SSH key to your Diploi profile, you must: * Generate an SSH key pair * Copy the public SSH key * Add the copied content of your public SSH in Diploi That’s it 🙂 Let’s go through each step in detail. ## Generate a new SSH Key pair * Linux 1. Open a terminal and run: `ssh-keygen` which generates by default an ed25519 key pair. 2. You will get a message, asking you to assign a name for the key pair. ```bash Generating public/private ed25519 key pair. Enter file in which to save the key (/home//.ssh/id_ed25519): ``` 3. After that, you will be prompted to add a passphrase. ```bash Enter passphrase (empty for no passphrase): Enter the same passphrase again: ``` 4. Now your new key pair is ready, you will see the following message: ```bash Your identification has been saved in Your public key has been saved in someKey.pub The key fingerprint is: SHA256:gBVtt/m4zes+/0SZPkd+1wwo @ The key's randomart image is: +--[ED25519 256]--+ | o.. | | o . | | . . . | | . o o. .| | . S .= o.| | o o= o . B| | . o o .o.E .=*| | =.+o+..o +..=o| | .+B*=.. . ooo+| +----[SHA256]-----+ ``` * Windows 1. Using Git Bash, Terminal or WSL run: `ssh-keygen` which generates by default an ed25519 key pair. 2. You will get a message, asking you to assign a name for the key pair. ```bash Generating public/private ed25519 key pair. Enter file in which to save the key (/home//.ssh/id_ed25519): ``` 3. After that, you will be prompted to add a passphrase. ```bash Enter passphrase (empty for no passphrase): Enter the same passphrase again: ``` 4. Now your new key pair is ready, you will see the following message: ```bash Your identification has been saved in Your public key has been saved in someKey.pub The key fingerprint is: SHA256:gBVtt/m4zes+/0SZPkd+1wwo @ The key's randomart image is: +--[ED25519 256]--+ | o.. | | o . | | . . . | | . o o. .| | . S .= o.| | o o= o . B| | . o o .o.E .=*| | =.+o+..o +..=o| | .+B*=.. . ooo+| +----[SHA256]-----+ ``` * Mac 1. Open Terminal and run: `ssh-keygen` which generates by default an ed25519 key pair. 2. You will get a message, asking you to assign a name for the key pair. ```bash Generating public/private ed25519 key pair. Enter file in which to save the key (/home//.ssh/id_ed25519): ``` 3. After that, you will be prompted to add a passphrase. ```bash Enter passphrase (empty for no passphrase): Enter the same passphrase again: ``` 4. Now your new key pair is ready, you will see the following message: ```bash Your identification has been saved in Your public key has been saved in someKey.pub The key fingerprint is: SHA256:gBVtt/m4zes+/0SZPkd+1wwo @ The key's randomart image is: +--[ED25519 256]--+ | o.. | | o . | | . . . | | . o o. .| | . S .= o.| | o o= o . B| | . o o .o.E .=*| | =.+o+..o +..=o| | .+B*=.. . ooo+| +----[SHA256]-----+ ``` ## Copy the public key generated * Linux 1. ssh-keygen generates two files, one with an extension `.pub` and the other without any extension, eg. `someKey.pub` and `someKey`. The one we need right now is `someKey.pub`, which is your public key. You need to copy the contents of your `.pub` file. You can use the `cat` command: ```bash cat someKey.pub ``` 2. By using `cat` you will print the content of the `someKey.pub` file, it will look like this: ```bash ssh-ed25519 AA786grtyreugigyuwifewy65643354qWrjhBLtBSewyweRTIZw5DqD0zj @ ``` All you need to do is copy the entire output. * Windows 1. ssh-keygen generates two files, one with an extension `.pub` and the other without any extension, eg. `someKey.pub` and `someKey`. The one we need right now is `someKey.pub`, which is your public key. You need to copy the contents of your `.pub` file. You can use the `cat` command: ```bash cat someKey.pub ``` 2. By using `cat` you will print the content of the `someKey.pub` file, it will look like this: ```bash ssh-ed25519 AA786grtyreugigyuwifewy65643354qWrjhBLtBSewyweRTIZw5DqD0zj @ ``` All you need to do is copy the output. * Mac 1. ssh-keygen generates two files, one with an extension `.pub` and the other without any extension, eg. `someKey.pub` and `someKey`. The one we need right now is `someKey.pub`, which is your public key. You need to copy the contents of your `.pub` file. You can use the `cat` command: ```bash cat someKey.pub ``` 2. By using `cat` you will print the content of the `someKey.pub` file, it will look like this: ```bash ssh-ed25519 AA786grtyreugigyuwifewy65643354qWrjhBLtBSewyweRTIZw5DqD0zj @ ``` All you need to do is copy the entire output. ## Add your public key in Diploi Now that you copied the contents of your public key, you need to add it to your Diploi profile: 1. Go to [your profile settings](https://console.diploi.com/settings). 2. Select “Add new SSH key”. 3. Provide a description for your key, such as “Work MacBook,” to help you remember its origin or purpose. 4. Paste your SSH “public key” into the designated field. 5. Click the “Add SSH Key” button. ![Add SSH Key](/_astro/AddSSHKey.CyuoedUv_Z2iUQD9.png) Caution Never share your SSH private key with anyone! This key grants access to any deployment you have privileges for, allowing others to authenticate as you. That’s it! Now you can access your deployments using SSH. # Using Components > Components are the core building block in Diploi. ## Components You can think of components as the application layer of your project. In Diploi you can have multiple options available to define your application, which you can mix as you wish. #### Components available [![](https://diploi.b-cdn.net/component/diploi/component-asp/icon.svg?ref=main)**ASP.NET**](/building/components/asp)[![](https://diploi.b-cdn.net/component/diploi/component-astro/icon.svg?ref=main)**Astro**](/building/components/astro)[![](https://diploi.b-cdn.net/component/diploi/component-blazor/icon.svg?ref=main)**Blazor**](/building/components/blazor)[![](https://diploi.b-cdn.net/component/diploi/component-bun/icon.svg?ref=main)**Bun**](/building/components/bun)[![](https://diploi.b-cdn.net/component/diploi/component-deno/icon.svg?ref=main)**Deno**](/building/components/deno)[![](https://diploi.b-cdn.net/component/diploi/component-django/icon.svg?ref=main)**Django**](/building/components/django)[![](https://diploi.b-cdn.net/component/diploi/component-fastapi/icon.svg?ref=main)**FastAPI**](/building/components/fastapi)[![](https://diploi.b-cdn.net/component/diploi/component-flask/icon.svg?ref=main)**Flask**](/building/components/flask)[![](https://diploi.b-cdn.net/component/diploi/component-ghost/icon.svg?ref=main)**Ghost**](/building/components/ghost)[![](https://diploi.b-cdn.net/component/diploi/component-hono/icon.svg?ref=main)**Hono**](/building/components/hono)[![](https://diploi.b-cdn.net/component/diploi/component-metabase/icon.svg?ref=main)**Metabase**](/building/components/metabase)[![](https://diploi.b-cdn.net/component/diploi/component-n8n/icon.svg?ref=main)**n8n**](/building/components/n8n)[![](https://diploi.b-cdn.net/component/diploi/component-nextjs/icon.svg?ref=main)**Next.js**](/building/components/next)[![](https://diploi.b-cdn.net/component/diploi/component-nodejs/icon.svg?ref=main)**Node.js**](/building/components/node)[![](https://diploi.b-cdn.net/component/diploi/component-python/icon.svg?ref=main)**Python**](/building/components/python)[![](https://diploi.b-cdn.net/component/diploi/component-react-vite/icon.svg?ref=main)**React + Vite**](/building/components/react-vite)[![](https://diploi.b-cdn.net/component/diploi/component-static/icon.svg?ref=main)**Static Website**](/building/components/static)[![](https://diploi.b-cdn.net/component/diploi/component-supabase/icon.svg?ref=main)**Supabase**](/building/components/supabase)[![](https://diploi.b-cdn.net/component/diploi/component-sveltekit/icon.svg?ref=main)**SvelteKit**](/building/components/sveltekit)[![](https://diploi.b-cdn.net/component/diploi/component-tanstack-start/icon.svg?ref=main)**TanStack Start**](/building/components/tanstack-start) *** ### ASP.NET ASP.NET (ASP.NET Core) is an open-source .NET web framework for building web apps and APIs with C#. [How to add ASP.NET to a project](/building/components/asp) [ASP.NET component repository](https://github.com/diploi/component-asp) *** ### Astro A static site builder that lets you write components with a broad selection of frontend frameworks, while optimizing for performance and modern SEO practices. [How to add Astro to a project](/building/components/astro) [Astro component repository](https://github.com/diploi/component-astro) [Tutorial: hosting Astro apps on Diploi](https://diploi.com/blog/hosting_astro_apps) *** ### Blazor The .NET UI framework for building interactive web apps with C# and Razor components, letting you share code across client and server. [How to add Blazor to a project](/building/components/blazor) [Blazor component repository](https://github.com/diploi/component-blazor) *** ### Bun A JavaScript runtime designed to be faster than Node.js, with native bundling, support for TypeScript, and package management support. [How to add Bun to a project](/building/components/bun) [Bun component repository](https://github.com/diploi/component-bun) [Tutorial: hosting Bun apps on Diploi](https://diploi.com/blog/hosting_bun_apps) *** ### Deno A JavaScript and TypeScript runtime for APIs and backend services. [How to add Deno to a project](/building/components/deno) [Deno component repository](https://github.com/diploi/component-deno) [Tutorial: hosting Deno apps on Diploi](https://diploi.com/blog/hosting_deno_apps) *** ### Django A high-level Python web framework for full-stack applications. [How to add Django to a project](/building/components/django) [Django component repository](https://github.com/diploi/component-django) [Django docs](https://docs.djangoproject.com/en/stable/) [Tutorial: hosting Django apps on Diploi](https://diploi.com/blog/hosting_django_apps) *** ### FastAPI A Python framework used to create APIs with automatic documentation. [How to add FastAPI to a project](/building/components/fastapi) [FastAPI component repository](https://github.com/diploi/component-fastapi) [Tutorial: hosting FastAPI apps on Diploi](https://diploi.com/blog/hosting_fastapi_apps) *** ### Flask A minimalist Python framework, designed for lightweight APIs, dashboards, services, and full-stack applications. [How to add Flask to a project](/building/components/flask) [Flask component repository](https://github.com/diploi/component-flask) [Tutorial: hosting Flask apps on Diploi](https://diploi.com/blog/hosting_flask_apps) *** ### Ghost An open-source content management system designed for publishing and managing blogs, online publications or websites. [How to add Ghost to a project](/building/components/ghost) [Ghost component repository](https://github.com/diploi/component-ghost) [Tutorial: hosting a Ghost blog on Diploi](https://diploi.com/blog/hosting_a_ghost_blog) *** ### Hono A small web framework designed to build APIs and backend applications. [How to add Hono to a project](/building/components/hono) [Hono component repository](https://github.com/diploi/component-hono) [Tutorial: hosting Hono apps on Diploi](https://diploi.com/blog/hosting_hono_apps) *** ### Metabase Open source AI analytics you can verify [How to add Metabase to a project](/building/components/metabase) [Metabase component repository](https://github.com/diploi/component-metabase) *** ### n8n A workflow automation platform used to run trigger-driven workloads, using a GUI to set up triggers and workflow logic. [How to add n8n to a project](/building/components/n8n) [n8n component repository](https://github.com/diploi/component-n8n) [Tutorial: hosting n8n on Diploi](https://diploi.com/blog/hosting_n8n) [AI Gateway](/reference/ai-gateway) *** ### Next.js A React-based web development framework for server-side and static web rendering. [How to add Next.js to a project](/building/components/next) [Next.js component repository](https://github.com/diploi/component-nextjs) [Tutorial: hosting Next.js apps on Diploi](https://diploi.com/blog/hosting_nextjs_apps) *** ### Node.js A runtime used to develop backend applications and APIs using JavaScript. [How to add Node.js to a project](/building/components/node) [Node.js component repository](https://github.com/diploi/component-nodejs) [Node.js docs](https://nodejs.org/en/docs) [Tutorial: hosting Node.js apps on Diploi](https://diploi.com/blog/hosting_node_apps) *** ### Python Python [How to add Python to a project](/building/components/python) [Python component repository](https://github.com/diploi/component-python) *** ### React + Vite Mixes Vite's bundling capabilities and React's frontend development capabilities, in a component that requires no configuration and provides instant hot module reload for frontend applications. [How to add React + Vite to a project](/building/components/react-vite) [React + Vite component repository](https://github.com/diploi/component-react-vite) [Tutorial: hosting React apps on Diploi](https://diploi.com/blog/hosting_react_apps) *** ### Static Website Host static websites with Caddy [How to add Static Website to a project](/building/components/static) [Static Website component repository](https://github.com/diploi/component-static) *** ### Supabase An open-source backend platform that bundles multiple services into one, such as Postgres, storage, auth, real-time listeners, and edge functions. [How to add Supabase to a project](/building/components/supabase) [Supabase component repository](https://github.com/diploi/component-supabase) [Tutorial: hosting Supabase on Diploi](https://diploi.com/blog/hosting_supabase) *** ### SvelteKit A framework for building performant web applications with Svelte, offering server-side rendering. [How to add SvelteKit to a project](/building/components/sveltekit) [SvelteKit component repository](https://github.com/diploi/component-sveltekit) [SvelteKit docs](https://svelte.dev/docs/kit/introduction) [Tutorial: hosting Svelte apps on Diploi](https://diploi.com/blog/hosting_svelte_apps) *** ### TanStack Start One Router-first app, from server request to client navigation [How to add TanStack Start to a project](/building/components/tanstack-start) [TanStack Start component repository](https://github.com/diploi/component-tanstack-start) # ASP.NET > Build applications using .NET. ASP.NET is Microsoft’s open-source web framework for building modern, high-performance web apps and APIs with .NET. Choose this component when you’re shipping server-rendered sites, REST backends, or full-stack applications that benefit from the .NET ecosystem and tooling. Diploi handles the build/publish pipeline and runs your ASP.NET app as a service with the runtime and networking it needs. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add ASP.NET to your project. ```yaml components: - name: ASP.NET identifier: asp package: https://github.com/diploi/component-asp#v10.0-05.2026 ``` ## ASP.NET reference ## Readme ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **ASP.NET**. Here you can also add a frontend framework to create a monorepo app 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository** to generate a new GitHub repo 5. Finally, click **Launch Stack** Link to the full guide - upcoming #### Development During development, the container uses `dotnet watch` to enable automatic reloads when files change. The development server is started with: ```sh dotnet watch --no-launch-profile --hot-reload --non-interactive ``` This will: * Use `dotnet watch` to monitor for changes to C# source files and restart the server when changes are detected. * Run the ASP.NET application with hot reload enabled. * Start the app on port 5103. * Avoid using any launch profile so environment variables are controlled by the container. #### Installing Packages **NuGet packages** (C# libraries and frameworks): ```sh dotnet add package ``` For example: ```sh dotnet add package Newtonsoft.Json dotnet add package Microsoft.EntityFrameworkCore.SqlServer ``` > **Important:** After running `dotnet add package `, always run `dotnet build` to resolve new dependency update. #### Production Builds a production-ready image. During the build, dependencies are restored with `dotnet restore` and the application is published with `dotnet publish`. When the container starts, it runs: ```sh dotnet component-asp.dll ``` This uses the compiled .NET application optimized for production deployment. #### Data Protection The application uses ASP.NET Core Data Protection for securing authentication cookies and anti-forgery tokens. In Kubernetes deployments, data protection keys are persisted using a PersistentVolumeClaim to ensure session continuity across pod restarts. ## See also * [Using Components](/building/components) * [ASP.NET component repository](https://github.com/diploi/component-asp) * [ASP.NET on diploi.com](https://diploi.com/component/asp) * [ASP.NET Core documentation](https://docs.microsoft.com/en-us/aspnet/core/) * [.NET documentation](https://docs.microsoft.com/en-us/dotnet/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Astro > Ship Astro sites with Diploi-managed builds and hosting. Astro is a modern static site builder focused on shipping minimal JavaScript to the browser. Choose this component when you are delivering content-heavy marketing sites, blogs, or documentation that benefit from fast page loads. Diploi handles the SSR build pipeline and pushes assets where they need to run. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Astro to your project. ```yaml components: - name: Astro identifier: astro package: https://github.com/diploi/component-astro#v7.3.5 ``` ## Astro reference ## Readme Launch a trial, no account needed Uses the official [node](https://hub.docker.com/_/node) Docker image. Has the [@astrojs/node](https://docs.astro.build/en/guides/integrations-guide/node/) adapter preconfigured in standalone mode. The project uses `output: 'server'`, so pages are rendered on demand, unless a page opts into [prerendering](https://docs.astro.build/en/guides/on-demand-rendering/) with `export const prerender = true`. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Astro** You can add other frameworks from this page if you want to build a monorepo application, eg, Astro for the frontend and Hono for the backend. 3. In **Pick Add-ons**, select any databases or extra tools you need. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** Prefer the full guide? Check #### Package managers Supports **Bun**, **Yarn**, **npm**, and **pnpm**. The package manager is auto-detected from your lockfile (`bun.lock`, `yarn.lock`, `package-lock.json`, or `pnpm-lock.yaml`). The install and build steps always use the detected package manager. #### Development When the component is first initialized, dependencies are installed using the detected package manager. The development server is then started with: ```sh npm run dev -- --host ``` This can be changed with the `containerCommands.developmentStart` field in `diploi.yaml`. #### Production Builds a production-ready image. Image runs `npm install` & `npm run build` when being created, using the detected package manager. `astro build` writes the server to `dist/server/` and the files it serves to `dist/client/`. Once the image runs, `npm start` is called, which starts the standalone server: ```sh node ./dist/server/entry.mjs ``` This can be changed with the `containerCommands.productionStart` field in `diploi.yaml`. ##### ENV Astro reads [environment variables](https://docs.astro.build/en/guides/environment-variables/) at two different times: 1. **When the app is built.** `import.meta.env` values, and [`astro:env`](https://docs.astro.build/en/guides/environment-variables/#type-safe-environment-variables) variables with `access: "public"`, are replaced during the build step. Only variables with the `PUBLIC_` prefix, or `context: "client"` in `astro:env`, reach code that runs in the browser, and everything they contain is visible there. 2. **When the server runs.** Server code, such as pages, endpoints and middleware, can read `process.env` and `astro:env` variables with `access: "secret"` while the server runs. Use these for secrets. We provide two ways to manage the values that are replaced during the build step in production builds: 1. For values that are not deployment-dependent, define them in `diploi.yaml` using the [static import syntax](https://docs.diploi.com/reference/diploi-yaml#env). The values are exposed to the `Dockerfile` as `ARG` variables. 2. For values that depend on a specific deployment (such as variables imported from other components in `diploi.yaml`, or configured in the **Environment** tab), enable the **runtime build** option. To use a variable from another component in your code, import it in `diploi.yaml`. For example, to call a backend with the `api` identifier from server code: ```yaml - name: Astro identifier: astro package: https://github.com/diploi/component-astro#v7.3.5 env: include: - api.APP_INTERNAL_ENDPOINT:API_URL ``` Server code can use the `_INTERNAL_ENDPOINT` address of a component, which stays inside the deployment. Code that runs in the browser needs the public `_ENDPOINT` address, imported under a name with the `PUBLIC_` prefix. ##### Runtime Build When runtime build is enabled (which it is by default), `npm run build` is executed again when the container starts. This ensures that environment variables from the running deployment are correctly applied, and that any data loaded from other components by prerendered pages can use the internal network. If your code only reads deployment-dependent values while the server runs, you can disable runtime build by setting `__VITE_RUNTIME_BUILD` to `false` in `diploi.yaml`: ```yaml - name: Astro identifier: astro package: https://github.com/diploi/component-astro#v7.3.5 env: include: - name: __VITE_RUNTIME_BUILD value: false ``` ##### Ports The component serves on port **4321** in both development and production. If you change it, update all of these so they stay in sync: * `hosts[].port` in `diploi.yaml` * `EXPOSE` and `ENV PORT` in `Dockerfile` and `Dockerfile.dev`. The production server reads `PORT` * `server.port` in `astro.config.mjs`, which the development server uses. It is not set, because 4321 is the Astro default ## See also * [Using Components](/building/components) * [Astro component repository](https://github.com/diploi/component-astro) * [Astro on diploi.com](https://diploi.com/component/astro) * [Tutorial: hosting Astro apps on Diploi](https://diploi.com/blog/hosting_astro_apps) * [Astro documentation](https://docs.astro.build/) * [@astrojs/node documentation](https://docs.astro.build/en/guides/integrations-guide/node/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Blazor > Launching apps powered by Blazor. Blazor is a .NET web UI framework for building interactive web apps using C# and Razor components instead of JavaScript. Choose this component when you’re building dashboards, internal tools, or full-featured web apps where you want to stay in the .NET ecosystem and share code across client and server. Diploi builds your Blazor project and deploys it with the runtime and assets it needs to run. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Blazor to your project. ```yaml components: - name: Blazor identifier: blazor package: https://github.com/diploi/component-blazor#v10.0-05.2026 ``` ## Blazor reference ## Readme ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Blazor**. Here you can also add a backend framework to create a monorepo app 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository** to generate a new GitHub repo 5. Finally, click **Launch Stack** Link to the full guide - upcoming #### Development During development, the container uses `dotnet watch` to enable automatic reloads when files change. The development server is started with: ```sh dotnet watch --no-launch-profile --hot-reload --non-interactive ``` This will: * Use `dotnet watch` to monitor for changes to .cs, .razor, and .css files and restart the server when changes are detected. * Run the Blazor Server application with hot reload enabled. * Start the app on port 5054. * Enable automatic browser refresh when Razor components or CSS files change. #### Installing Packages **Front-end libraries** (CSS/JS frameworks like Bootstrap, jQuery, etc.): First, ensure .NET tools are restored: ```sh dotnet tool restore ``` Then install front-end libraries using LibMan: ```sh dotnet tool run libman install @ --provider cdnjs --destination wwwroot/lib/ ``` For example: ```sh dotnet tool run libman install bootstrap@5.3.0 --provider cdnjs --destination wwwroot/lib/bootstrap dotnet tool run libman install jquery@3.7.1 --provider cdnjs --destination wwwroot/lib/jquery ``` **NuGet packages** (C# libraries and frameworks): ```sh dotnet add package ``` For example: ```sh dotnet add package Newtonsoft.Json dotnet add package Microsoft.EntityFrameworkCore.SqlServer ``` The `libman.json` file manages client-side libraries, while the `.csproj` file tracks NuGet dependencies. Both are automatically restored during development and build. > **Important:** Important: After running dotnet add package , always run dotnet build to resolve new dependency update. #### Production Builds a production-ready image. During the build, dependencies are restored with `dotnet restore` and the application is published with `dotnet publish`. When the container starts, it runs: ```sh dotnet component-blazor.dll ``` This uses the compiled .NET application optimized for production deployment. #### Data Protection The application uses ASP.NET Core Data Protection for securing authentication cookies and anti-forgery tokens. In Kubernetes deployments, data protection keys are persisted using a PersistentVolumeClaim to ensure session continuity across pod restarts. ## See also * [Using Components](/building/components) * [Blazor component repository](https://github.com/diploi/component-blazor) * [Blazor on diploi.com](https://diploi.com/component/blazor) * [Blazor documentation](https://docs.microsoft.com/en-us/aspnet/core/blazor/) * [ASP.NET Core documentation](https://docs.microsoft.com/en-us/aspnet/core/) * [.NET documentation](https://docs.microsoft.com/en-us/dotnet/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Bun > Deploy Bun apps and tooling with Diploi. 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 Paste this entry into the `components` list in `diploi.yaml` to add Bun to your project. ```yaml components: - name: Bun identifier: bun package: https://github.com/diploi/component-bun#v1.3.8 ``` ## Bun reference ## Readme Launch a trial, no card or registration required A generic Bun component that can be used to run any JS / TS app. Uses the official [oven/bun](https://hub.docker.com/r/oven/bun) Docker image. ### Operation #### Getting started 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 #### Development Will run `bun install` when component is first initialized, and `bun dev` when deployment is started. #### 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. ## See also * [Using Components](/building/components) * [Bun component repository](https://github.com/diploi/component-bun) * [Bun on diploi.com](https://diploi.com/component/bun) * [Tutorial: hosting Bun apps on Diploi](https://diploi.com/blog/hosting_bun_apps) * [Bun documentation](https://bun.sh/docs) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Deno > Run Deno apps on Diploi with automated builds and deploys. Deno is a secure JavaScript and TypeScript runtime with batteries-included tooling and standards-based APIs. Use this component when you want Diploi to manage cache-friendly builds and keep Deno services updated without self-hosting. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Deno to your project. ```yaml components: - name: Deno identifier: deno package: https://github.com/diploi/component-deno#v2.7.14 ``` ## Deno reference ## Readme A generic Deno component that can be used to run any Deno app. Uses the official [Deno](https://hub.docker.com/r/denoland/deno) Docker image. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Deno** 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository**, which will generate a new GitHub repo 5. Lastly, click **Launch Stack** Link to guide, explains how to add a custom domain and launch to production #### Development Runs `deno task dev` when deployment is started, which executes your app in watch mode with network and environment variable access: ```sh deno run --watch --allow-net --allow-env src/main.ts ``` No `deno install` is required, as new import in TypeScript files will trigger Deno to automatically download and cache those modules as needed. #### Production Builds a production-ready image. Runs `deno task prod` to start your app with network and environment variable access: ```sh deno run --allow-net --allow-env src/main.ts ``` Dependencies are cached during the build stage using `deno cache .`. ## See also * [Using Components](/building/components) * [Deno component repository](https://github.com/diploi/component-deno) * [Deno on diploi.com](https://diploi.com/component/deno) * [Tutorial: hosting Deno apps on Diploi](https://diploi.com/blog/hosting_deno_apps) * [Deno documentation](https://docs.deno.com/runtime/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Django > Run Django projects on Diploi with managed deploys. Django is a batteries-included Python framework for building secure, database-driven applications. Use this component when you need an admin interface, ORM, and templating system out of the box. Diploi provisions the deployment pipeline so you can focus on models and views instead of infrastructure. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Django to your project. ```yaml components: - name: Django identifier: django package: https://github.com/diploi/component-django#v6.0.7 ``` ## Django reference What Django defines in a deployment. ### Environment variables Django sets these values in every deployment. Other components can import them with [`env.include`](/reference/diploi-yaml#env) as `django.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Secret Key** Django Secret Key. | Variable | Type | Default | Description | | ------------ | ------ | ----------- | ----------- | | `SECRET_KEY` | secret | *generated* | | ## Readme Start a demo, no card required Getting started guide A generic Django component ready to build your Django app. This component was kickstarted running `django-admin startproject djangoapp` and it has `DEBUG=true` inside **settings.py** by default **To secure your Django app,** you must **update your SECRET\_KEY in settings.py** By default all Django apps use SQlite, which you must update to use your database of choice inside **settings.py** Uses the official [astral-sh/uv:3.13-alpine](https://github.com/astral-sh/uv/pkgs/container/uv) Docker image and Django ##### IMPORTANT * You must generate a new SECRET\_KEY for your own application * Remember to update the database settings inside **settings.py** to match your own database config * In production you must remember to update your **settings.py**, by changing `DEBUG=false` and if you want to use external CDNs for your static files, you will need to update the `STATIC_ROOT` * For production and development, you are free to change the app server runner, so for example, if you prefer `uwsgi` you can change it directly on the Dockerfile for production and development * To install new packages, this component uses `uv`, so you can add new packages using `uv add ` ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Django** 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository**, which will generate a new GitHub repo 5. Now click **Launch Stack** #### Development Will run `uv sync` for pyproject.toml or `uv pip install -r requirements.txt` for requirements.txt when component is first initialized, and `uv run python manage.py runserver 0.0.0.0:8000` when deployment is started. #### Production To get all static files, the image runs the command: `uv run --locked --no-dev python manage.py collectstatic --noinput` to get all static files. Lastly, the image will start the production server with the command: `uv run gunicorn djangoapp.wsgi:application --bind 0.0.0.0:8000 --workers 3 --log-level info` #### Common tasks (using uv) * Create a superuser\ `uv run python manage.py createsuperuser` * Run migrations\ `uv run python manage.py migrate` * Switch the database to Postgres instead of SQLite 1. Install the Postgres driver (already present in `pyproject.toml`, but if missing run `uv add "psycopg2-binary"`). 2. In `djangoapp/settings.py`, set `DATABASES["default"]` to read from `DATABASE_URL` (e.g. using `env.dj_db_url` if `environs[django]` is installed). A typical value:\ `postgres://postgres:postgres@postgres.postgres:5432/app` 3. Export `DATABASE_URL` in your environment (or add to `.env`), then run `uv run python manage.py migrate`. * Adjust CSRF trusted origins\ In `djangoapp/settings.py`, the list comes from `CSRF_TRUSTED_ORIGINS` env var. Add hosts as a comma-separated list, e.g.:\ `export CSRF_TRUSTED_ORIGINS="https://example.com,https://admin.example.com"`\ After updating, restart the app so Django picks up the new origins. ## See also * [Using Components](/building/components) * [Django component repository](https://github.com/diploi/component-django) * [Django on diploi.com](https://diploi.com/component/django) * [Django docs](https://docs.djangoproject.com/en/stable/) * [Tutorial: hosting Django apps on Diploi](https://diploi.com/blog/hosting_django_apps) * [Django for production](https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/) * [Django static files](https://docs.djangoproject.com/en/5.2/howto/static-files/) * [SECRET\_KEY in Django](https://docs.djangoproject.com/en/5.2/ref/settings/#std-setting-SECRET_KEY) * [Databases in Django](https://docs.djangoproject.com/en/5.2/ref/databases/) * [Working with multiple databases in Django](https://docs.djangoproject.com/en/5.2/topics/db/multi-db/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # FastAPI > Deploy FastAPI services through Diploi's managed component. FastAPI is a modern, async Python framework that makes it easy to build performant APIs with automatic OpenAPI docs. Use this component when you want Diploi to run uvicorn builds and handle deploys so you can focus on type-safe endpoints and business logic. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add FastAPI to your project. ```yaml components: - name: FastAPI identifier: fastapi package: https://github.com/diploi/component-fastapi#v0.136.1 ``` ## FastAPI reference ## Readme ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **FastAPI**. Here you can also add a frontend framework to create a monorepo app, eg, FastAPI for backend and React+Vite for frontend 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository** to generate a new GitHub repo 5. Finally, click **Launch Stack** Link to the full guide #### Python version The default Python version is **3.12**. You can change it in two ways: * **`PYTHON_VERSION` environment variable** - set this in `diploi.yaml` as a [static ENV](https://docs.diploi.com/reference/diploi-yaml/#static-values) under your component’s environment variables. This controls the version used by both the development and production environments. * **`.python-version` file** - add a `.python-version` file to your component’s folder containing just the version number (e.g. `3.11`). This is the standard convention used by `uv` and other Python tools, and is a good choice if you want the version pinned in your repository. If both are set, the `.python-version` file takes precedence. #### Development The development server is started with: ```sh uv run --with uvicorn uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir src --reload-dir .venv/lib ``` This can be changed with the `containerCommands.developmentStart` field in `diploi.yaml`. #### Production Builds a production-ready image. During the build, dependencies are installed with `uv sync` or `uv pip install`. When the container starts, it runs: ```sh uv run --with uvicorn uvicorn src.main:app --host 0.0.0.0 --port 8000 --proxy-headers ``` This can be changed with the `containerCommands.productionStart` field in `diploi.yaml`. ## See also * [Using Components](/building/components) * [FastAPI component repository](https://github.com/diploi/component-fastapi) * [FastAPI on diploi.com](https://diploi.com/component/fastapi) * [Tutorial: hosting FastAPI apps on Diploi](https://diploi.com/blog/hosting_fastapi_apps) * [FastAPI documentation](https://fastapi.tiangolo.com/) * [Python documentation](https://docs.python.org/) * [uv documentation](https://docs.astral.sh/uv/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Flask > Deploy lightweight Flask services on Diploi without custom infra. Flask is a minimalist Python framework for APIs, dashboards, and microservices. Use this component when you want Diploi to handle the build steps, gunicorn/uvicorn configuration, and deployments while you focus on routes and extensions. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Flask to your project. ```yaml components: - name: Flask identifier: flask package: https://github.com/diploi/component-flask#v3.1.3-05.2026 ``` ## Flask reference ## Readme ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Flask**. Here you can also add a frontend framework to create a monorepo app, eg, Flask for backend and React+Vite for frontend 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository** to generate a new GitHub repo 5. Finally, click **Launch Stack** Full guide at #### Development ```sh uv run flask --app src/main.py run --host=0.0.0.0 --port=8000 --debug ``` This will: * Watch for changes and restart the server automatically * Makes the app available on all network interfaces at port 8000, with debug mode enabled #### Production Builds a production-ready image. During the build, dependencies are installed with `uv sync` or `uv pip install`. When the container starts, it runs: ```sh uv run --frozen gunicorn -w 4 -b 0.0.0.0:8000 src.main:app ``` This uses the Gunicorn to serve your application on port 8000. ## See also * [Using Components](/building/components) * [Flask component repository](https://github.com/diploi/component-flask) * [Flask on diploi.com](https://diploi.com/component/flask) * [Tutorial: hosting Flask apps on Diploi](https://diploi.com/blog/hosting_flask_apps) * [Flask documentation](https://flask.palletsprojects.com/en/stable/) * [Python documentation](https://docs.python.org/) * [uv documentation](https://docs.astral.sh/uv/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Ghost > Host Ghost to publish blogs and newsletters with Diploi. Ghost is an open-source content platform for publishing blogs, newsletters, and membership sites. Use this component when you want Diploi to manage builds and deployments for a Ghost site. It keeps your content workflow together with the infrastructure that serves it. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Ghost to your project. ```yaml components: - name: Ghost identifier: ghost package: https://github.com/diploi/component-ghost#v6.36.0 ``` ## Database Ghost stores its content in MariaDB. When you pick Ghost in the Stack Builder, the [MariaDB add-on](/building/add-ons/mariadb) and the environment variable mapping below are added to your project automatically. If you add Ghost to an existing project by editing `diploi.yaml` yourself, add them too: ```yaml components: - name: Ghost identifier: ghost package: https://github.com/diploi/component-ghost#v6.36.0 env: include: - mariadb.MARIADB_HOST:database__connection__host - mariadb.MARIADB_USER:database__connection__user - mariadb.MARIADB_PASSWORD:database__connection__password addons: - name: MariaDB identifier: mariadb package: https://github.com/diploi/addon-mariadb#v1.0.0-url ``` The mapping is needed because Ghost reads its database settings from `database__connection__*` variables. ## Ghost reference What Ghost defines in a deployment. ### Environment variables Ghost sets these values in every deployment. Other components can import them with [`env.include`](/reference/diploi-yaml#env) as `ghost.*`. Defaults marked *generated* are unique to each deployment. **Other variables** Set by the package. Override them on the deployment’s **Environment** tab or in `diploi.yaml`. | Variable | Default | | -------------------------------- | --------------------- | | `database__client` | `mysql` | | `database__connection__database` | `ghost` | | `storage__active` | `DiploiImagesStorage` | | `storage__media__adapter` | `DiploiMediaStorage` | | `storage__files__adapter` | `DiploiFilesStorage` | ## Readme Start with a free trial, no account required Run [Ghost](https://ghost.org/) on Diploi. Uses the official [ghost](https://hub.docker.com/_/ghost/) Docker image. ### Operation Includes custom storage adapters for Diploi. These save images, files and media to a storage volume that will persist between reboots. This volume can be found at `/data` on the Ghost `app` container. #### Getting started 1. **Sign up** for Diploi at `https://console.diploi.com/` using your GitHub account. 2. In your dashboard, click **Create Project +** 3. Under **Pick Components**, choose **Ghost**\ If you want to expand your Ghost blog with other tools, like a backend framework to add an API, in this section, you can add them. They will all be hosted on a single server, reducing costs and complexity. 4. In **Pick Add-ons**, select any databases or tools you want to include. 5. In **Repository**, choose **Create Repository** which will generate a new GitHub repo for you. 6. Click **Launch Stack** Check the full guide #### Development When running a development environment, Ghost will be run in development mode too. This will allow you to develop custom themes and plugins with ease. To learn more about developing on Ghost, see the [Developing Themes](https://ghost.org/docs/install/local/#developing-themes) section of their docs. #### Production The production image will be an optimized, minimal version with your custom code baked in. Depending on which features you have been working on, you might have to apply them in the Ghost Admin panel (like themes and plugins). ## See also * [Using Components](/building/components) * [Ghost component repository](https://github.com/diploi/component-ghost) * [Ghost on diploi.com](https://diploi.com/component/ghost) * [Tutorial: hosting a Ghost blog on Diploi](https://diploi.com/blog/hosting_a_ghost_blog) * [Ghost documentation](https://ghost.org/docs/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Hono > Deploy lightweight Hono APIs across Diploi’s infrastructure. Hono is a tiny, high-performance web framework tuned for edge and serverless workloads. Choose this component when you need fast APIs or request handlers with minimal overhead. Diploi takes care of packaging and deploying so you can focus on routing and middleware logic. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Hono to your project. ```yaml components: - name: Hono identifier: hono package: https://github.com/diploi/component-hono#v4.12.19 ``` ## Hono reference ## Readme Start a free demo without registering an account Run [Hono](https://hono.dev/) on Diploi. Uses [Bun](https://bun.sh/) to handle dependencies and to run the application. Uses the official [oven/bun](https://hub.docker.com/r/oven/bun) Docker image. ### Operation #### Getting started 1. **Sign up** for a free Diploi account at 2. In the Dashboard, click **Create Project +** 3. Under **Pick Components**, choose **Hono** You can add other frameworks from this page. 4. In **Pick Add-ons**, select any databases or extra tools you need. 5. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 6. Click **Launch Stack** Link to guide #### Development Will run `bun install` when component is first initialized, and `bun dev` when deployment is started. #### 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. ## See also * [Using Components](/building/components) * [Hono component repository](https://github.com/diploi/component-hono) * [Hono on diploi.com](https://diploi.com/component/hono) * [Tutorial: hosting Hono apps on Diploi](https://diploi.com/blog/hosting_hono_apps) * [Hono documentation](https://hono.dev/docs/) * [Bun documentation](https://bun.sh/docs) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Metabase > Open source AI analytics you can verify ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Metabase to your project. ```yaml components: - name: Metabase identifier: metabase package: https://github.com/diploi/component-metabase#v0.65.0.8-beta ``` ## Metabase reference What Metabase defines in a deployment. ### Environment variables Metabase sets these values in every deployment. Other components can import them with [`env.include`](/reference/diploi-yaml#env) as `metabase.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Admin login** The admin user created on the first start. Change both in Metabase afterwards. | Variable | Type | Default | Description | | ------------------------ | ------ | ------------------- | ----------- | | `INITIAL_ADMIN_EMAIL` | string | `admin@example.com` | Email | | `INITIAL_ADMIN_PASSWORD` | secret | *generated* | Password | **Database** Metabase’s own database on the PostgreSQL add-on, and the data it connects to. | Variable | Type | Default | Description | | ------------------------ | ------- | ----------- | -------------------------------------------------------------------------- | | `MB_DB_DBNAME` | string | `metabase` | Database name | | `READER_PASSWORD` | secret | *generated* | The read-only PostgreSQL role Metabase queries the connected database with | | `MB_LOAD_SAMPLE_CONTENT` | boolean | `true` | Include Metabase’s sample database | **Keys** Generated for this project. Never change the encryption key, Metabase could no longer read the connection details it encrypted with it. | Variable | Type | Default | Description | | -------------------------- | ------ | ----------- | ----------------------------- | | `MB_ENCRYPTION_SECRET_KEY` | secret | *generated* | Encryption key | | `MB_SESSION_SECRET_KEY` | secret | *generated* | Changing it logs everyone out | **Metabot** Metabase’s AI assistant, through the Diploi AI proxy. Billed to your account as AI usage. Optional. | Variable | Type | Default | Description | | ------------------------- | ------ | ----------------------------- | --------------------- | | `MB_LLM_METABOT_PROVIDER` | string | `anthropic/claude-sonnet-5-5` | Model | | `MB_LLM_MINI_MODEL` | string | `anthropic/claude-sonnet-5-5` | Model for short tasks | **Prompt tab** Let the agent in the Diploi prompt tab use Metabase’s MCP server, as an admin. Optional. | Variable | Type | Default | Description | | ---------------------- | ------ | ----------- | -------------------------------------------------------------------------------------------------------------- | | `METABASE_AGENT_TOKEN` | secret | *generated* | The OAuth access token the agent reaches the MCP server with. The Diploi core adds it to the agent’s requests. | **Other variables** Set by the package. Override them on the deployment’s **Environment** tab or in `diploi.yaml`. | Variable | Default | | ------------------------------- | ----------------------------------- | | `MB_DB_TYPE` | `postgres` | | `MB_SITE_URL` | *generated* | | `MB_ANON_TRACKING_ENABLED` | `false` | | `MB_CHECK_FOR_UPDATES` | `false` | | `MB_LLM_ANTHROPIC_API_BASE_URL` | `{diploi-ai-gateway-url}/anthropic` | | `MB_LLM_ANTHROPIC_API_KEY` | `{diploi-ai-gateway-token}` | | `MB_LLM_ALLOWED_NETWORKS` | `allow-private` | ## Readme Launch a trial, no account needed Uses the official [metabase/metabase](https://hub.docker.com/r/metabase/metabase) Docker image as it is (Metabase 65). The version is the `images[].image` tag in `diploi.yaml`. Requires **PostgreSQL**, which is included as a Diploi add-on. Metabot, Metabase’s AI assistant, runs on the Diploi AI proxy, so it works without an API key of your own. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Metabase** Add **Odoo** here too if you want to analyze your Odoo data. Metabase connects to it on its first start. 3. In **Pick Add-ons**, PostgreSQL is required and selected by default. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** #### Login Log in with the email and password under **Admin login** in the deployment’s **Setup** tab. The email is `admin@example.com` by default, and the password is generated for every project. Change both in Metabase’s account settings after the first login. The Setup tab’s values are only read on the first start. #### First start A `setup` container runs beside Metabase in its pod. On every start it creates Metabase’s own database (**Database name** in the Setup tab, default `metabase`) on the PostgreSQL add-on if it is missing, and Metabase waits for that. When Metabase first starts on an empty database, the container also sets it up: 1. Waits for Metabase to answer. 2. Creates the admin user from **Admin login**. 3. Looks for an Odoo database on the add-on. If there is one, Metabase connects to it. If not, Metabase connects to the add-on’s own database (`POSTGRES_DB`, default `app`). 4. Creates the `metabase_reader` role, which can read every table in that database but change nothing. Metabase queries the database as this role. Tables the database’s owner creates later are readable too, such as those of a new Odoo module. 5. Creates the API key `Diploi agent` in the Administrators group, which gives the prompt tab’s agent a Metabase user of its own. See [Prompt tab](#prompt-tab). Later starts skip steps 2 to 5. The script comes with the component, so it is updated with the component rather than being frozen in the user project. The `setup` container is a plain Alpine that installs `psql`, `jq` and `curl` when it starts, which takes a few seconds. If the setup fails, the `setup` container’s log says why. Finish it in the browser: Metabase shows its setup wizard while there is no admin user, and databases are added in **Admin > Databases**. #### Odoo Odoo’s tables are in the `public` schema. Fields that Odoo translates, such as product and partner names, are stored as JSON with one value per language, so in SQL read them as `name->>'en_US'`. Metabase checks for Odoo only on its first start. If Odoo was added to the project later, or was still being created at that moment, add it in **Admin > Databases > Add database**. Choose **PostgreSQL**, and use the host and port from `MB_DB_HOST` and `MB_DB_PORT`, and the database name, user and password from the Odoo component’s `DATABASE`, `USER` and `PASSWORD`. #### Metabot Metabot uses the Diploi AI proxy, and its use is billed to your Diploi account as AI usage. It runs on Claude Sonnet 5.5. The AI provider is set through environment variables, so **Admin > AI** shows it as read-only. * The **Metabot** switch in the Setup tab turns all of Metabase’s AI features on or off. Its two fields choose the models. * To use your own Anthropic key instead, set `MB_LLM_ANTHROPIC_API_KEY` to it and `MB_LLM_ANTHROPIC_API_BASE_URL` to `https://api.anthropic.com` in the **Environment** tab. #### Prompt tab The agent in the Diploi prompt tab can use Metabase’s [MCP server](https://www.metabase.com/docs/latest/ai/mcp), so you can ask it to explore your data, answer questions with SQL, and create questions, dashboards, collections and alerts. It acts as the user of the API key `Diploi agent`, which is in the Administrators group. The agent reaches the MCP server with the **Access token** under **Prompt tab** in the Setup tab. The Diploi core adds the token to the agent’s requests, so it never reaches the development environment. Metabase does not issue a token that lasts, so every start writes this one into Metabase’s database, for its OAuth client `Diploi agent`. * **The agent reads data as `metabase_reader`**, like everyone in Metabase, so it cannot change Odoo’s or the add-on’s data. * **To switch its access off**, turn off **Prompt tab** in the Setup tab. The token is revoked, and the API key stays. * **To rotate the token**, change the **Access token**. The old token is revoked. * **To revoke its access inside Metabase**, delete the API key `Diploi agent` in **Admin > Settings > Authentication > API keys**. The token stops working at once. To restore it, create an API key named `Diploi agent` in the Administrators group, and restart the component. #### Storage Metabase keeps all of its data in its PostgreSQL database, so the component has no volumes. Back up the add-on to back up Metabase. #### Setup tab The deployment’s **Setup** tab holds the values a project chooses. Each is also an environment variable of the containers. | Group | Field | Variable | Description | | ----------- | --------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------- | | Admin login | Email | `INITIAL_ADMIN_EMAIL` | Email address of the admin user created on the first start. Default `admin@example.com`. | | Admin login | Password | `INITIAL_ADMIN_PASSWORD` | Password of that user. Generated per project. | | Database | Database name | `MB_DB_DBNAME` | Metabase’s own database on the PostgreSQL add-on. Default `metabase`. | | Database | Reader password | `READER_PASSWORD` | Password of the read-only `metabase_reader` role. Generated per project. Only read on the first start. | | Database | Sample database | `MB_LOAD_SAMPLE_CONTENT` | Include Metabase’s sample database. Default on. | | Keys | Encryption key | `MB_ENCRYPTION_SECRET_KEY` | Encrypts the connection details of the databases Metabase queries. Generated per project. Never change it. | | Keys | Session key | `MB_SESSION_SECRET_KEY` | Signs login sessions. Generated per project. Changing it logs everyone out. | | Metabot | the switch | `MB_AI_FEATURES_ENABLED` | All of Metabase’s AI features. Default on. | | Metabot | Model | `MB_LLM_METABOT_PROVIDER` | The model Metabot runs on. Default `anthropic/claude-sonnet-5-5`. | | Metabot | Model for short tasks | `MB_LLM_MINI_MODEL` | The model for short tasks, such as naming a conversation. Default `anthropic/claude-sonnet-5-5`. | | Prompt tab | the switch | `DIPLOI_AGENT_ENABLED` | Whether the prompt tab’s agent may use Metabase’s MCP server. Default on. | | Prompt tab | Access token | `METABASE_AGENT_TOKEN` | The agent’s access token for the MCP server. Generated per project. | #### Environment variables | Variable | Description | | ------------------------------- | -------------------------------------------------------------------------------------------- | | `MB_SITE_URL` | The public address of Metabase, from the component’s host. Used in links and redirects. | | `MB_LLM_ANTHROPIC_API_BASE_URL` | The Diploi AI proxy, which Metabot calls. | | `MB_LLM_ANTHROPIC_API_KEY` | The deployment’s AI proxy token. | | `MB_LLM_ALLOWED_NETWORKS` | `allow-private`, so that Metabase may call the AI proxy on the deployment’s private network. | | `MB_ANON_TRACKING_ENABLED` | `false`. Metabase sends no usage data. | | `MB_CHECK_FOR_UPDATES` | `false`. Diploi decides the Metabase version. | PostgreSQL connection details (`MB_DB_HOST`, `MB_DB_PORT`, `MB_DB_USER`, `MB_DB_PASS`, `POSTGRES_DB`) come from the PostgreSQL add-on. Any other [Metabase environment variable](https://www.metabase.com/docs/latest/configuring-metabase/environment-variables) can be added in the **Environment** tab. A setting set this way is read-only in Metabase’s admin. #### Development and production Every stage runs the same upstream image, and Metabase serves on port **3000**. There is nothing to build: this folder holds no code, and Metabase is configured in its admin, in the Setup tab and through environment variables. To move to another Metabase version, change the image tag in `diploi.yaml`. The first start migrates Metabase’s database, which can take a few minutes on a small core. The deployment waits for `/api/health` before it sends traffic to a new version. ## See also * [Using Components](/building/components) * [Metabase component repository](https://github.com/diploi/component-metabase) * [Metabase on diploi.com](https://diploi.com/component/metabase) * [Metabase documentation](https://www.metabase.com/docs/latest/) * [Metabase AI settings](https://www.metabase.com/docs/latest/ai/settings) * [Metabase environment variables](https://www.metabase.com/docs/latest/configuring-metabase/environment-variables) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # n8n > Automate workflows with the n8n component managed by Diploi. n8n is a workflow automation platform for connecting APIs, services, and custom logic. Use this component when you need Diploi to build and deploy n8n so you can focus on building workflows, not configuring runtime environments. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add n8n to your project. ```yaml components: - name: n8n identifier: n8n package: https://github.com/diploi/component-n8n#v2.45.6 ``` ## Database n8n stores its data in PostgreSQL. When you pick n8n in the Stack Builder, the [PostgreSQL add-on](/building/add-ons/postgres) and the environment variable mapping below are added to your project automatically. If you add n8n to an existing project by editing `diploi.yaml` yourself, add them too: ```yaml components: - name: n8n identifier: n8n package: https://github.com/diploi/component-n8n#v2.45.6 env: include: - postgres.POSTGRES_HOST:DB_POSTGRESDB_HOST - postgres.POSTGRES_PORT:DB_POSTGRESDB_PORT - postgres.POSTGRES_USER:DB_POSTGRESDB_USER - postgres.POSTGRES_PASSWORD:DB_POSTGRESDB_PASSWORD addons: - name: PostgreSQL identifier: postgres package: https://github.com/diploi/addon-postgres#v18.3-pgvector ``` The mapping is needed because n8n only reads the variable names listed in [its documentation](https://docs.n8n.io/hosting/configuration/environment-variables/database/#postgresql). ## AI models To use Diploi-hosted models in n8n, create an OpenAI credential that points at the AI Gateway: * **Base URL:** `{diploi-ai-gateway-url}/openai/v1` * **API key:** `{diploi-ai-gateway-token}` Inject those placeholders as env vars on the n8n component, then pick a [supported model](/reference/ai-gateway#supported-models). See [AI Gateway](/reference/ai-gateway). ## n8n reference What n8n defines in a deployment. ### Environment variables n8n sets these values in every deployment. Other components can import them with [`env.include`](/reference/diploi-yaml#env) as `n8n.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Admin login** The owner account created on the first start. Change both in n8n afterwards. | Variable | Type | Default | Description | | ------------------------ | ------ | ------------------- | ----------- | | `INITIAL_ADMIN_EMAIL` | string | `admin@example.com` | Email | | `INITIAL_ADMIN_PASSWORD` | secret | *generated* | Password | **Database** n8n’s own database on the PostgreSQL add-on. | Variable | Type | Default | Description | | ------------------------ | ------ | ------- | ------------- | | `DB_POSTGRESDB_DATABASE` | string | `n8n` | Database name | **Keys** Generated for this project. Never change it, n8n could no longer read the credentials it encrypted with it. | Variable | Type | Default | Description | | -------------------- | ------ | ----------- | -------------- | | `N8N_ENCRYPTION_KEY` | secret | *generated* | Encryption key | **Prompt tab** Let the agent in the Diploi prompt tab use n8n’s MCP server, as the owner. Optional. | Variable | Type | Default | Description | | ----------------- | ------ | ----------- | ------------------------------------------------------------------------------------------------- | | `N8N_AGENT_TOKEN` | secret | *generated* | The token the agent reaches the MCP server with. The Diploi core adds it to the agent’s requests. | **Other variables** Set by the package. Override them on the deployment’s **Environment** tab or in `diploi.yaml`. | Variable | Default | | ----------------------------------- | ----------------------------------- | | `DB_TYPE` | `postgresdb` | | `DB_POSTGRESDB_SCHEMA` | `public` | | `TZ` | `UTC` | | `N8N_EDITOR_BASE_URL` | *generated* | | `N8N_WEBHOOK_URL` | *generated* | | `N8N_SAMESITE_COOKIE` | `none` | | `N8N_SECURE_COOKIE` | `true` | | `N8N_VERSION_NOTIFICATIONS_ENABLED` | `false` | | `N8N_MCP_SERVER_RATE_LIMIT` | `0` | | `N8N_DEFAULT_BINARY_DATA_MODE` | `database` | | `N8N_REINSTALL_MISSING_PACKAGES` | `true` | | `N8N_RUNNERS_MODE` | `external` | | `N8N_RUNNERS_AUTH_TOKEN` | *generated* | | `DIPLOI_AI_URL` | `{diploi-ai-gateway-url}/anthropic` | | `DIPLOI_AI_TOKEN` | `{diploi-ai-gateway-token}` | ## Readme Start a demo, no card required Uses the official [n8nio/n8n](https://hub.docker.com/r/n8nio/n8n) Docker image as it is (n8n 2.45). The version is the `images[].image` tag in `diploi.yaml`. Requires **PostgreSQL**, which is included as a Diploi add-on. The AI nodes run on the Diploi AI proxy, so they work without an API key of your own. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **n8n** 3. In **Pick Add-ons**, PostgreSQL is required and selected by default. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** How to add a custom domain and launch to production: #### Login Log in with the email and password under **Admin login** in the deployment’s **Setup** tab. The email is `admin@example.com` by default, and the password is generated for every project. Change both in n8n’s personal settings after the first login. The Setup tab’s values are only read on the first start. #### First start A `setup` container runs beside n8n in its pod. On every start it creates n8n’s own database (**Database name** in the Setup tab, default `n8n`) on the PostgreSQL add-on if it is missing, and n8n waits for that. When n8n first starts on an empty database, the container also creates the owner account from **Admin login**. It switches n8n Assistant off (see [AI](#ai)), and switches on n8n’s MCP server and its **Auto-expose new workflows** setting for the [Prompt tab](#prompt-tab). A deployment set up by an earlier version of this component gets these settings on its next start, unless its owner already chose them. On every start it then gives the prompt tab’s agent its access and writes the **Diploi AI** credential, see [AI](#ai). The script lives in the component’s helm files (`.diploi/helm/app-scripts.yaml`), so it is updated with the component rather than being frozen in the user project. The `setup` container is a plain Alpine that installs `psql`, `jq` and `curl` when it starts, which takes a few seconds. If the setup fails, the `setup` container’s log says why. Finish it in the browser: n8n asks for an owner account while there is none, and the next start does the rest. #### AI The Anthropic credential **Diploi AI** uses the Diploi AI proxy, and its use is billed to your Diploi account as AI usage. Every start writes it with the proxy’s address and the deployment’s token, which changes whenever the deployment starts. Choose it in the Anthropic nodes, such as the Anthropic Chat Model of an AI Agent, and pick a Claude model, such as `claude-sonnet-5-5` or `claude-haiku-5-5`. * **Keep its name.** A start that finds no credential of that name creates a new one, and a start overwrites changes to its key and address. * **To switch it off**, turn off **AI** in the Setup tab. The credential is deleted. * **To use your own Anthropic key**, create an Anthropic credential of your own. **n8n Assistant**, n8n’s own AI chat, is switched off. It needs a code sandbox, which this component does not set up: n8n Sandbox, a privileged Docker-in-Docker container, or the paid Daytona service. Without one, n8n opens the Assistant’s setup instead of the workflows and never opens its chat. Ask the agent in the [Prompt tab](#prompt-tab) to build and fix workflows instead. To use the Assistant with a sandbox of your own, switch it on in n8n’s settings. Its model settings accept an Anthropic credential, such as **Diploi AI**. #### Prompt tab The agent in the Diploi prompt tab can use n8n’s [MCP server](https://docs.n8n.io/advanced-ai/accessing-n8n-mcp-server/), so you can ask it to build, change, test and run workflows. It acts as n8n’s owner. The agent reaches the MCP server with the **Access token** under **Prompt tab** in the Setup tab. The Diploi core adds the token to the agent’s requests, so it never reaches the development environment. Every start writes the token into n8n’s database as the owner’s MCP API key `Diploi agent`. * **The agent sees the workflows that are available in MCP.** New workflows are, and the ones it creates. Switch an older one on in its settings, or in **Settings > Instance-level MCP**. * **To switch its access off**, turn off **Prompt tab** in the Setup tab. The key is deleted. n8n’s MCP server stays on for your own MCP clients: switch it off in **Settings > Instance-level MCP**. * **To rotate the token**, change the **Access token**. * **Rotating the owner’s MCP API key in n8n** deletes the agent’s key too, until the next start writes it again. #### Code node The Code node’s JavaScript and Python run in the pod’s `runners` container, from n8n’s [n8nio/runners](https://hub.docker.com/r/n8nio/runners) image. It starts a runner when a Code node needs one, and stops it when it has been idle for a while. The runners keep n8n’s defaults: Python code cannot import modules, not even from the standard library, and JavaScript code can use `crypto` and `moment`. Allowing more needs a runner configuration of your own, see n8n’s [task runner documentation](https://docs.n8n.io/hosting/configuration/task-runners/). #### Storage n8n keeps all of its data in its PostgreSQL database, so the component has no volumes. Back up the add-on to back up n8n. * **Files** that workflows download or create are stored in PostgreSQL too, up to 512 MB each (`N8N_DEFAULT_BINARY_DATA_MODE` is `database`). n8n deletes them with their executions, which it prunes after 14 days, or beyond 10,000, by default. * **Community nodes** installed in the editor are lost from the disk when n8n restarts, so n8n installs them again from npm every time it starts (`N8N_REINSTALL_MISSING_PACKAGES`), which makes the start a little slower. * n8n’s event log, which it reads to recover executions that were running when it crashed, is lost when it restarts. #### Setup tab The deployment’s **Setup** tab holds the values a project chooses. Each is also an environment variable of the containers. | Group | Field | Variable | Description | | ----------- | -------------- | ------------------------ | ------------------------------------------------------------------------------------------- | | Admin login | Email | `INITIAL_ADMIN_EMAIL` | Email address of the owner account created on the first start. Default `admin@example.com`. | | Admin login | Password | `INITIAL_ADMIN_PASSWORD` | Password of that account. Generated per project. | | Database | Database name | `DB_POSTGRESDB_DATABASE` | n8n’s own database on the PostgreSQL add-on. Default `n8n`. | | Keys | Encryption key | `N8N_ENCRYPTION_KEY` | Encrypts n8n’s credentials. Generated per project. Never change it. | | AI | the switch | `DIPLOI_AI_ENABLED` | The Diploi AI credential, through the Diploi AI proxy. Default on. | | Prompt tab | the switch | `DIPLOI_AGENT_ENABLED` | Whether the prompt tab’s agent may use n8n’s MCP server. Default on. | | Prompt tab | Access token | `N8N_AGENT_TOKEN` | The agent’s token for the MCP server. Generated per project. | #### Environment variables | Variable | Description | | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `N8N_EDITOR_BASE_URL`, `N8N_WEBHOOK_URL` | The public address of n8n, from the component’s host. Used in links, OAuth and webhook URLs. | | `N8N_SECURE_COOKIE`, `N8N_SAMESITE_COOKIE` | `true` and `none`: browsers send the login cookie over HTTPS only, also to n8n embedded in another site. | | `N8N_VERSION_NOTIFICATIONS_ENABLED` | `false`. Diploi decides the n8n version. | | `N8N_MCP_SERVER_RATE_LIMIT` | `0`. Every request of the prompt tab’s agent comes from the Diploi core’s address, which n8n’s limit per address would throttle. | | `N8N_DEFAULT_BINARY_DATA_MODE`, `N8N_REINSTALL_MISSING_PACKAGES` | `database` and `true`, see [Storage](#storage). | | `N8N_RUNNERS_MODE`, `N8N_RUNNERS_AUTH_TOKEN` | `external`, and a token generated per project: the [Code node](#code-node) runs in the `runners` container, which signs in to n8n with the token. | | `DIPLOI_AI_URL`, `DIPLOI_AI_TOKEN` | The Diploi AI proxy, and the deployment’s token for it, which changes whenever the deployment starts. | | `DB_TYPE`, `DB_POSTGRESDB_SCHEMA`, `TZ` | `postgresdb`, `public` and `UTC`. | PostgreSQL connection details (`DB_POSTGRESDB_HOST`, `DB_POSTGRESDB_PORT`, `DB_POSTGRESDB_USER`, `DB_POSTGRESDB_PASSWORD`) come from the PostgreSQL add-on. Any other [n8n environment variable](https://docs.n8n.io/hosting/configuration/environment-variables/) can be added in the **Environment** tab. #### Development and production Every stage runs the same upstream image, and n8n serves on port **5678**. There is nothing to build: this folder holds no code, and n8n is configured in its editor, in the Setup tab and through environment variables. To move to another n8n version, change the image tag in `diploi.yaml`, and the `n8nio/runners` tag in `.diploi/helm/app.yaml` to the same version. The first start migrates n8n’s database, which can take a few minutes on a small core. The deployment waits for `/healthz/readiness` before it sends traffic to a new version. To build your own nodes, see n8n’s [documentation](https://docs.n8n.io/integrations/creating-nodes/build/), and publish them as community nodes. ## See also * [Using Components](/building/components) * [n8n component repository](https://github.com/diploi/component-n8n) * [n8n on diploi.com](https://diploi.com/component/n8n) * [Tutorial: hosting n8n on Diploi](https://diploi.com/blog/hosting_n8n) * [AI Gateway](/reference/ai-gateway) * [n8n documentation](https://docs.n8n.io/) * [n8n MCP server](https://docs.n8n.io/advanced-ai/accessing-n8n-mcp-server/) * [n8n environment variables](https://docs.n8n.io/hosting/configuration/environment-variables/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Next.js > Deploy production-ready Next.js apps with server rendering on Diploi. Next.js is a React framework for building server-rendered and statically generated applications. Choose this component when you want Diploi to handle optimized builds, routing, and image processing without extra configuration. It works well for SaaS dashboards, marketing pages, and any React project that needs reliable hosting. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Next.js to your project. ```yaml components: - name: Next.js identifier: next package: https://github.com/diploi/component-nextjs#v16.3.3 ``` ## Next.js reference ## Readme Launch a trial, no account needed Uses the official [node](https://hub.docker.com/_/node) Docker image. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Next.js** You can add other frameworks from this page if you want to create a monorepo application, eg, Next.js + Bun for backend. 3. In **Pick Add-ons**, select any databases or extra tools you need. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** Check the guide #### Development Will run `npm install` when component is first initialized, and `npm run dev` when deployment is started. #### Production Will build a production ready image. Image runs `npm install` & `npm build` when being created. Once the image runs, `npm start` is called. ## See also * [Using Components](/building/components) * [Next.js component repository](https://github.com/diploi/component-nextjs) * [Next.js on diploi.com](https://diploi.com/component/next) * [Tutorial: hosting Next.js apps on Diploi](https://diploi.com/blog/hosting_nextjs_apps) * [Next.js documentation](https://nextjs.org/docs) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Node.js > Run general-purpose Node.js services on Diploi. The Node.js component gives you a standard runtime for JavaScript or TypeScript backends. Reach for it when you need an API, webhook processor, or background worker built with the Node ecosystem. Diploi builds and deploys your code while keeping environment variables and dependencies managed. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Node.js to your project. ```yaml components: - name: Node.js identifier: node package: https://github.com/diploi/component-nodejs#v24.14.0 ``` ## Node.js reference ## Readme Start a demo environment (No card or registration needed) A generic Node.js component that can be used to run any Node.js app. Uses the official [node](https://hub.docker.com/_/node) Docker image. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Node.js** 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository**, which will generate a new GitHub repo 5. Lastly, click **Launch Stack** Link to guide (includes additional information) #### Development Will run `npm install` when component is first initialized, and `npm run dev` when deployment is started. #### Production Will build a production ready image. Image runs `npm install` & `npm build` when being created. Once the image runs, `npm start` is called. #### Notes * If you are using packages that use native libraries (like `node-canvas` e.g.), it is a good idea to switch the `Dockerfile` and `Dockerfile.dev` to use `node:XX` instead of `node:XX-slim`. You can also add any missing libraries with `RUN apt update && apt install -y ` in the dockerfiles. ## See also * [Using Components](/building/components) * [Node.js component repository](https://github.com/diploi/component-nodejs) * [Node.js on diploi.com](https://diploi.com/component/node) * [Node.js docs](https://nodejs.org/en/docs) * [Tutorial: hosting Node.js apps on Diploi](https://diploi.com/blog/hosting_node_apps) * [Node official page](https://nodejs.org/en) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Python > Python ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Python to your project. ```yaml components: - name: Python identifier: python package: https://github.com/diploi/component-python#v05.2026 ``` ## Python reference ## Readme ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Python**. Here you can also add a frontend framework to create a monorepo app, eg, Python for backend and React+Vite for frontend 3. In **Pick Add-ons**, you can add one or multiple databases to your app 4. Choose **Create Repository** to generate a new GitHub repo 5. Finally, click **Launch Stack** #### Development During development, the container installs `watchfiles` to enable automatic reloads when files change. The development server is started with: ```sh uv run watchfiles "python src/main.py" ``` This will: * Use `watchfiles` to watch for file changes and restart the server automatically. * Run `src/main.py` in an isolated Python environment managed by `uv`. * Automatically detect whether to use `pyproject.toml` or `requirements.txt` for dependency resolution. #### Production Builds a production-ready image. During the build, dependencies are installed with `uv sync` or `uv pip install`. When the container starts, it runs: ```sh uv run --frozen src/main.py ``` This starts your Python application using the exact dependency versions locked in the project. ## See also * [Using Components](/building/components) * [Python component repository](https://github.com/diploi/component-python) * [Python on diploi.com](https://diploi.com/component/python) * [Python documentation](https://docs.python.org/) * [uv documentation](https://docs.astral.sh/uv/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # React + Vite > Bundle React apps quickly with the React + Vite component. The React + Vite component pairs Vite’s fast bundler with a ready-to-serve React runtime. Use it when you need quick rebuilds, hot module reload, and a lightweight deployment target for frontend projects. Diploi handles the build pipeline so you can focus on UI work. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add React + Vite to your project. ```yaml components: - name: React + Vite identifier: react-vite package: https://github.com/diploi/component-react-vite#v19.3.0 ``` ## React + Vite reference ## Readme Launch a trial, no account needed Uses the official [node](https://hub.docker.com/_/node) Docker image. A minimal setup to get React working in Vite with HMR and some [Oxlint](https://oxc.rs/docs/guide/usage/linter) rules, based on the `react-ts` template of [create-vite](https://vite.dev/guide/#scaffolding-your-first-vite-project). React is compiled with [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react), which uses [Oxc](https://oxc.rs). ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **React + Vite** You can add other frameworks from this page if you want to build a monorepo application, eg, React + Vite for the frontend and Hono for the backend. 3. In **Pick Add-ons**, select any databases or extra tools you need. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** Prefer the full guide? Check #### Package managers Supports **Bun**, **Yarn**, **npm**, and **pnpm**. The package manager is auto-detected from your lockfile (`bun.lock`, `yarn.lock`, `package-lock.json`, or `pnpm-lock.yaml`). The install and build steps always use the detected package manager. #### Development When the component is first initialized, dependencies are installed using the detected package manager. The Vite development server is then started with: ```sh npm run dev -- --host ``` This can be changed with the `containerCommands.developmentStart` field in `diploi.yaml`. #### Production Builds a production-ready image. Image runs `npm install` & `npm run build` when being created, using the detected package manager. `npm run build` type-checks the project with `tsc -b` before `vite build` writes the app to `dist/`. The `dist/` folder is served as a static site using [serve](https://github.com/vercel/serve): ```sh serve -s -l 5173 dist ``` This can be changed with the `containerCommands.productionStart` field in `diploi.yaml`. ##### ENV Vite replaces [`import.meta.env.VITE_*`](https://vite.dev/guide/env-and-mode) with the values of those environment variables during the build step. Only variables with the `VITE_` prefix are exposed to your code, and everything they contain is visible in the browser, so never give a secret a `VITE_` name. We provide two ways to manage ENV values in production builds: 1. For values that are not deployment-dependent, define them in `diploi.yaml` using the [static import syntax](https://docs.diploi.com/reference/diploi-yaml#env). The values are exposed to the `Dockerfile` as `ARG` variables. 2. For values that depend on a specific deployment (such as variables imported from other components in `diploi.yaml`, or configured in the **Environment** tab), enable the **runtime build** option. To use a variable from another component in your code, import it under a name with the `VITE_` prefix. For example, to call the public address of a backend with the `api` identifier: ```yaml - name: React + Vite identifier: react-vite package: https://github.com/diploi/component-react-vite#v19.3.0 env: include: - api.APP_ENDPOINT:VITE_API_URL ``` Your code runs in the browser, so use the public `_ENDPOINT` address of a component. The `_INTERNAL_ENDPOINT` address only works inside the deployment. ##### Runtime Build When runtime build is enabled (which it is by default), `npm run build` is executed again when the container starts. This ensures that environment variables from the running deployment are correctly applied, and that any data loaded from other components can use the internal network. To disable runtime build, set `__VITE_RUNTIME_BUILD` to `false` in `diploi.yaml`: ```yaml - name: React + Vite identifier: react-vite package: https://github.com/diploi/component-react-vite#v19.3.0 env: include: - name: __VITE_RUNTIME_BUILD value: false ``` ##### Ports The component serves on port **5173** in both development and production. If you change it, update all of these so they stay in sync: * `hosts[].port` in `diploi.yaml` * `EXPOSE` in `Dockerfile` and `Dockerfile.dev` * `ENV PORT` and the `-l` option of `serve` in `Dockerfile` * `server.port` in `vite.config.ts`, which the development server uses. It is not set, because 5173 is the Vite default ## See also * [Using Components](/building/components) * [React + Vite component repository](https://github.com/diploi/component-react-vite) * [React + Vite on diploi.com](https://diploi.com/component/react-vite) * [Tutorial: hosting React apps on Diploi](https://diploi.com/blog/hosting_react_apps) * [React documentation](https://react.dev/) * [Vite documentation](https://vite.dev/) * [Oxlint documentation](https://oxc.rs/docs/guide/usage/linter) * [serve documentation](https://github.com/vercel/serve) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Static Website > Host static websites with Caddy ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Static Website to your project. ```yaml components: - name: Static Website identifier: static package: https://github.com/diploi/component-static#v2 ``` ## Static Website reference ## Readme A component for hosting static websites on Diploi. Drop in your HTML, CSS, and JavaScript files and get a production-ready, gzip-compressed site served over HTTPS. Uses the official [Caddy](https://hub.docker.com/_/caddy) Docker image. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **Static** 3. Choose **Create Repository**, which will generate a new GitHub repo 4. Click **Launch Stack** #### Development The component serves files directly from your repository root. Edit your HTML, CSS, and JavaScript files and the changes are reflected immediately after a refresh. #### Production Builds a production-ready image containing your static files. Caddy serves them with gzip compression. #### Configuration The component includes a `Caddyfile` that you can freely edit to configure Caddy. You can easily add redirects, custom headers, or URL rewriting rules, for example. ## See also * [Using Components](/building/components) * [Static Website component repository](https://github.com/diploi/component-static) * [Static Website on diploi.com](https://diploi.com/component/static) * [Caddy documentation](https://caddyserver.com/docs/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Supabase > Deploy Supabase edge functions and services using Diploi components. Supabase bundles Postgres, real-time listeners, storage, and auth with edge functions. Use this component when you want Diploi to manage Supabase deployments alongside the rest of your stack so you can ship a unified backend without wiring infrastructure by hand. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add Supabase to your project. ```yaml components: - name: Supabase identifier: supabase package: https://github.com/diploi/component-supabase#v2026.02-patch.1 ``` ## Supabase reference What Supabase defines in a deployment. ### Environment variables Supabase sets these values in every deployment. Other components can import them with [`env.include`](/reference/diploi-yaml#env) as `supabase.*`. Defaults marked *generated* are unique to each deployment. Parameters are set on the deployment’s **Setup** tab. **Dashboard** Supabase dashboard configuration. | Variable | Type | Default | Description | | ----------------------------- | ------ | ---------------------- | -------------------- | | `DASHBOARD_USERNAME` | string | `supabase` | Username | | `DASHBOARD_PASSWORD` | secret | *generated* | Password | | `STUDIO_DEFAULT_ORGANIZATION` | string | `Default Organization` | Default Organization | | `STUDIO_DEFAULT_PROJECT` | string | `Default Project` | Default Project | **Custom SMTP Settings** Configure custom SMTP settings to send emails. Optional, off by default. | Variable | Type | Default | Description | | -------------------------- | ------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------ | | `SMTP_ADMIN_EMAIL` | string | `admin@example.com` | | | `SMTP_HOST` | string | `core.diploi` | An SMTP server (core.diploi) is available within your deployment, see | | `SMTP_PORT` | integer | `2525` | | | `SMTP_USER` | string | | | | `SMTP_PASS` | string | | | | `SMTP_SENDER_NAME` | string | | | | `ENABLE_EMAIL_SIGNUP` | boolean | `true` | | | `ENABLE_EMAIL_AUTOCONFIRM` | boolean | `false` | Enable Email Automatic Confirmation | **API Keys & Values** Secure keys & values for accessing and running your Supabase services. | Variable | Type | Default | Description | | ------------------------------- | ------ | ----------- | -------------------------------------------------------------------------------------------------------- | | `JWT_SECRET` | secret | *generated* | | | `ANON_KEY` | string | *generated* | | | `SERVICE_ROLE_KEY` | secret | *generated* | To generate new JWT values, see | | `VAULT_ENC_KEY` | secret | *generated* | Vault Encryption Key | | `POOLER_TENANT_ID` | secret | *generated* | | | `LOGFLARE_PUBLIC_ACCESS_TOKEN` | string | *generated* | | | `LOGFLARE_PRIVATE_ACCESS_TOKEN` | secret | *generated* | | | `SECRET_KEY_BASE` | secret | *generated* | Phoenix Secret | **PostgreSQL** Superuser & connection configuration. | Variable | Type | Default | Description | | ------------------- | ------- | ----------- | -------------- | | `POSTGRES_HOST` | string | *generated* | Host | | `POSTGRES_PORT` | integer | `5432` | Port | | `POSTGRES_USER` | string | `postgres` | User | | `POSTGRES_PASSWORD` | secret | *generated* | Password | | `POSTGRES_DB` | string | `postgres` | Database | | `POSTGRES_URL` | string | *generated* | Connection URL | **OpenAI** Add your OpenAI API key to enable SQL Editor Assistant. Optional, off by default. | Variable | Type | Default | Description | | ---------------- | ------ | ------- | ----------- | | `OPENAI_API_KEY` | secret | | | **Google Cloud Project** Support Sign in with Google by connecting to a Google Cloud Platform project. Optional, off by default. | Variable | Type | Default | Description | | ----------------------- | ------ | ------- | --------------------------- | | `GOOGLE_PROJECT_ID` | string | | Google Cloud Project ID | | `GOOGLE_PROJECT_NUMBER` | string | | Google Cloud Project Number | **Internal Addresses** Internal endpoints for different Supabase services. | Variable | Type | Default | Description | | ------------------------ | ------ | ----------- | ----------- | | `AUTH_INTERNAL_URL` | string | *generated* | Auth | | `REST_INTERNAL_URL` | string | *generated* | REST | | `REALTIME_INTERNAL_URL` | string | *generated* | Realtime | | `STORAGE_INTERNAL_URL` | string | *generated* | Storage | | `FUNCTIONS_INTERNAL_URL` | string | *generated* | Functions | | `ANALYTICS_INTERNAL_URL` | string | *generated* | Analytics | | `META_INTERNAL_URL` | string | *generated* | Meta | | `STUDIO_INTERNAL_URL` | string | *generated* | Studio | | `KONG_INTERNAL_URL` | string | *generated* | Kong | **Other variables** Set by the package. Override them on the deployment’s **Environment** tab or in `diploi.yaml`. | Variable | Default | | -------------------------- | ----------------------- | | `SITE_URL` | | | `DISABLE_SIGNUP` | `false` | | `ENABLE_ANONYMOUS_USERS` | `false` | | `ENABLE_PHONE_SIGNUP` | `true` | | `ENABLE_PHONE_AUTOCONFIRM` | `true` | | `FUNCTIONS_VERIFY_JWT` | `false` | | `JWT_EXPIRY` | `3600` | | `PGRST_DB_SCHEMAS` | `public,graphql_public` | | `REALTIME_TENANT_NAME` | `realtime` | | `ADDITIONAL_REDIRECT_URLS` | | ## Readme Run [Supabase](https://supabase.com/) on Diploi. Based on the official [supabase/docker](https://github.com/supabase/supabase/tree/master/docker) `docker-compose.yml` file. ### Operation A full Supabase self-hosted implementation. #### Limitations We know of a few limitations that currently exist with Supabase on Diploi. We are actively working on fixes. * Connection URI’s displayed on Supabase Studio are wrong, please use the ones on Diploi Console #### Authentication Self-hosted Supabase comes with a simple basic auth implementation by default. Diploi implements custom authentication for the admin panel, making it easier to use. You can authenticate with a single-click from Diploi Console, or use username & password to login. You can find the admin credentials from a deployments “Options” tab in the Diploi Console. #### Development ##### Functions You can develop custom functions with [Deno](https://deno.com/). Diploi automatically creates a `/functions` directory for you with a preconfigured `main` function and an example `hello` function. ##### Migrations Database migrations and seeding are supported. Diploi automatically creates a `/migrations` directory and a `seed.sql` file for you. They work with the Supabase CLI to manage schema changes and database seeding in a repeatable way. If the component folder is not named `supabase`, Diploi creates a `supabase` symlink inside it so the Supabase CLI works as expected. For guidance and best practices, see the [official Supabase docs on database migrations](https://supabase.com/docs/guides/deployment/database-migrations). ## See also * [Using Components](/building/components) * [Supabase component repository](https://github.com/diploi/component-supabase) * [Supabase on diploi.com](https://diploi.com/component/supabase) * [Tutorial: hosting Supabase on Diploi](https://diploi.com/blog/hosting_supabase) * [Supabase documentation](https://supabase.com/docs) * [Self-Hosting Supabase with Docker](https://supabase.com/docs/guides/self-hosting/docker) * [Generate Supabase API keys](https://supabase.com/docs/guides/self-hosting/docker#generate-api-keys) * [Migrations with Supabase CLI](https://supabase.com/docs/guides/deployment/database-migrations) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # SvelteKit > Deploy full-stack SvelteKit apps through Diploi. SvelteKit combines Svelte’s component model with server-side rendering, routing, and adapters. Use this component when you need a fast Svelte frontend that can fetch data server-side or run API endpoints. Diploi runs the build and deployment steps so your project ships with predictable infrastructure. ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add SvelteKit to your project. ```yaml components: - name: SvelteKit identifier: sveltekit package: https://github.com/diploi/component-sveltekit#v2.70.3 ``` ## SvelteKit reference ## Readme Launch a trial, no account needed Uses the official [node](https://hub.docker.com/_/node) Docker image. Has the [@sveltejs/adapter-node](https://svelte.dev/docs/kit/adapter-node) adapter preconfigured. SvelteKit options, such as the adapter, are passed to the `sveltekit()` plugin in `vite.config.ts`, so the project has no `svelte.config.js`. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **SvelteKit** You can add other frameworks from this page if you want to build a monorepo application, eg, SvelteKit for the frontend and Hono for the backend. 3. In **Pick Add-ons**, select any databases or extra tools you need. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** Prefer the full guide? Check #### Package managers Supports **Bun**, **Yarn**, **npm**, and **pnpm**. The package manager is auto-detected from your lockfile (`bun.lock`, `yarn.lock`, `package-lock.json`, or `pnpm-lock.yaml`). The install and build steps always use the detected package manager. #### Development When the component is first initialized, dependencies are installed using the detected package manager. The development server is then started with: ```sh npm run dev -- --host ``` This can be changed with the `containerCommands.developmentStart` field in `diploi.yaml`. #### Production Builds a production ready image. Image runs `npm install` & `npm run build` when being created, using the detected package manager. Once the image runs, `npm start` is called, which serves the adapter-node build from `build/`. This can be changed with the `containerCommands.productionStart` field in `diploi.yaml`. ##### ENV SvelteKit has separate modules for environment variables that are read when the app is built, and ones that are read when it runs: 1. [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private) and [`$env/static/public`](https://svelte.dev/docs/kit/$env-static-public) are replaced during the build step. Only use them for values that are not deployment-dependent, and define those in `diploi.yaml` using the [static import syntax](https://docs.diploi.com/reference/diploi-yaml#env). The values are exposed to the `Dockerfile` as `ARG` variables. 2. [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private) and [`$env/dynamic/public`](https://svelte.dev/docs/kit/$env-dynamic-public) are read when the server runs. Use them for values that depend on a specific deployment, such as variables imported from other components in `diploi.yaml`, or configured in the **Environment** tab. Public variables need the `PUBLIC_` prefix to be available in the browser. ##### Ports The component serves on port **3000** in both development and production. If you change it, update all of these so they stay in sync: * `hosts[].port` in `diploi.yaml` * `EXPOSE` and `ENV PORT` in `Dockerfile` and `Dockerfile.dev` * The fallback of `server.port` in `vite.config.ts`, which the development server uses when `PORT` is not set ## See also * [Using Components](/building/components) * [SvelteKit component repository](https://github.com/diploi/component-sveltekit) * [SvelteKit on diploi.com](https://diploi.com/component/sveltekit) * [SvelteKit docs](https://svelte.dev/docs/kit/introduction) * [Tutorial: hosting Svelte apps on Diploi](https://diploi.com/blog/hosting_svelte_apps) * [Svelte documentation](https://svelte.dev/docs/svelte/overview) * [Vite documentation](https://vite.dev/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # TanStack Start > One Router-first app, from server request to client navigation ## Add to your project Paste this entry into the `components` list in `diploi.yaml` to add TanStack Start to your project. ```yaml components: - name: TanStack Start identifier: tanstack-start package: https://github.com/diploi/component-tanstack-start#v1.168.50 ``` ## TanStack Start reference ## Readme Launch a trial, no account needed Uses the official [node](https://hub.docker.com/_/node) Docker image. A minimal setup to get [TanStack Start](https://tanstack.com/start/latest) working in Diploi, with React, file-based routing from [TanStack Router](https://tanstack.com/router/latest) and [Tailwind CSS](https://tailwindcss.com/). Server-side rendering is handled by [Nitro](https://nitro.build/), preconfigured through its Vite plugin in `vite.config.ts`. ### Operation #### Getting started 1. In the Dashboard, click **Create Project +** 2. Under **Pick Components**, choose **TanStack Start** You can add other frameworks from this page if you want to build a monorepo application, eg, TanStack Start for the frontend and Hono for the backend. 3. In **Pick Add-ons**, select any databases or extra tools you need. 4. Choose **Create Repository** so Diploi generates a new GitHub repo for your project. 5. Click **Launch Stack** #### Package managers Supports **Bun**, **Yarn**, **npm**, and **pnpm**. The package manager is auto-detected from your lockfile (`bun.lock`, `yarn.lock`, `package-lock.json`, or `pnpm-lock.yaml`). The install and build steps always use the detected package manager. #### Development When the component is first initialized, dependencies are installed using the detected package manager. The development server is then started with: ```sh npm run dev -- --host ``` This can be changed with the `containerCommands.developmentStart` field in `diploi.yaml`. #### Production Builds a production-ready image. Image runs `npm install` & `npm run build` when being created, using the detected package manager. `vite build` writes the Nitro server to `.output/`. Once the image runs, `npm start` is called, which starts the Nitro server: ```sh node .output/server/index.mjs ``` This can be changed with the `containerCommands.productionStart` field in `diploi.yaml`. ##### ENV TanStack Start reads [environment variables](https://tanstack.com/start/latest/docs/framework/react/guide/environment-variables) at two different times: 1. **When the server runs.** Server code, such as server functions (`createServerFn`), server routes and middleware, reads `process.env` while the server runs. Use it for secrets, and for values that depend on a specific deployment (such as variables imported from other components in `diploi.yaml`, or configured in the **Environment** tab). 2. **When the app is built.** `import.meta.env.VITE_*` is replaced during the build step. Only variables with the `VITE_` prefix reach code that runs in the browser, and everything they contain is visible there, so never give a secret a `VITE_` name. The build runs when the image is created, so only use these for values that are not deployment-dependent, and define those in `diploi.yaml` using the [static import syntax](https://docs.diploi.com/reference/diploi-yaml#env). The values are exposed to the `Dockerfile` as `ARG` variables. To use a deployment-dependent value in the browser, read it in a server function and return it from there, as in the [runtime client environment variables](https://tanstack.com/start/latest/docs/framework/react/guide/environment-variables#runtime-client-environment-variables-in-production) guide. To use a variable from another component in your code, import it in `diploi.yaml`. For example, to call a backend with the `api` identifier from server code: ```yaml - name: TanStack Start identifier: tanstack-start env: include: - api.APP_INTERNAL_ENDPOINT:API_URL ``` Server code can use the `_INTERNAL_ENDPOINT` address of a component, which stays inside the deployment. Code that runs in the browser needs the public `_ENDPOINT` address. ##### Ports The component serves on port **5173** in both development and production. If you change it, update all of these so they stay in sync: * `hosts[].port` in `diploi.yaml` * `EXPOSE` and `ENV PORT` in `Dockerfile` and `Dockerfile.dev`. The production server reads `PORT` * The fallback of `server.port` in `vite.config.ts`, which the development server uses when `PORT` is not set ## See also * [Using Components](/building/components) * [TanStack Start component repository](https://github.com/diploi/component-tanstack-start) * [TanStack Start on diploi.com](https://diploi.com/component/tanstack-start) * [TanStack Start documentation](https://tanstack.com/start/latest) * [TanStack Router documentation](https://tanstack.com/router/latest) * [React documentation](https://react.dev/) * [Vite documentation](https://vite.dev/) * [Nitro documentation](https://nitro.build/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Using Remote Development > How to develop remotely with Diploi. At the heart of Diploi lies remote development, allowing you to easily work on any of your projects without the need for software installation or maintenance on your local machine, or dealing with containers. With a single click, you can begin your work without local installation hassle. [Remote development using Cursor and Diploi](https://www.youtube.com/embed/gHeJ-gwCtlg?si=1KroAeD_epe538wF) ## Getting Started Diploi is designed to make remote development as seamless as possible. You can start developing on any of your deployments with just a few clicks. All you need is to create a development deployment in your project, which will provide you with a remote environment. You can access development environments through the cloud IDE, or connect to them using your favorite IDE via SSH. ![Cloud IDE](/_astro/DeploymentOverviewDevelopment.C6YBQH-1_ZgcpAj.png) ### Using Diploi’s Cloud IDE Diploi offers a built-in cloud IDE that allows you to start coding immediately without any setup. This is ideal for quick edits or when you need to make changes on the go. To access the cloud IDE, navigate to your deployment’s “Overview” tab, found at: `https://console.diploi.com//project//deployment/` From there, you can click on the “Code in the browser” button, which will open the cloud IDE in a new tab. The cloud IDE is preconfigured with Diploi models through the [AI Gateway](/reference/ai-gateway). Continue is ready in the editor, and the OpenCode CLI is available in the terminal. You can also use the **Prompt** view on the deployment page in the console to describe changes in natural language. No OpenAI or Anthropic API keys are required. Usage is billed from your Diploi balance. ### Using Your Local IDE To connect to your remote development environment using your own IDE, you need to add your public SSH key, which you can do by following the instructions in our [SSH guide](/building/add-ssh-key/). Diploi officially supports: * [VS Code](https://code.visualstudio.com/) with the [Remote Development extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) * [Cursor](https://www.cursor.com/) #### Connecting you IDE If it is the first time you are connecting to a deployment, you will need to add your IDE to the “Develop” section of your deployment, by clicking on the plus icon next to the “Code in the Browser” button. ![Add IDE to deployment](/_astro/DevelopmentLocalIde.D3nySK3z_g9xoH.png) Caution If you are developing on a Windows machine with WSL enabled, please note that a Windows VS Code install uses SSH keys on your **Windows** user by default. #### Configuration Your local VS Code configuration will be used for all remote environments, but certain features (like extensions) need to be configured on a per-deployment basis. ### Other IDEs Caution Diploi currently has built-in persistent configuration for VS Code only. This means that you will have to configure/install your other IDE again after a deployment upgrade. Diploi supports any IDE capable of connecting to a remote machine via SSH. This includes terminal-based IDEs like Vim. #### Terminal Based IDEs Simply open an SSH connection to your deployment, and install your favorite IDE. # Using Starter Kits > Launch pre-built, full-stack applications on Diploi with a single click. Starter Kits include everything you need to start developing immediately. ## Starter Kits Starter Kits are complete, pre-configured templates, which can be used as a scaffold to start new applications or to use directly as they are, which you can launch instantly on Diploi. Each starter kit includes a `diploi.yaml` file, Dockerfiles for development and production, and a ready-to-run codebase.. #### Starter kits available [![](https://diploi.b-cdn.net/component/diploi/starter-openclaw/icon.svg?ref=main)**OpenClaw Assistant**](/building/starter-kits/openclaw)[![](https://diploi.b-cdn.net/component/diploi/starter-chat/icon.svg?ref=main)**Chat App**](/building/starter-kits/chat)[![](https://diploi.b-cdn.net/component/diploi/starter-refine-pixels/icon.svg?ref=main)**Collaborative Drawing App**](/building/starter-kits/refine-pixels)[![](https://diploi.b-cdn.net/component/diploi/starter-web-app/icon.svg?ref=main)**Web App**](/building/starter-kits/web-app) *** ### OpenClaw Assistant A self-hosted personal AI assistant that connects to messaging platforms and supports any LLM provider. Comes with an interactive browser terminal to access the OpenClaw CLI without using SSH. [Launch OpenClaw Assistant](https://diploi.com/starter-kit/openclaw) [How to use the OpenClaw Assistant starter kit](/building/starter-kits/openclaw) [OpenClaw Assistant starter kit repository](https://github.com/diploi/starter-openclaw) [OpenClaw GitHub](https://github.com/openclaw/openclaw) [AI Gateway](/reference/ai-gateway) *** ### Chat App A Slack-like chat application with authentication and realtime features, built with Next.js and Supabase. [Launch Chat App](https://diploi.com/starter-kit/chat) [How to use the Chat App starter kit](/building/starter-kits/chat) [Chat App starter kit repository](https://github.com/diploi/starter-chat) [Next.js component](/building/components/next) [Supabase component](/building/components/supabase) [Official Next.js documentation](https://nextjs.org/docs) [Official Supabase documentation](https://supabase.com/docs) *** ### Collaborative Drawing App A fun, collaborative pixel art drawing application built with Refine and Supabase. [Launch Collaborative Drawing App](https://diploi.com/starter-kit/refine-pixels) [How to use the Collaborative Drawing App starter kit](/building/starter-kits/refine-pixels) [Collaborative Drawing App starter kit repository](https://github.com/diploi/starter-refine-pixels) [React + Vite component](/building/components/react-vite) [Supabase component](/building/components/supabase) [Official Refine documentation](https://refine.dev/docs/) [Official Supabase documentation](https://supabase.com/docs) [Refine Pixels tutorial](https://refine.dev/blog/refine-pixels-guide/) *** ### Web App A modern, production-ready template for building full-stack React applications with Supabase. [Launch Web App](https://diploi.com/starter-kit/web-app) [How to use the Web App starter kit](/building/starter-kits/web-app) [Web App starter kit repository](https://github.com/diploi/starter-web-app) [React + Vite component](/building/components/react-vite) [Supabase component](/building/components/supabase) [Official React documentation](https://react.dev) [Official React Router documentation](https://reactrouter.com) [Official TailwindCSS documentation](https://tailwindcss.com/docs) *** ## See also * [Using Components](/building/components) * [Using Add-ons](/building/add-ons) * [Creating a Project](/deploying/creating-a-project) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Chat App > A Slack-like chat application starter kit built with Next.js and Supabase, featuring authentication and realtime messaging. The Chat App is a Slack-like messaging application built with Next.js and Supabase. Use this starter kit when you want a ready-to-run chat application with built-in authentication, realtime messaging, and a modern full-stack architecture that you can extend and customize. ## Launch [Launch Chat App on Diploi](https://diploi.com/starter-kit/chat) to create a new project from this starter kit. Like any Diploi project, it can be extended with more [components](/building/components) and [add-ons](/building/add-ons) through its `diploi.yaml` file. ## Tech stack | Technology | Role | | -------------- | ---------------------------------- | | **Next.js** | Full-stack React framework | | **Supabase** | Backend (database, auth, realtime) | | **TypeScript** | Language | ## Readme A Slack like chat app built with **Next.js** and **Supabase**. This starter kit demonstrates: * 🔐 Authentication with Supabase * ⚡️ Next.js -powered React frontend * 🗄️ Supabase DB migrations and seeded data *** ### ✨ Overview This starter kit consists of two Diploi components: * **`next`** – Frontend application (Next.js) * **`supabase`** – Database, auth, and realtime backend Everything is wired together automatically via environment variables defined in `diploi.yaml`. *** ### 🔑 Default Login Credentials The database is seeded with a test account: Email: `test@example.com`\ Password: `password` You can log in immediately after deployment. > ⚠️ Make sure to change or remove this account in production environments. *** ### 🚀 Running on Diploi #### Start a new project 1. Create a new project in Diploi 2. Select this starter kit 3. Deploy Diploi automatically: * Connects Supabase to Next.js * Injects environment variables * Configures networking * Builds production images * Enables edge delivery via Cloudflare *** ### 💡 About Supabase This project is originally based on the [nextjs-slack-clone](https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone) and adapted for Diploi deployments. Supabase is the Postgres development platform:\ ## See also * [Using Starter Kits](/building/starter-kits) * [Chat App starter kit repository](https://github.com/diploi/starter-chat) * [Next.js component](/building/components/next) * [Supabase component](/building/components/supabase) * [Official Next.js documentation](https://nextjs.org/docs) * [Official Supabase documentation](https://supabase.com/docs) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # OpenClaw Assistant > A self-hosted personal AI assistant starter kit that connects to messaging platforms like WhatsApp, Telegram, Slack, and Discord, with support for any LLM provider. OpenClaw is an open-source, self-hosted personal AI assistant that connects to messaging platforms including WhatsApp, Telegram, Slack, Discord, Google Chat, Signal, Microsoft Teams, and more. Use this starter kit when you want Diploi to run an OpenClaw instance without having to manually configure the hosting infrastructure for it. Besides offering the easiest way to host OpenClaw on the cloud, Diploi has features that help you start even faster: * Access to a browser terminal, to run CLI commands without requiring a SSH connection. ![Browser terminal for OpenClaw](/_astro/OpenClawTerminal.CFTyKOFK_2o3niR.webp) * Fully configured gpt-4.1-nano model, provided through the Diploi AI gateway. ![gpt-4.1-nano for OpenClaw](/_astro/OpenClawModels.BCsuScKf_ZTpwiO.webp) ## Launch [Launch OpenClaw Assistant on Diploi](https://diploi.com/starter-kit/openclaw) to create a new project from this starter kit. Like any Diploi project, it can be extended with more [components](/building/components) and [add-ons](/building/add-ons) through its `diploi.yaml` file. ## Tech stack | Technology | Role | | ---------------- | --------------------------------------------------------- | | **Node.js** | Runtime | | **TypeScript** | Language | | **Hono** | Wrapper API server | | **React + Vite** | Control UI frontend | | **OpenClaw** | AI assistant runtime | | **gpt-4.1-nano** | AI model, through the [AI Gateway](/reference/ai-gateway) | ## Key features * **Multi-platform messaging** - WhatsApp, Telegram, Slack, Discord, Google Chat, Signal, Microsoft Teams, and more * **Browser terminal** - Run OpenClaw CLI commands directly from the browser without SSH * **Pre-configured AI model** - gpt-4.1-nano ready out of the box via the Diploi AI gateway * **Custom control panel** - Welcome page to monitor status, start/stop the gateway, and reset your instance * **API-driven management** - REST endpoints for programmatic control of the gateway * **Self-hosted & open-source** - Full ownership of your data and infrastructure ## Control panel Once launched, a welcome page unique to Diploi lets you: * See the general status of your OpenClaw gateway * Start/Stop the gateway globally * Reset OpenClaw to its startup defaults * Interact with the browser terminal and access the OpenClaw CLI * Access the OpenClaw dashboard ![Welcome page for OpenClaw](/_astro/OpenClawWelcomePage.CXfehaKs_TLfvY.webp) The OpenClaw dashboard itself hasn’t been modified, so you can expect the exact experience you would get if you configured OpenClaw manually. How the wrapper works, its API endpoints and environment variables are described in the readme below. ## Readme OpenClaw Starter Kit for running a self-hosted OpenClaw in Diploi Development Environment with: * A wrapper server (`server/`) that initializes config, manages the OpenClaw gateway, and exposes control APIs * A React/Vite control UI (`web/`) Version 2.0 updates the bundled OpenClaw runtime to `v2026.8.1` and introduces a secure owner-handoff flow for opening the OpenClaw dashboard. ### ✨ Overview On startup, the wrapper: 1. Initializes `/app/openclaw.json` (if missing) via `openclaw onboard` 2. Patches config defaults (gateway token, model provider, channel/plugin defaults) 3. Starts and monitors the OpenClaw gateway on `127.0.0.1:18789` 4. Proxies: * `/dashboard` to OpenClaw gateway UI * all other app routes to the Vite frontend #### Dashboard access in v2.0 Selecting **Open dashboard** opens a loading page while the wrapper requests a signed owner-handoff URL from OpenClaw. The browser then opens the dashboard on the public application origin, preserving the signed handoff data without exposing the gateway’s internal URL. For compatibility with older OpenClaw releases that do not support owner-handoff URLs, the wrapper falls back to the existing gateway-token flow. ### 🧱 Architecture #### Requirements * Diploi’s Development Environment * Node.js 22+ * npm * OpenClaw runtime available as either: * `openclaw` on `PATH`, or * `/lib/openclaw/dist/index.js` (provided in this repo’s Docker images) #### Environment Variables Common variables used by the wrapper: * `PORT` (default: `3000`) * `HOSTNAME` (default: `0.0.0.0`) * `VITE_HOST` (default: `127.0.0.1`) * `VITE_PORT` (default: `5173`) * `OPENCLAW_CONFIG_PATH` (default: `/app/openclaw.json`) * `OPENCLAW_STATE_DIR` (default: `/app`) * `OPENCLAW_WORKSPACE_DIR` (default: `/app/workspace`) * `OPENCLAW_GATEWAY_TOKEN` (optional; generated if missing) * `DIPLOI_AI_GATEWAY_URL` / `DIPLOI_AI_GATEWAY_TOKEN` (optional model proxy wiring) * `DIPLOI_LOGIN_SECRET` (required to validate `diploi-jwt-login` cookie) * `DIPLOI_LOGIN_USERNAME` / `DIPLOI_LOGIN_PASSWORD` (credential login) #### Development Workflow Install dependencies: ```bash npm install ``` Run dev mode (process manager + wrapper API + Vite UI): ```bash npm run dev ``` This starts: * `server/processManager.ts` * `server/index.ts` (Hono wrapper API) * `web` Vite dev server #### API Endpoints Wrapper endpoints: * `GET /healthz` * `GET /dashboard-loading` (temporary page shown while the dashboard handoff is created) * `GET /api/dashboard-link` (returns the signed dashboard handoff path, with a legacy token fallback) * `GET /api/dashboard-token` (legacy compatibility) * `GET /api/gateway/status` * `POST /api/gateway/start` * `POST /api/gateway/stop` * `POST /api/gateway/restart` * `POST /api/full-reset` * `POST /api/logout` * `WS /api/terminal-ws` (browser terminal) #### Project Structure ```text server/ index.ts # wrapper server + proxy processManager.ts # gateway lifecycle manager initOpenclaw.ts # OpenClaw config bootstrap + patching api.ts # API routes terminalWs.ts # PTY websocket bridge utils/ dashboardLoading.ts # dashboard handoff loading page web/ src/ # React UI Dockerfile.dev # full dev image including OpenClaw build Dockerfile # production runtime image diploi.yaml # Diploi starter metadata ``` ## See also * [Using Starter Kits](/building/starter-kits) * [OpenClaw Assistant starter kit repository](https://github.com/diploi/starter-openclaw) * [OpenClaw GitHub](https://github.com/openclaw/openclaw) * [AI Gateway](/reference/ai-gateway) * [OpenClaw Documentation](https://docs.openclaw.ai/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Collaborative Drawing App > A collaborative pixel art drawing application starter kit built with Refine and Supabase, featuring realtime multi-user canvas support and authentication. The Collaborative Drawing App is a fun, collaborative pixel art application built with Refine and Supabase. Use this starter kit when you want a ready-to-run creative application that demonstrates realtime collaboration, authentication, and CRUD operations, or as a foundation for building your own realtime collaborative tool. ## Launch [Launch Collaborative Drawing App on Diploi](https://diploi.com/starter-kit/refine-pixels) to create a new project from this starter kit. Like any Diploi project, it can be extended with more [components](/building/components) and [add-ons](/building/add-ons) through its `diploi.yaml` file. ## Tech stack | Technology | Role | | -------------- | ------------------------------------------- | | **Refine** | React-based CRUD framework, on React + Vite | | **Supabase** | Backend (database, auth, realtime) | | **TypeScript** | Language | ## Readme A fun, collaborative drawing app built with **Refine**, **React (Vite)** and **Supabase**. This starter kit demonstrates: * 🔐 Authentication with Supabase * 🎨 Realtime collaborative updates * ⚡️ Vite-powered React frontend * 🗄️ Supabase DB migrations and seeded data *** ### ✨ Overview This starter kit consists of two Diploi components: * **`react-vite`** – Frontend application (Refine + React + Vite) * **`supabase`** – Database, auth, and realtime backend Everything is wired together automatically via environment variables defined in `diploi.yaml`. *** ### 🧱 Architecture #### 1️⃣ React (Vite) Component Based on the official Diploi [react-vite](https://github.com/diploi/component-react-vite) component. #### Environment Variables These are automatically injected from the Supabase component: * `VITE_SUPABASE_URL` * `VITE_SUPABASE_ANON_KEY` This starter kit enables Diploi’s **runtime build** mode: ```plaintext - name: __VITE_RUNTIME_BUILD value: true ``` This allows environment variables to be populated correctly in production deployments. *** #### 2️⃣ Supabase Component Based on the official Diploi [supabase](https://github.com/diploi/component-supabase) component. The component automatically configures redirect URLs so authentication flows correctly back to the React app. *** ### 🔑 Default Login Credentials The database is seeded with a test account: Email: `test@example.com`\ Password: `password` You can log in immediately after deployment. > ⚠️ Make sure to change or remove this account in production environments. *** ### 🚀 Running on Diploi #### Start a new project 1. Create a new project in Diploi 2. Select this starter kit 3. Deploy Diploi automatically: * Connects Supabase to React * Injects environment variables * Configures networking * Builds production images * Enables edge delivery via Cloudflare *** ### 💡 About Refine This project is originally based on the [Refine example template Pixels](https://refine.dev/core/templates/supabase-crud-app/) and adapted for Diploi deployments. Refine is a headless React framework for building CRUD applications:\ ## See also * [Using Starter Kits](/building/starter-kits) * [Collaborative Drawing App starter kit repository](https://github.com/diploi/starter-refine-pixels) * [React + Vite component](/building/components/react-vite) * [Supabase component](/building/components/supabase) * [Official Refine documentation](https://refine.dev/docs/) * [Official Supabase documentation](https://supabase.com/docs) * [Refine Pixels tutorial](https://refine.dev/blog/refine-pixels-guide/) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml) # Web App > A modern, production-ready template for building full-stack React applications using React Router and Supabase, with SSR, TailwindCSS, and TypeScript. The Web App is a modern, production-ready template for building full-stack React applications. Use this starter kit when you want a clean starting point for a React project with server-side rendering, TailwindCSS styling, TypeScript, a Supabase backend, and an AI-friendly project structure, without spending time on boilerplate setup. ## Launch [Launch Web App on Diploi](https://diploi.com/starter-kit/web-app) to create a new project from this starter kit. Like any Diploi project, it can be extended with more [components](/building/components) and [add-ons](/building/add-ons) through its `diploi.yaml` file. ## Tech stack | Technology | Role | | ---------------- | ---------------------------------------- | | **React** | UI framework | | **React Router** | Routing and SSR | | **Supabase** | Backend (database, auth, edge functions) | | **TailwindCSS** | Styling | | **TypeScript** | Language | ## Readme A production-ready React Router + Supabase starter that showcases SSR, runtime ENV wiring, Tailwind CSS styling, and Supabase-backed data flows. This starter kit demonstrates: * 🔐 Supabase API access with typed helpers * ⚡️ React Router SSR + Vite dev experience * 🎨 Tailwind CSS styling with sensible defaults * 🗄️ Supabase migrations, seeds, and Edge Functions * 🧩 Diploi-managed components, ENV, and deployment automation *** ### ✨ Overview This starter kit consists of two Diploi components configured in [diploi.yaml](https://github.com/diploi/starter-web-app/blob/main/diploi.yaml): * **`react`** — React Router application (Vite, SSR, Tailwind, TypeScript) * **`supabase`** — Database, auth, migrations, seed data, Edge Functions Diploi automatically wires the components together by injecting `SUPABASE_URL` and `SUPABASE_ANON_KEY` into the React component at runtime. No manual `.env` files are required in any environment. *** ### 🧱 Architecture #### 1️⃣ React (React Router) Component * Based on the Diploi [react-vite](https://github.com/diploi/component-react-vite) component and the official React Router starter. * The app shell lives in [app/root.tsx](https://github.com/diploi/starter-web-app/blob/main/app/root.tsx) with SSR, streaming, and document links already configured. * Runtime environment variables load through the route `loader` exported from [app/lib/useEnv.ts](https://github.com/diploi/starter-web-app/blob/main/app/lib/useEnv.ts), ensuring the browser only receives the variables Diploi injects. * [app/lib/useSupabase.ts](https://github.com/diploi/starter-web-app/blob/main/app/lib/useSupabase.ts) exposes a singleton Supabase browser client backed by those ENV variables. * The landing view in [app/welcome/welcome.tsx](https://github.com/diploi/starter-web-app/blob/main/app/welcome/welcome.tsx) explains Diploi development workflow and renders a Supabase-powered todo demo via [app/welcome/supabase.tsx](https://github.com/diploi/starter-web-app/blob/main/app/welcome/supabase.tsx). * Styling is handled with Tailwind CSS (already wired up through Vite) plus a minimal set of custom classes inside [app/app.css](https://github.com/diploi/starter-web-app/blob/main/app/app.css). ##### Environment Variables Access ENV values with the `useEnv` helper hook. #### 2️⃣ Supabase Component * Based on the Diploi [supabase](https://github.com/diploi/component-supabase) component. * Ships with a `todos` table defined in [supabase/migrations/20260120083000\_todo.sql](https://github.com/diploi/starter-web-app/blob/main/supabase/migrations/20260120083000_todo.sql) and sample rows in [supabase/seed.sql](https://github.com/diploi/starter-web-app/blob/main/supabase/seed.sql). * Includes Edge Functions scaffolding inside [supabase/functions](https://github.com/diploi/starter-web-app/blob/main/supabase/functions) with a `main` router ([supabase/functions/main/index.ts](https://github.com/diploi/starter-web-app/blob/main/supabase/functions/main/index.ts)) and a `hello` example ([supabase/functions/hello/index.ts](https://github.com/diploi/starter-web-app/blob/main/supabase/functions/hello/index.ts)). * Works seamlessly with the Supabase Studio bundled in the component. Diploi exposes the correct connection strings via the Diploi Console. *** ### 💡 Docs * [React Router](https://reactrouter.com) * [Diploi Remote Development](https://diploi.com/dev) * [diploi.yaml reference](https://diploi.com/yaml) * [Supabase CLI & migrations](https://github.com/diploi/starter-web-app/blob/main/supabase/README.md) Build something great! 🚀 ## See also * [Using Starter Kits](/building/starter-kits) * [Web App starter kit repository](https://github.com/diploi/starter-web-app) * [React + Vite component](/building/components/react-vite) * [Supabase component](/building/components/supabase) * [Official React documentation](https://react.dev) * [Official React Router documentation](https://reactrouter.com) * [Official TailwindCSS documentation](https://tailwindcss.com/docs) * [Learn more about the `diploi.yaml` file](/reference/diploi-yaml)