Skip to content

About

An open-source content analysis tool, with integrated survey and experiment features

Resources

Security policy

Stars

3 stars

Watchers

3 watching

Forks

Repository files navigation

AnnoTinder

AnnoTinder is a web tool for researchers who have people code texts and answer questions: content analysis, surveys and experiments in one study. A researcher writes a design (questions, units to code, how units are divided over coders), deploys it, and sends coders a link; answers come back with what each coder saw and how long they took.

This repository holds the server, the web client and the shared API contract.

Scripts use the researcher API with an API key, made by hand or through OAuth (the R and Python packages; docs/api/researcher.md). AI assistants such as Claude connect to the MCP endpoint (/api/mcp) with an MCP key, made through OAuth (docs/api/mcp.md).

Getting started

You need Node 22 or newer and pnpm (corepack enable gives you the version in package.json). No Postgres is needed for development: the server uses PGlite (Postgres in WebAssembly) in packages/server/.pglite.

pnpm install
pnpm dev

Then open http://localhost:5173.

  • pnpm dev starts the client (Vite, :5173) and the server (:8787). Vite forwards /api to the server, so both share one origin.
  • The researcher UI is at /research. Without login settings you are logged in automatically (development auth, localhost only).
  • An empty database gets a demo study. Code it at http://localhost:5173/code/demostudy001?link=demo-secret.
  • pnpm reset-db starts over with an empty database.

To try a real login locally, set OIDC_HOST, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET, OIDC_ACCOUNT_URL and ANNOTINDER_PUBLIC_URL=http://localhost:5173 in your shell before pnpm dev (see docs/hosting.md).

Checks and tests

Command What
pnpm test Unit tests of all packages (Vitest). One package: pnpm --filter @annotinder/server test
pnpm test:e2e End-to-end tests (Playwright): a browser against a fresh server with the built client
pnpm typecheck, pnpm lint, pnpm build Across all packages
pnpm format / pnpm format:check Prettier (Markdown is left alone)

For the end-to-end tests, install a browser once with pnpm --filter @annotinder/e2e exec playwright install chromium, or point PLAYWRIGHT_CHROMIUM_PATH at an installed Chromium. Server tests run on PGlite; pnpm --filter @annotinder/server test:pg runs them, and the tests that need a real Postgres, against the scratch server in TEST_DATABASE_URL (packages/server/README.md).

Running a server

A server needs two files, compose.yml and .env (from .env.example), from the same release; no checkout and no build:

mkdir -p /opt/annotinder && cd /opt/annotinder
curl -fsSLO https://raw.githubusercontent.com/ccs-amsterdam/annotinder/v0.10.0/compose.yml
curl -fsSL -o .env https://raw.githubusercontent.com/ccs-amsterdam/annotinder/v0.10.0/.env.example
# fill in .env (ANNOTINDER_VERSION=0.10.0 and the required settings)
docker compose pull && docker compose up -d

compose.yml runs the published image ghcr.io/ccs-amsterdam/annotinder with Postgres and daily database dumps, listening on 127.0.0.1:8787 for a reverse proxy that does HTTPS, and optionally runs Caddy for that (COMPOSE_PROFILES=caddy). compose.build.yml builds the image from a checkout instead. The guide (the login provider, settings, the proxy, updates, backups, monitoring, the Cloudflare proxy, and capacity) is in docs/hosting.md. Who runs a server, and where, is for each server to say: the software and these docs make no statement about it.

Packages

  • packages/contracts: the API contract (zod schemas), shared by client and server.
  • packages/server: the server (Hono, Postgres or PGlite): researcher, coder and admin APIs, and the runtime that hands out units. See its README.
  • packages/client: the React + Vite app the server serves.
  • packages/e2e: the Playwright tests.

Documentation

Help for researchers is in the app (packages/client/src/lib/help/topics).

Licence

Copyright (c) 2026 Kasper Welbers and Wouter van Atteveldt.

AnnoTinder is free software under the GNU Affero General Public License, version 3 or later. A server that runs a changed version must offer its users that version's source code: set ANNOTINDER_SOURCE_URL, which the "About this server" page links to (hosting).

About

An open-source content analysis tool, with integrated survey and experiment features

Resources

Security policy

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages