Web Application for the Kulturkataster, a platform for mapping and managing cultural places in Berlin.
The Kulturkataster is a Next.js application with an interactive map and a list view of Berlin's cultural places. Registered users maintain place data in an account area, and guests can suggest new places.
There is no separate backend: Next.js serves the UI, server actions and API routes, and Supabase provides the Postgres database, authentication and file storage.
Key Features:
- Interactive map and an accessible list view with search and filters
- German and English, with translations managed in Traduora
- Account area to edit places, categories, tags, groups, users and roles (role-based access)
- Suggestions and updates from guests, reviewed before they go live
- CSV/XLSX export and import of places
- Questionnaire for the Kulturort-Index
- Responsive design, built to WCAG 2.1 AA (see Accessibility)
- Framework: Next.js 16 (App Router), React 19, TypeScript
- Styling: Tailwind CSS v4 with a custom design system
- UI Components: Radix UI primitives
- Mapping: OpenLayers with MapTiler
- State Management: Zustand
- Internationalization: i18next with next-i18n-router, synced with Traduora
- Database and Auth: Supabase (Postgres, Auth, Storage) with Prisma
- Testing: Vitest (unit and integration), Playwright (e2e)
- Deployment: Docker images built with GitHub Actions
- Node.js 24 (the version used in CI and the Docker image)
- npm
- Supabase CLI and Docker, for a local database
- A MapTiler API key for the map
-
Clone the Repository
git clone https://github.com/technologiestiftung/kulturkataster cd kulturkataster -
Install Dependencies
npm install
-
Environment Configuration
Copy the example file and fill in your values:
cp .env.example .env
.env.examplelists every variable with a short comment. See Environment Variables for what is required. -
Database
Start a local Supabase (uses
supabase/config.toml), then apply the schema and data migrations:supabase start npm run prisma:generate npx prisma migrate deploy npm run data:migrate
See
prisma/README.mdanddata-migrations/README.mdfor details.
To start a local development server:
npm run devThe application will be available at http://localhost:3000.
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run format # Check formatting with Prettier
npm run format:fix # Fix formatting
npm test # Unit and integration tests (e2e runs in GitHub CI)
npm run test:unit # Unit tests only
npm run test:integration # Integration tests, need a database configured in .env.test
npm run test:e2e # Playwright e2e, only when needed locallyCopy .env.test.example to .env.test for the integration and e2e tests. To seed a local database with synthetic test data, see E2E Seed.
docker build -t kulturkataster .The server reads its configuration at runtime, so pass your .env file:
docker run -p 3000:3000 --env-file .env kulturkataster.github/workflows/ci.yml runs on every pull request and on pushes to main, dev and release/v*:
- test: format check, lint, unit and integration tests
- build: production build
- e2e: starts a throwaway local Supabase (
supabase/config.toml), applies migrations, seeds synthetic data, then runs the integration and Playwright suites
- Create Release Branch (
release-create.yml, started manually frommainordev) bumps the version (patch, minor or major), creates arelease/v*branch and a GitHub release. - Deploy App (Release) (
deploy-release.yml) runs on pushes torelease/v*. It builds the Docker image and publishes it to the GitHub Container Registry (ghcr.io/technologiestiftung/kulturkataster, tagged with the version), backs up the database, applies the Prisma schema migrations and deploys. Release branches fromdevdeploy to the dev environment, the others to production.
Data migrations (npm run data:migrate) are not part of the release workflow yet and are applied separately after a deployment.
Environment-specific configuration is managed through the GitHub environments main and dev.
The project uses i18next with URL-based locales (/de/…, /en/…). German is the primary language, English the secondary one.
Each locale has one file:
src/lib/i18n/translations/
├── de/translation.json
└── en/translation.json
Each file is grouped into common (general UI labels), content (page and modal content) and enumMap (field labels, options, categories). The app uses the single namespace translation, so keys include the group:
import { useTranslation } from "react-i18next";
function MyComponent() {
const { t } = useTranslation();
return <h1>{t("common.auth.login")}</h1>;
}Add every user-visible text to both files.
Translations are maintained in Traduora. A GitHub workflow (sync-traduora.yml) pulls them every night and opens a pull request with the changes. See scripts/README.md for details.
npm run traduora:push # Upload local translations to Traduora
npm run traduora:pull # Download translations from Traduora
npm run traduora:sync -- <push|pull> # Same, with the action as argument (used by the nightly workflow)src/
├── app/ # Next.js App Router
│ ├── [locale]/ # Localized routes, with parallel routes for modals and the sidebar
│ └── api/ # API routes (e.g. import)
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ ├── Map/ # Map components
│ ├── Filter/ # Filters
│ └── ...
├── server/ # Server-only code
│ ├── actions/ # Server actions
│ ├── data/ # Database access (Prisma repositories)
│ ├── logic/ # Business logic, e.g. import and submissions
│ └── validation/ # Input validation (Zod)
├── lib/ # Shared utilities, hooks, stores and translations
├── generated/ # Generated Prisma client
├── types/ # TypeScript types
└── logos/ # Logos
Client state lives in Zustand stores in src/lib/store/, for example:
- App and map state: UI preferences, map interactions and layers
- Institutions: cultural places and filters
- Account: data for the account area
- Drafts: suggestions for places and questionnaire answers in progress
- TypeScript: strict mode
- ESLint: Next.js configuration with custom rules, including
eslint-plugin-jsx-a11y - Prettier: formatting
- Husky: pre-commit (format, lint, tests) and commit-msg (Conventional Commits) hooks
- Write an issue so we can discuss the change
- Create a feature branch from
dev - Add translations for new text in German and English
- Test locally (
npm run lint,npm test) - Create a pull request to
dev
All variables are listed in .env.example. They are read on the server at runtime.
Required:
SUPABASE_URL,SUPABASE_ANON_KEY,SUPABASE_SERVICE_ROLE_KEYDATABASE_URLMAPTILER_API_KEY,MAP_BOUNDING_BOXSITE_URL
Optional:
TRADUORA_*: load translations from Traduora at runtime; without them the bundled files are usedFILE_STORAGE_BUCKET,SUPABASE_CATEGORY_ICONS_BUCKET: storage bucketsEMAIL_PROVIDERandSMTP_*: transactional emails (noopsends nothing)DOWNLOAD_NOTIFICATION_EMAIL: recipient of institution download notifications (defaultinfo@kulturkataster.berlin)EMAIL_OUTBOX_BATCH_SIZE,EMAIL_OUTBOX_WORKER_ID: batch size (default 25, max 100) and worker ID fornpm run email:dispatchCLEVERREACH_*: newsletter sign-upOTEL_*: telemetry exportCAP_URL,CAP_SITE_KEY,CAP_SECRET_KEY: Cap captcha for guest submissions, off when unsetHIDDEN_MENU_ITEMS,ACCOUNT_AUTO_REFRESH_INTERVAL_MS: UI settings
The Kulturkataster is a public-sector service. We build to WCAG 2.1 level AA, the standard that BITV 2.0 references via EN 301 549, and treat it as the minimum. The legal obligations for the project (including the accessibility statement) are confirmed with the responsible person at the Technologiestiftung Berlin.
Built in for users:
- Accessibility settings (
/accessibilitySettings): dark mode, larger fonts, reduced animations (the OS settingprefers-reduced-motionis respected as well) - Information in German Sign Language (
/signLanguage) and Leichte Sprache (/simpleLanguage) - A list view (
/list) with search and filters as the non-map alternative to the map - Skip link to the main content, keyboard-operable navigation, dialogs and filters
When building UI:
- Use the native element: links navigate (
<Link>), buttons act (<button>). No clickabledivs; for clickable cards use a full-size button behind the content (seeInstitutionCard) instead ofrole="button"on the card. - Every control has an accessible name: icon-only buttons need an
aria-label(ButtonWithTooltipuses the tooltip text by default), inputs need a label. - Keep the visible focus ring (
focus-visible:ring-2/.tab-ring); never onlyoutline-none. - Link form errors to their field with
aria-describedby, mark required fields witharia-required, and give radio and checkbox groups a group label. - Announce dynamic changes (result counts, empty states) through a
role="status"region. - Never convey meaning by colour alone; text needs 4.5:1 contrast, UI borders 3:1.
- Put all user-visible and screen-reader texts in the translation files; accessibility
strings live under
common.a11y.*. - Wrap non-essential animation in
motion-safe:and usegetAccessibleScrollBehavior()for scrolling.
Testing:
npm run lintincludeseslint-plugin-jsx-a11y; treat its warnings as bugs.- For every UI change, complete the flow with the keyboard only (
Tab,Enter,Space, arrow keys,Escape) and check it at 200% zoom and 320px width. - Test significant features with a screen reader (VoiceOver on macOS, NVDA on Windows). Automated checks find only part of the issues.
Before you create a pull request, write an issue so we can discuss your changes.
Thanks goes to these wonderful people (emoji key):
Luise Brandenburger 💻 🎨 |
Jonathan Haudenschild 💻 🚇 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
The source code is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
Texts and content available as CC BY.
© 2025 - Ein Projekt der Kulturraum Berlin gGmbH, gefördert durch die Senatsverwaltung für Kultur und Gesellschaftlichen Zusammenhalt, mit der technischen Umsetzung durch die Technologiestiftung Berlin.
|
Projekt von |
Gefördert durch |
Technische Umsetzung |