---
title: Deploy Wakapi with AI on Blossom
url: "/deploy/wakapi/"
canonical_url: https://blossom88.com/deploy/wakapi/
markdown_url: https://blossom88.com/deploy/wakapi.md
summary: Deploy Wakapi with AI on Blossom and send coding activity to your own WakaTime-compatible
  dashboard.
categories:
- deployment
- analytics
stack:
- Go
- PostgreSQL
---

# Deploy Wakapi with AI on Blossom

[Wakapi](https://github.com/muety/wakapi) shows how you spend coding time
across projects and tools. It collects activity from WakaTime-compatible
editors and stores it in your database.

![Open coding activity for the sample storefront project.](/deploy/assets/images/wakapi/first-coding-project.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Wakapi on Blossom with managed Postgres and help me see my first project in the dashboard.
>
> Follow this guide: https://blossom88.com/deploy/wakapi/

[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).

## Have Ready

Nothing is required beyond your Blossom account.

- **A WakaTime-compatible editor** (Later): A sample client works for your first project.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Wakapi | Coding activity dashboard and editor API | App Capacity |
| PostgreSQL | Accounts, settings, and coding history | Managed by Blossom |

## Deploy Wakapi

Your dashboard stays behind Blossom Account access and the Wakapi sign-in.
Editors can send activity to the heartbeat endpoint with a Wakapi API key.
[Wakapi is MIT licensed](https://github.com/muety/wakapi/blob/master/LICENSE).

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

Use the [Wakapi build recipe](https://github.com/blossom-cloud/blossom-docs/tree/main/deploy/recipes/wakapi)
and link managed PostgreSQL as `DATABASE_URL`. The recipe's startup
adapter passes the link to Wakapi's native PostgreSQL setting. Set a
stable `WAKAPI_PASSWORD_SALT`, and keep secure cookies enabled over HTTPS.
Allow the exact `/api/compat/wakatime/v1/users/current/heartbeats.bulk`
path through Blossom Account access for the tested editor workflow.

</details>

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

    blossom app_plan:preview --data app-plan.yml
    blossom environment_link:create --data postgres-link.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Connect an Editor

Sign up, open **Settings**, and copy your Wakapi API key into your
editor's [WakaTime extension](https://wakatime.com/plugins). Use your
Wakapi address followed by `/api/compat/wakatime/v1` as the server URL.

> **Ask your AI agent:** Create my Wakapi account and help me set up an API key for my editor.

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



## Track Your First Project

Open a project in your editor and check its name in the Wakapi summary.
You can also use a sample heartbeat to try it without an editor.

> **Ask your AI agent:** Send a sample coding heartbeat and show me the project in the Wakapi summary.

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



## Keep It Running

Update Wakapi using the same linked PostgreSQL database and password
salt. Sign in again and open the summary. Your first project's history
is still there when you add activity from a second project.

![The original and new coding projects after Container replacement.](/deploy/assets/images/wakapi/coding-activity-after-redeploy.webp)

## What You Get

- Coding activity by project, editor, and language
- A WakaTime-compatible endpoint and a private dashboard
- Activity history and account settings in managed PostgreSQL

Tested on Blossom: The original coding activity was still visible after Wakapi Container replacement, and a second project appeared in the same protected report.
