- TypeScript 74.6%
- HTML 18.2%
- Python 3.7%
- CSS 1.5%
- JavaScript 1.3%
- Other 0.7%
| docs | ||
| partnerportaal | ||
| website | ||
| .gitignore | ||
| LICENSE | ||
| README.en.md | ||
| README.md | ||
Very Disco: website and partner portal around the MCP plug-in
Nederlands · Original version: https://code.overheid.nl/SVDJ/very-disco-mcp
AI assistants such as ChatGPT, Claude and Mistral increasingly answer news questions, but they rarely say where an answer came from, and the journalist who did the work gets nothing back. Very Disco built a plug-in (MCP) for AI assistants that searches the work of independent Dutch publishers and cites it, with a link back to the original article. This repository holds the two apps around that plug-in: the public website where publishers and readers signed up and followed the pilot, and the partner portal where publishers see what the AI did with their journalism.
Origin
Built by Team Very Disco in the SVDJ Incubator 2026, in the third quarter of 2026. The plug-in and these apps were tested from 6 to 20 October 2026 in a pilot with more than 90 readers and ten titles: de Kanttekening, Reporters Online, Hard//hoofd, Chris Aalberts, Chris Klomp, Alien Mag, Pan Asian Collective and Hollands Welvaren, plus the archives of Follow the Money and Vers Beton.
Features
Website (website/)
- Landing pages for publishers and for newsmakers, in Dutch and English, with a sign-up form.
- Everything for pilot participants: explanation and installation in ChatGPT or Claude, a mail series, the final survey and a password-protected results page.
- A status page that shows whether the plug-in is up.
Partner portal (partnerportaal/)
- Per publisher: which questions brought up their articles, which articles the AI retrieved in full and what readers clicked through to, down to a single article, author, topic or conversation.
- Settings a publisher changes themselves (status, sources, preferences). Each change reaches the team as a request.
- Admin pages for the team (
/admin): figures across all publishers, sign-ups, requests, feedback and system health.
Project status
Prototype. Built and used for the pilot in October 2026. The pilot has ended; after the hand-over to SVDJ the code is not actively maintained. Both apps build and run (checked on a clean machine, November 2026), but they were built quickly to test ideas: there are few tests and no security audit was done. Review and test anything you take before you rely on it, especially in production or with other people's data.
Screenshot
Project structure
website/ the public website (Next.js)
app/ pages; a folder name is also the web address
page.tsx, landingpage/ page for publishers (+ whitepaper, newspaper version)
nieuwsmaker/ page for newsmakers
deelnemer/ everything for pilot participants, incl. survey/ and uitslag/ (results)
status/ is the plug-in up?
lib/ Very Disco API, sign-ups, mail (Loops), status
db/ database migrations (sign-ups, participants, feedback)
data/pilot/ aggregated results for /uitslag + the scripts that made them
scripts/ migrations, mail scripts (Loops), status probe
proxy.ts picks the right folder per web address (publisher, newsmaker, participant)
deploy/ Docker Compose and deploy script
partnerportaal/ the portal for publishers (Next.js)
app/(portal)/ insights, data, settings
app/admin/ the team's admin side
lib/ login, calculations, requests, digest mail, outage cache
components/ charts, tables, panels
db/ database migrations
deploy/ Docker Compose and deploy script
website/README.md (Dutch) has a table of which web address lives in which folder.
Tech stack
- Frontend and backend: Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS 4, shadcn/ui.
- Database: PostgreSQL 16, one database per app.
- Infrastructure: Docker and Docker Compose, behind Traefik on one server.
- External services: the Very Disco MCP analytics API (the source of all figures; not in this repository), Loops.so for mail (website), Umami for visitor statistics (portal).
- AI models: none. The apps don't use an AI model themselves; they only show what AI assistants did through the plug-in.
Datasets and data sources
- Live data: the figures in the portal and on the website come from the Very Disco MCP analytics API: the questions that came in through the plug-in, the search results and the metadata of articles (title, author, date, link). That API and its data are not in this repository.
- In the repository (
website/data/pilot/):uitslag.json: aggregated pilot figures, the source of the results page;citaten.json: quotes from the final survey, only from participants who gave permission;struikelblokken.json: coded open answers from the survey;bronnen-2026-11-17.json: the list of connected sources as the MCP reported it on 17 November 2026. These files fall under the repository's license. Titles and links of articles in them remain the publishers'. The raw pilot exports (questions and survey answers per participant) are deliberately left out, from the history too.
Development environment
-
Node.js 20 or later (production ran on Node 22), Yarn 4 through Corepack (run
corepack enableonce), PostgreSQL 16, and Docker for production. -
Each app has a
.env.examplewith names and empty or fictional values only. Copy it to.env.localand fill it in. The quickest local database:docker run -d --name svdj-pg -e POSTGRES_PASSWORD=dev -p 5432:5432 postgres:16-alpine docker exec svdj-pg createdb -U postgres website docker exec svdj-pg createdb -U postgres partnerportaal
Website
cd website
cp .env.example .env.local
yarn install
DATABASE_URL=postgres://postgres:dev@localhost:5432/website yarn migrate
yarn dev # http://localhost:3001
Without access to the Very Disco API (VERYDISCO_*) live figures stay empty; the landing
pages, forms and results page still work.
Partner portal
cd partnerportaal
cp .env.example .env.local
yarn install
DATABASE_URL=postgres://postgres:dev@localhost:5432/partnerportaal yarn migrate
yarn dev # http://localhost:3001, log in with password demo1234
Both use port 3001: run them one at a time, or start one with yarn next dev -p 3002. Outside
production the portal login falls back to demo1234; in production set PORTAL_PASSWORDS
and SESSION_SECRET.
Installation and use (production)
Each app has a Dockerfile and a Docker Compose file with the app plus its own Postgres on a
private network:
- website:
website/deploy/preview.compose.yml - partner portal:
partnerportaal/deploy/compose.yml
# from the app's folder; the compose file per app is listed above
GIT_SHA=$(git rev-parse --short HEAD) docker compose -f deploy/<compose-file> --env-file .env up -d --build
deploy/ship.sh is the deploy script we used ourselves (copies the committed code to the
server, builds, and waits until /healthz reports the new version). Set
BOX=user@your-server before running it. The Compose files expect a Traefik proxy; adjust the
labels for your own setup.
Testing
- Partner portal:
cd partnerportaal && yarn testruns the unit tests (Vitest, 29 tests). - Website: no automated tests.
- There is no CI configuration.
API documentation
The apps have no public API for third parties. They do have these internal endpoints:
| App | Endpoint | Purpose |
|---|---|---|
| both | GET /healthz |
is the app up, which version (GIT_SHA) runs, does the database respond |
| partner portal | POST /warm |
fills the cache after a deploy; needs a token derived from SESSION_SECRET |
| partner portal | POST /activiteit |
counts page views of logged-in partners for /admin |
| partner portal | POST /intake/feedback |
adds feedback to the /admin inbox; Authorization: Bearer <FEEDBACK_INTAKE_TOKEN> |
Team
Team Very Disco, SVDJ Incubator 2026.
Transparency about AI use
Generative AI was used in developing this tool, for code assistance and for writing
documentation: most of the code and of this README was written with Claude Code. People decided
what to build, tested everything by using it, and steered the design and the copy. Not every
line of code was reviewed by hand. The CLAUDE.md and AGENTS.md files in each app are the
instructions for that AI assistant.
Future
- Connect more publishers and make the portal settings truly self-service: today the team carries out every request by hand.
- Link clicks to revenue: from "the AI cited your article" to readers who become members or subscribers.
- Decouple the portal from one plug-in, so any publisher can use it with their own data from any AI provider.
- More tests and a security audit before reusing it in production.
