Skip to content

Latest commit

 

History

163 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trell

The open-source form analytics platform.
Learn more »

Introduction · Tech Stack · Self-hosting · Contributing

License Stars CI


Introduction

Trell is the open-source form analytics platform for form views, starts & submissions, funnels, and UTM attribution.

Drop one script on your site and Trell tracks every form automatically — views, field interactions, abandons, conversions — with a dashboard, per-form submissions inbox, funnels, and an MCP server so AI agents can query your analytics.

Tech Stack

Self-Hosting

You can self-host Trell for greater control over your data. All settings come from the environment — copy the example file and edit it:

cp .env.example .env
# at minimum: POSTGRES_PASSWORD, TRELL_ADMIN_KEY, AUTH_SECRET, TRELL_ENC_KEY
# public deployments: also set NEXT_PUBLIC_SDK_URL / NEXT_PUBLIC_INGEST_URL
# to your own API origin (they bake into the build)
docker compose up -d --build
  • Dashboard: http://localhost:3000
  • API: http://localhost:8787

Create your first project via the onboarding flow, paste the tracking snippet into your site, and events start flowing. Read the self-hosting guide to learn more (Google OAuth, custom domains, production checklist).

Contributing

We love our contributors! Here's how you can contribute:

Local development

pnpm install
cp .env.example .env
pnpm db:generate
pnpm dev
pnpm typecheck  # strict TS across the monorepo
pnpm test       # all suites (api, web, sdk, mcp, shared)
pnpm build

Tests use in-memory repos — no database needed. For prisma validate/generate outside Docker, any dummy DATABASE_URL works (e.g. postgresql://trell:trell@localhost:5432/trell).

Recommended Versions

Package Version
node v20.x
pnpm 10.33.0

Common Local Development Issues

  • Environment variable not found: DATABASE_URL from prisma – export a dummy DATABASE_URL (see above); no live DB is required for validate/generate.
  • AUTH_DEV_MODE must never be enabled in production during next build – that guard only trips when AUTH_DEV_MODE=true is set; unset it to build.
  • The project is not building correctly locally – verify your versions of node and pnpm match the recommended versions above.

Security model

  • Publishable keys (pk_…) only write events from allowlisted domains.
  • Secret keys (sk_…) are encrypted at rest (TRELL_ENC_KEY) and bypass the domain check — server-side only, never in the browser.
  • Webhook targets are validated against SSRF (no private IPs).
  • Never commit .env files — only .env.example is tracked.

License

AGPL-3.0-or-later — see LICENSE.

About

The open-source form analytics platform — track form views, submissions & conversions, with funnels, UTM attribution and an MCP server.

Topics

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages