---
title: Deploy flatnotes with AI on Blossom
url: "/deploy/flatnotes/"
canonical_url: https://blossom88.com/deploy/flatnotes/
markdown_url: https://blossom88.com/deploy/flatnotes.md
summary: Write private Markdown notes and find them again after an app update.
categories:
- deployment
- productivity
stack:
- Python
- FastAPI
- Vue
---

# Deploy flatnotes with AI on Blossom

[flatnotes](https://github.com/dullage/flatnotes) is an open-source
note-taking app. It saves each note as a Markdown file and lets you
search the text from a browser.

## Ask Your Agent

> **Ask your AI agent:** Deploy flatnotes privately on Blossom and help me write and find my first note.
>
> Follow this guide: https://blossom88.com/deploy/flatnotes/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| flatnotes | Serve the editor and store Markdown and its search index | Blossom Persistent Service |

## Deploy flatnotes

Use one Persistent Service with a data Volume. Keep Blossom Account
access enabled and set a private flatnotes username and password.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the official image on port 8080. Mount its Volume at `/data` and
preserve the search index alongside the Markdown files. Set
`FLATNOTES_AUTH_TYPE=password` and save the login and a stable
`FLATNOTES_SECRET_KEY` in runtime Environment variables. Use `/health`
for the HTTP readiness probe.
[Upstream Docker setup](https://github.com/dullage/flatnotes#example-docker-run-command).

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data flatnotes-plan.yml
    blossom service:create --data flatnotes-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Save and Find a Note

Sign in and create a note with a word you can search for. Save it,
then search by that word and open the matching result.

![Find a saved note by a word in its body.](/deploy/assets/images/flatnotes/flatnotes-search.webp)

> **Ask your AI agent:** Help me write a Markdown note and find it by a word in the note.

> Follow this guide: https://blossom88.com/deploy/flatnotes/



## Find the Same Note After an Update

Update flatnotes on the same Volume. Sign in and search again.
Open the result to confirm the saved Markdown is still there.

![Open the same Markdown note after Container replacement.](/deploy/assets/images/flatnotes/flatnotes-note.webp)


> **Ask your AI agent:** Update flatnotes and check that I can still find and open my note.

> Follow this guide: https://blossom88.com/deploy/flatnotes/



## What You Get

- A private Markdown note editor
- Search across your saved notes
- A Volume that keeps the notes through updates

Tested on Blossom: The same search found the original Markdown note after replacing the Container on its data Volume.
