> ## Documentation Index
> Fetch the complete documentation index at: https://paper.brimble.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit a template

> Share a brimble.toml for an app others would find useful. The Brimble team reviews every submission before it appears in Templates.

Any Brimble user can submit a template. A submission is a [brimble.toml](https://paper.brimble.io/config-as-code/brimble-toml.md) file plus a name and description. The Brimble team reviews every submission before it appears in **Templates**.

## Submit

1. In the sidebar, click **Templates**.
2. Click **Create**, then **Submit template**.
3. Fill in the form:
   * **Name**: 2 to 60 characters, for example `Plausible Analytics`.
   * **Short description**: 10 to 300 characters. What the app is and what people use it for.
   * **Category**: one of the existing categories.
   * **Tags**: optional, comma separated, up to 8.
   * **Website** and **Documentation**: optional `https://` links to the app's site and docs.
   * **Logo URL**: optional `https://` link to an SVG or PNG.
   * **brimble.toml**: drag the file in or click to browse.
   * **Long description**: optional Markdown. Setup steps, features, and anything a new user should know.
4. Click **Submit for review**.

The file is checked as soon as you add it. Problems are listed with their line numbers, and **Submit for review** stays disabled until the file is valid.

A submission is rejected straight away if:

* The file isn't a valid `brimble.toml`.
* It has no services.
* A service doesn't set `image`. Templates deploy from prebuilt images, never from a repository.
* The file is larger than 64 KB.

You can have up to 5 submissions waiting for review at once.

## Track a submission

Your submissions are listed under **Your submissions** on the same page, with their status:

| Status | Meaning |
| - | - |
| **In review** | Waiting for the Brimble team. |
| **Published** | Live in Templates. |
| **Not accepted** | Rejected. The reviewer's note is shown under the submission. |
| **Archived** | Was published, and has been taken out of Templates. |

## What makes a good template

People deploy a template without reading its file first. It should start and work on the first try.

* **Use a prebuilt public image.** Set `image` on every service to an image anyone can pull. Use the app's official image when there is one.
* **Don't build or install anything at first start.** The image should already contain the app and its dependencies. An image that compiles, downloads packages, or runs a long setup when the container starts is slow to come up and breaks when that download fails.
* **One HTTP port per service.** Set it with `port` under `[services.<name>.deploy]`. If the app has a second HTTP interface, such as an admin panel on another port, run it as a separate service.
* **Configure through environment variables only.** Put settings under `[services.<name>.env]`, and connect databases and buckets with [references](https://paper.brimble.io/environments/env-references.md), for example `{{@db.PRIVATE_CONNECTION_STRING}}`. Avoid apps that need a config file edited before they start.
* **Keep data on a volume.** If the app writes files it needs after a restart, add a `[services.<name>.volume]` with the path it writes to.
* **Use a managed database** under `[databases.<name>]` rather than running a database image as a service.

### Secrets and values from the person deploying

Never put secret values in the file. Anyone who opens a published template can download its file.

If the app needs a generated secret, a value only the person deploying can provide (such as an admin email), or its own public URL, leave that variable out of the file and list it in the long description with what it's for. When someone deploys a published template, Brimble generates secrets, asks for the values they provide, and sets the URL and hostname variables. See [Values Brimble fills in for you](https://paper.brimble.io/templates/overview.md#values-brimble-fills-in-for-you).

## Test before you submit

Deploy your file yourself first. Click **Create**, then **Create project**, choose **brimble.toml**, and upload it. Set the variables you left out under each service's **Environment**, then check that the app starts and works. See [Deploy an app from a template](https://paper.brimble.io/templates/overview.md#download-the-brimble-toml-and-deploy-it-yourself).

For every field the file supports, see the [brimble.toml reference](https://paper.brimble.io/config-as-code/reference.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.