MCPcopy
hub / github.com/umami-software/umami

github.com/umami-software/umami @v3.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v3.2.0 ↗
2,081 symbols 7,491 edges 924 files 0 documented · 0%
README

Umami Logo

Umami

Umami is a simple, fast, privacy-focused alternative to Google Analytics.

GitHub Release MIT License Build Status Umami Demo


🚀 Getting Started

A detailed getting started guide can be found at umami.is/docs.


🛠 Installing from Source

Requirements

  • A server with Node.js version 18.18+.
  • A PostgreSQL database version v12.14+.

Get the source code and install packages

git clone https://github.com/umami-software/umami.git
cd umami
pnpm install

Configure Umami

Create an .env file with the following:

DATABASE_URL=connection-url

Optional: set API_URL to change the base URL used by internal UI API calls. Relative paths are served under BASE_PATH; absolute URLs are proxied through the local /api route. For example, API_URL=/internal-api or API_URL=https://api.example.com/api.

The connection URL format:

postgresql://username:mypassword@localhost:5432/mydb

Build the Application

pnpm run build

The build step will create tables in your database if you are installing for the first time. It will also create a login user with username admin and password umami.

Start the Application

pnpm run start

By default, this will launch the application on http://localhost:3000. You will need to either proxy requests from your web server or change the port to serve the application directly.


🐳 Installing with Docker

Umami provides Docker images as well as a Docker compose file for easy deployment.

Docker image:

docker pull docker.umami.is/umami-software/umami:latest

Docker compose (Runs Umami with a PostgreSQL database):

docker compose up -d

🔄 Getting Updates

To get the latest features, simply do a pull, install any new dependencies, and rebuild:

git pull
pnpm install
pnpm build

To update the Docker image, simply pull the new images and rebuild:

docker compose pull
docker compose up --force-recreate -d

🛟 Support

GitHub Twitter LinkedIn Discord

Extension points exported contracts — how you extend this code

SelectProps (Interface)
(no doc)
src/types/react-zen.d.ts
WorldMapProps (Interface)
(no doc)
src/components/metrics/WorldMap.tsx
WebsiteStatsData (Interface)
(no doc)
src/queries/sql/getWebsiteStats.ts
KeyValueData (Interface)
(no doc)
src/lib/data.ts
EventData (Interface)
(no doc)
src/tracker/index.d.ts
ShareData (Interface)
(no doc)
src/app/share/ShareProvider.tsx
SeedConfig (Interface)
(no doc)
scripts/seed/index.ts
TooltipProps (Interface)
(no doc)
src/types/react-zen.d.ts

Core symbols most depended-on inside this repo

useMessages
called by 249
src/components/hooks/useMessages.ts
json
called by 149
src/lib/response.ts
error
called by 145
scripts/check-db.js
parseRequest
called by 144
src/lib/request.ts
rawQuery
called by 137
src/lib/prisma.ts
unauthorized
called by 133
src/lib/response.ts
parseFilters
called by 112
src/lib/prisma.ts
useNavigation
called by 92
src/components/hooks/useNavigation.ts

Shape

Function 1,853
Interface 205
Method 17
Class 6

Languages

TypeScript100%

Modules by API surface

src/recorder/index.js40 symbols
src/lib/types.ts27 symbols
src/lib/prisma.ts26 symbols
src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx26 symbols
src/queries/sql/heatmap/getHeatmap.ts24 symbols
src/tracker/index.js22 symbols
src/lib/clickhouse.ts19 symbols
src/lib/date.ts18 symbols
src/lib/redis.ts15 symbols
src/queries/prisma/website.ts14 symbols
scripts/seed/utils.ts14 symbols
src/lib/boards.ts13 symbols

Dependencies from manifests, versioned

@biomejs/biome2.5.0 · 1×
@clickhouse/client1.20.0 · 1×
@date-fns/utc2.1.1 · 1×
@dicebear/collection9.4.2 · 1×
@dicebear/core9.4.2 · 1×
@hello-pangea/dnd18.0.1 · 1×
@netlify/plugin-nextjs5.15.11 · 1×
@playwright/test1.60.0 · 1×
@prisma/adapter-pg7.8.0 · 1×
@prisma/client7.8.0 · 1×
@prisma/extension-read-replicas0.5.0 · 1×
@rollup/plugin-alias6.0.0 · 1×

Datastores touched

umamiDatabase · 1 repos
dummyDatabase · 1 repos
mydbDatabase · 1 repos

For agents

$ claude mcp add umami \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact