bitcircus101 is a tech and creative space located in Bonn, Germany.
This repository contains the website for bitcircus101.
| Branch | Purpose |
|---|---|
feat/…, fix/… |
Short-lived branches — all changes land here first, then merge to main via PR; delete after merge |
main |
Integration branch (no direct pushes for normal work; see CONTRIBUTING.md) |
live |
Production branch — served by GitHub Pages. CI actions commit generated files here, as a single parentless commit each time (scripts/push-live.sh): live keeps no history |
One line per file below — the detail lives in each file's own header comment,
which is the place to read before changing one. The five shared *-core.js
modules (ics-core.js, events-core.js, finanz-core.js, jobs-core.js,
status-core.js) are
UMD/ES5 on purpose: the same file is loaded by a <script> tag in the
browser and require()d by CI scripts, so neither ESM syntax nor modern
syntax may be introduced there.
index.html Main landing page
events.html Events page (loads events-data.json)
support.html Donation / funding page (loads finanz.json)
pinnwand.html Job board ("Pinnwand") — renders jobs.json in the browser
raum-nutzen.html Room usage info
rss.html Feed overview (/rss): every RSS/iCal feed, how to subscribe
status.html Status page (/status): which events happened, which fell through —
bars per week/month/quarter/year (loads status-data.json + finanz.json)
impressum-datenschutz.html Legal / privacy
dankedankedanke.html Thank you page
ascii/index.html Internal ASCII playground (/ascii/) — noindex, not in nav; strict system monospace
chat/index.html Signal group entry point (/chat/)
lite/index.html Zero-JS view — inlined stylesheet, generated event + funding blocks
kiosk/index.html Chrome-less wall display (/kiosk/) — noindex, unlisted, JSON only
kiosk.js Frontend for that wall display (not part of the shared layout)
google18556084d38e4dd8.html Google Search Console verification (do not delete)
CNAME GitHub Pages custom domain (bitcircus101.de) — tracked here because the
deploy prunes every live file main lacks; without it the domain drops
includes/
site-skip.html Shared skip link; inlined into pages by build:layout
site-header.html Shared <header> (nav); inlined into pages by build:layout
site-footer.html Shared <footer>; inlined into pages by build:layout
scripts/inject-layout.mjs Writes header/footer into the nine layout HTML files and stamps
the footer percent from funding.json (data-funding) — so no page
fetches funding.json
style.css Global styles (ink + one green accent, plain-text/man-page theme, dark default + light toggle)
main.js Frontend: nav, carousel, map, events preview, footer, w/a/s/d cursor
storage.js Central localStorage wrapper — all keys in one place, exception-safe
events.js Frontend: fetches events-data.json, renders event cards, tag filtering
events-core.js Shared card shaping (tags, type, relations) for the pages + CI sync
(key order pinned by a golden test in tests/sync-events.spec.mjs)
ics-core.js Shared ICS parser for the CI sync; the browser uses its eventAnchor
status.js Frontend: draws the /status bar rows, the zoom detail, the incident list, the pulse
status-core.js Shared timeline math for /status (bucket ladder, states, pulse months); unit-tested
calendars/ Calendar source definitions (config.json manifest + one file per source)
calendars/README.md How to add a source — fields, source types, filter rules
feeds/ Filtered ICS/RSS feeds per tag & source (generated by CI, live branch only)
finanz.json Cost/funding board data (edited via pnpm run finanz)
finanz-core.js Shared funding math (percentages, ASCII bars, pulse) for finanz.js
and the maintainer CLI
finanz.js Frontend: cost/funding board on support.html, plus the value-free
funding sparkline (opt-in, needs finanz.json pulse) — one fetch for both
finanz.schema.json Structural contract for finanz.json
jobs.json Job board postings (one object per posting, added by PR)
jobs.schema.json Structural contract for jobs.json
jobs.js Frontend: renders the active postings into #jobs-postings on
pinnwand.html (the invite note after them is static markup — the
empty state, and nothing shifts when postings land); escapes every
field, refuses a non-https url
jobs-core.js Shared expiry math for jobs.js + the CI gate
funding.json Footer funding percentage (edited via pnpm run finanz percent, then
pnpm run build:layout — the value is stamped into the HTML, not fetched)
scripts/
sync-events.mjs Fetches the calendars' ICS feeds, generates events-data.json + feed.xml
build-calendar-page.mjs /calendar/ — the subscribe page, listed from the feeds manifest
rss.mjs RSS 2.0 envelope shared by every feed (ttl, image, namespaces)
html-text.mjs esc/linkify/paragraphs — description → HTML for pages and feeds
build-pinnwand-feed.mjs Renders the active jobs.json postings to pinnwand/feed.xml (live-only)
build-status-data.mjs Derives status-data.json (the /status timeline) from events-archive.json (live-only)
and stamps the homepage's uptime line between its <!-- status-streak --> markers
check-calendars.mjs Offline manifest validator + read-only --probe preview of an ICS URL
build-logo-slider.mjs Writes the homepage logo strip from images/logo-slider/
finanz.mjs Maintainer CLI for finanz.json / funding.json (--json, --help)
finanz-data.mjs Pure data layer behind that CLI (mutate + validate)
validate.mjs Field predicates (isCalendarDate, isCleanHttpsUrl) shared by the
funding data layer and the job board gate — belongs to neither
build-lite-finanz.mjs Writes the lite page's funding block + Stand date from finanz.json
build-lite-events.mjs Writes the lite page's event list (deploy-only — live data, never drift-free)
check-jobs.mjs Offline gate for jobs.json (errors exit 1, expiry only warns);
validate() is pure, staleWarnings() takes the day in
live-overlay.mjs Deploy: main onto live, preserving CI feeds and pruning dropped files
cache-bust.mjs Deploy: appends ?v= to local asset links
smoke-live.mjs Deploy: post-deploy health check incl. a full sitemap walk —
any non-200 breaks the deploy
tests/
site.spec.js Playwright end-to-end tests (Chromium + Mobile Chrome)
sync-events.spec.mjs Unit tests for the ICS parser, RRULE expansion and the feeds
finanz-cli.spec.mjs Exit codes, --json contract and amount prompts of the funding CLI
jobs-core.spec.mjs Expiry math: month overflow, both boundaries, ordering
jobs-data.spec.mjs jobs.json gate: every error class, schema lockstep, page snippet
markup.spec.mjs Repo-wide invariants: no inline styles, no external fonts
(plus one spec per module: calendars, deploy scripts, finanz, lite)
playwright.config.js Playwright config (Chromium, Mobile Chrome)
.forgejo/workflows/
ci.yml The PR gate — PRs live on Forgejo, so this is the file that runs
.github/workflows/
ci.yml Twin of the above, runs on the GitHub mirror — keep both in lockstep
deploy.yml Test on main → deploy to live
sync-events.yml Calendar sync (hourly)
release.yml Create release (manual, calver tags)
llms.txt LLM-friendly site summary (llms.txt standard)
changelog.md Release history
robots.txt Crawler rules (allows AI bots, blocks /ascii/)
CI writes these — never hand-edit them. The calendar-sync outputs exist only
on live (they are git-ignored on main); only sitemap.xml keeps a seed on
main:
| File | Generated by | Schedule |
|---|---|---|
events-data.json |
sync-events.yml |
Hourly |
feed.xml (RSS) |
sync-events.yml |
Hourly |
ical.ics |
sync-events.yml |
Hourly |
events/feed.xml, events/ical.ics |
sync-events.yml |
Hourly |
feeds/ |
sync-events.yml |
Hourly |
events-archive.json |
sync-events.yml |
Hourly (append-only) |
e/<id>/index.html, e/<id>/event.ics |
sync-events.yml and deploy.yml → build-event-pages.mjs |
Hourly, and on deploy (sitemap) |
calendar/index.html |
sync-events.yml and deploy.yml → build-calendar-page.mjs |
Hourly, and on deploy |
pinnwand/feed.xml |
sync-events.yml and deploy.yml → build-pinnwand-feed.mjs |
Hourly, and on deploy |
status-data.json |
sync-events.yml and deploy.yml → build-status-data.mjs |
Hourly, and on deploy |
index.html (the streak line only) |
sync-events.yml and deploy.yml → build-status-data.mjs |
Hourly, and on deploy |
sitemap.xml |
deploy.yml |
Every deploy (push to main) |
ical.icsis the aggregator-facing iCal export with realDTSTART/DTENDand a bundled VTIMEZONE; times are floating-local (CI pinsTZ=Europe/Berlin).events/feed.xmlandevents/ical.icsare copies, so a relative<link>resolved from the/eventsclean URL still hits the real feed.feed.xmllists every primary card in the window (no item cap), carries the full description as HTML incontent:encodedwith a plain-text teaser indescription, and deriveslastBuildDatefrom the newestfirstSeen— the bytes only change when the events do, so readers get a 304. The envelope (ttl,image, namespaces) lives inscripts/rss.mjs, shared withpinnwand/feed.xml. Every page with the shared nav announces both feeds via<link rel="alternate">;/rss(rss.html) is the human-readable index.feeds/holds the filtered ICS/RSS per tag (feeds/tag/<slug>.*), per source (feeds/source/<id>.*) andfeeds/all.*, in the same ≤40-event window as the page. Thefeedsmanifest insideevents-data.jsonmaps them — the frontend never derives slugs.events-archive.jsonkeeps every card the primary sources (relationown/home, orrss: true) ever exported sinceARCHIVE_MIN_DATE(seescripts/sync-events.mjs), keyed by the cardid— a hash of the calendar UID (plus the date for series occurrences), so a shared link survives a reschedule and needs no registry. Entries are never deleted; two things flag onecancelled: an upcoming entry vanishing from a healthy export (cancelledBy: "vanished"), or a title that starts with CANCELED / CANCELLED / ABGESAGT (cancelledBy: "title",isCancelledTitleinevents-core.js) — the owner's way to cancel: rename, don't delete, it works after the date too (until the day is over — see below) and reaches the feeds (STATUS:CANCELLED), the JSON-LD (EventCancelled), the event page and/statusalike — and the lists:/events, the homepage preview and/kiosk/show the title without the marker, struck through, labelled „abgesagt" (stripCancelMarker; the data keeps the raw title). Renaming one occurrence of a series works the same way: the calendar writes aRECURRENCE-IDoverride, whichics-core.jstreats as a replacement of that occurrence (sameuid|dateid), so only that Friday is marked. Entries flagged before the reason existed carry nocancelledByand read as vanished. A series taken out of a calendar is not cancelled: when its UID no longer reaches an upcoming entry — gone from the export, or ended before it (Apple Calendar's „dieses und alle zukünftigen“ writes anUNTIL) — the entry isremovedinstead — the page stays (noindex, no ics, „steht nicht mehr in unserem Kalender“),/statusleaves them out. Deleting one date of a series (or a one-off) still reads as vanished. Privacy: once its day is over an entry keeps onlyPAST_FIELDS— id, date, type, source, the seen-stamps, the cancelled and removed flags; no title, description, location or uid.scripts/build-event-pages.mjsrenders the archive intoe/<id>/(the RSS item links and the JSON-LDurlpoint there): a full page + single-event.icswhile the event is upcoming, a noindex stub („Dieser Termin hat stattgefunden.“ / „… wurde abgesagt.“) afterwards, so shared links keep resolving. An upcoming page of a series lists its next four other dates („Weitere Termine · jeden Dienstag“). There is no archive index. The checkout'sevents.htmlis the header/footer template. Locally:pnpm run build:event-pages <archive.json>./status(scripts/build-status-data.mjs) leaves out vanished entries that stood in the export for less than three calendar days (typos, not events); a marked title is never noise. Itsstatus-data.jsoncarries only whether an event took place (date,series,cancelled) — no title, no id.
finanz.json and funding.json are not in that list — they are versioned on
main and edited through the maintainer CLI — never by hand, and no longer by a
workflow. finanz.json feeds the cost/funding
board on support.html#projekte, funding.json the footer's "LIGHTS ON?"
percentage — stamped into every layout page by pnpm run build:layout
(data-funding on the footer status), so the browser never fetches it:
pnpm run finanz # interactive menu (prints the board first)
pnpm run finanz --help # usage on stdout, exit 0
pnpm run finanz list [--json] # print the board (--json: machine-readable, JSON only)
pnpm run finanz validate --json # { ok, errors } instead of prose
pnpm run finanz raise <id> <amt> # add to a project's "raised" (negative allowed)
pnpm run finanz finish <id> # raised = target
pnpm run finanz pulse <0..7> # append a value-free heartbeat level
pnpm run finanz percent 25 # set the footer percentage
pnpm run finanz:validate # validate against finanz.schema.json (a CI and deploy gate)add and monthly (and the bare menu) are interactive and exit 1 without a
TTY rather than silently doing nothing. Amounts are whole euros — the schema
has no cents, so a decimal is refused where it is typed, naming the input
("12,50") rather than the sum it would have produced; the interactive prompts
re-ask instead of dropping out.
Every write validates first and refuses with an error naming the bad field, so
an invalid finanz.json never reaches disk. --json derives every number
through finanz-core.js, so list --json cannot drift from what support.html
renders.
Privacy by construction: the board holds only rounded aggregate totals plus
a value-free 0..7 "pulse" track — never euro amounts, donor names or
per-donation records. The pulse is opt-in: finanz.json ships without a pulse
key and finanz.js renders nothing until one exists. The track gets a time
axis through an optional start month (YYYY-MM; levels[i] is start + i
months, one level per calendar month, no gaps): pnpm run finanz pulse <0..7> --start YYYY-MM once, then pnpm run finanz pulse <0..7> each month — a
backfill is the same command repeated from the first month. Without start,
/status shows no pulse at all.
finanz.schema.json is the structural contract; scripts/finanz-data.mjs
mirrors it in a hand-rolled validator (no ajv, no new dependency), and
tests/finanz-data.spec.mjs asserts the two stay in lockstep.
pnpm run finanz:validate is a gate in both ci.yml twins and in
deploy.yml — that catches the one path the CLI cannot: a hand-edited JSON
pushed straight to main.
After changing finanz.json, run pnpm run build:lite-finanz and commit
lite/index.html alongside it — the lite page's "Projekte & Kosten" block and
its "Stand" date are generated from it, and the drift gate fails the PR
otherwise.
The schema accepts optional url1/url2 per item and the CLI offers them, but
finanz.js does not render them yet (staged separately, issue #28).
jobs.json feeds pinnwand.html: one object per posting, eight required fields,
no optional ones — among them location (free text) and employment (one or
more keys; the German labels live in jobs-core.js). Companies add theirs by pull request — the how-to, the
copy-paste snippets and the house rules live on the page itself, so the
instructions and the gate cannot drift apart — a unit test parses both snippets
out of the HTML and validates them. scripts/build-pinnwand-feed.mjs renders
the active postings as RSS (pinnwand/feed.xml, live-only — see Generated
files); its window logic is jobs-core.js, the same the browser uses.
The second key, karussell, is the permanent slot (Dauerplatz): name and
https link per entry, no dates. The invite note — always the last card — cycles
those names through its title (jobs.js, 7 s; held still while the card is
hovered, focused or touched and while the tab is hidden; under
prefers-reduced-motion one random name stands for the whole visit, no
cycling). Only the title text changes, and the title is pinned to one line by
CSS with names capped at 24 characters, so the card's height — and the how-to
below — never moves. A slot runs for a year and the list is curated by hand:
remove an entry when its year runs out. The key is optional — without it, or
when the fetch fails, the note keeps its static title.
The third key, chiffre, holds anonymous notes from people looking for
work ("unter Chiffre", section #chiffre on the page). A note carries a
Chiffre id (0x + 2–4 hex digits), a headline, a coarse level
(entry/experienced/senior), location, employment, 1–8 skills, a short
about, the same from/months runtime, and an optional contact. Notes
come in by pull request like postings (mail to info@ stays open for people
without git), and nothing personal goes on a note — the git history
forgets nothing, and the page says so in a folded note next to the how-to. The card's
main action is a mailto:[email protected] with subject CHIFFRE <id>;
with contact — a bare mailto: to an address the person chose to make
public, e.g. an alias; gate and page both check it against
JobsCore.CHIFFRE_CONTACT_RE — a second "direkt schreiben" link sits next to it.
The gate warns (never fails) when the other fields look like contact details.
Chiffre notes stay out of pinnwand/feed.xml on purpose — a feed reader keeps
copies after a note comes down.
Maintainer procedure: before merging a Chiffre PR, read it for anything
personal (name, employer, private address — also in the commit and PR text).
The person picks the id; the gate catches a collision. Never --no-ff-merge
a Chiffre PR — the web editor's commit carries the person's name and mail:
commit the entry yourself under your own identity (git merge --squash, then a
plain commit) and close the PR. For the route through us, wait for their
separate mail with subject WEITERLEITUNG <id>, reply with a short code, and
store id → mail address outside the repo (the space's password manager)
only once that code shows up as a comment on their PR — the id is public, so
the mail alone proves nothing. A private address in the PR itself means: close
the PR unmerged (a fix-up commit leaves it on GitHub) and ask for a new one. A
mailed-in snippet → commit it for them; the sender address is the forwarding
address. A company mail with subject
CHIFFRE <id> → forward it unchanged to that address. Take a note down on
request or when it expires, and then delete the mapping, the submission mail
and the forwarded mails — the privacy page promises all three.
pnpm run check:jobs # the gate: node scripts/check-jobs.mjs [file]- Runtime is
months: 1 | 3 | 12— any other duration is refused at the gate. The three numbers appear injobs-core.js, in the schema enum and in the pitch on the page; unit tests hold all three to each other. - A note is not sold, and the page must not sound like it is. Three gates in
tests/jobs-data.spec.mjsenforce that, and they exist because the wording keeps drifting back: no currency anywhere inpinnwand.htmlor in the schema description (symbol, HTML entities and the spelled-out word alike), no German vocabulary of buying (Tarif, Preis, Gebühr, Rechnung, Gegenleistung, bezahlen, kostet —kostenlosstays fine), and no number in the pitch paragraph other than the runtimes themselves, so an amount cannot arrive as a bare "Richtwert". - The static sample note (
#jobs-sample) shows what a Zettel looks like on an empty wall: leetspeak, an invented company, and its only link points at the how-to.jobs.jssetshiddenon it as soon as real postings render, so it never stands between actual vacancies. - Half-open expiry: a posting is up from
fromthrough the day before the same day-of-monthmonthslater — "1 month from 01.09." means up to and including 30.09. If that day-of-month does not exist in the target month (31.01. + 1), the run ends on the target month's last day. The math lives once, injobs-core.js, used by both the browser and the gate. - The browser filters against the visitor's own calendar day, so a posting comes down on its own last day with no redeploy.
- Expiry is a warning, never an error:
check-jobs.mjsruns in bothci.ymltwins and indeploy.yml, and failing on an expired posting would turn every deploy red on the day one runs out. - A merge never waits on a donation, and nothing ties a note to a payment —
no payment check, no reference code. Support lives one link away: the page's
closing line points at
support.htmland stands on its own, and nothing on the wall depends on it — don't wire the two together. - No amounts and no contact details ever enter
jobs.json. Postings link to a vacancy hosted by the company; Chiffre notes are the one kind of applicant data in the file — pseudonymous, and their only action is the relay mail. jobs.jsescapes every field and independently refuses a non-httpsurl, even though the gate already rejects one — an E2E test feeds the renderer postings the gate would have refused. Don't remove the second guard as "redundant".- Removing an expired entry is housekeeping; the warning is the reminder.
- The page is the wall. One paragraph names the offer; everything procedural
(the three steps, the snippet, the house rules, the Chiffre how-to) sits in
collapsed
details.sidenoteblocks, the same idiomraum-nutzen.htmluses. Companies are addressed as ihr — which is why the invite note says "Euer". The Chiffre section speaks to job seekers as du, like the rest of the site. Never write "sich aufhängen" for the person — it reads as "hang oneself"; the note is what gets hung up.
main (push) → Unit tests → Sync script → Playwright E2E → Deploy to live
Every push to main triggers:
- Layout sync check:
scripts/inject-layout.mjsmust not change any committed*.html - Unit tests: ICS parser, RRULE expansion, date parsing (node:test)
- Sync script: Generates
events-data.jsonfor E2E tests to use - E2E tests: Playwright across 2 browsers (Chromium + Mobile Chrome)
- Deploy (only if all tests pass): Re-runs the generators (layout inject, logo strip, lite
blocks) before cache-busting, syncs site files from
maintolive, prunes files no longer tracked onmain, regeneratessitemap.xmlwithcicirello/generate-sitemap, then replaceslivewith one parentless commit (scripts/push-live.sh)
PRs get lightweight CI: same layout check + unit tests (no Playwright). See CONTRIBUTING.md.
The file that actually runs is .forgejo/workflows/ci.yml, because PRs live on
Forgejo; .github/workflows/ci.yml is its twin for the GitHub mirror. Both files
carry the reason in their header comment, and CLAUDE.md carries the rule to keep them in lockstep.
Nothing reaches production without passing all tests first.
- Trigger: hourly at :17 via
workflow_dispatchfrom a cron on our own server, plus manual. The*/30schedule in the workflow is only a fallback: GitHub drops most scheduled runs (gaps of 2.5–10 h, median ~5 h, measured October 2026), so the real cadence comes from the dispatch - Branch: Checks out
live, pulls scripts/config frommain - What it does:
- Runs
scripts/sync-events.mjs(Node 22, zero dependencies) - Fetches ICS feeds from all sources listed in
calendars/config.json - Parses VEVENT entries, expands RRULE recurrences (weekly; monthly with BYDAY lists —
1FR,2FR,4FR,5FR— and BYSETPOS lists) - Filters out internal/blocker events and those that are over (
isOverinevents-core.js) - Generates
events-data.jsonwithlastSyncand, per source, ahashof the fetched ICS pluschangedAt(max 40 cards, 120-day horizon) - Generates
feed.xml(RSS 2.0, primary calendar only, every card in the window) - Runs
scripts/build-pinnwand-feed.mjs(pinnwand/feed.xmlfromjobs.json) - Runs
scripts/build-status-data.mjs(status-data.jsonfor/statusfromevents-archive.json) - Replaces
livewith one parentless commit (scripts/push-live.sh, rebases onto a concurrent push first) — always on the hourlyworkflow_dispatch; aschedule(cron fallback) run is skipped whenscripts/sync-commit-gate.mjsfinds onlylastSync/fetchedAtmoved and the publishedlastSyncis under 50 min old (each push toliveis a Pages build)
- Runs
- Trigger: Manual (
workflow_dispatch) - Branch:
main - Versioning: CalVer —
v2026.03.28(.Nsuffix for same-day releases) - What it does:
- Determines next calver tag (checks for existing same-day tags)
- Collects commits since last tag, drops CI bot / merge commits
- Groups by conventional commit prefix (Features, Fixes, Styling, Docs, Maintenance, Other)
- Creates git tag and GitHub Release with auto-generated notes
- Prepends release to
changelog.mdand commits tomain
Releases are decoupled from deploys — every merge to main deploys automatically, but releases are created manually when enough changes have accumulated.
sitemap.xml used to be regenerated by its own workflow triggered on push: branches: [live],
but the deploy job's push uses the default GITHUB_TOKEN and GitHub does not fire follow-on
workflow runs for pushes made with that token — so the sitemap silently stopped updating after
its first run. Generation now happens as a step inside the deploy job (same
cicirello/generate-sitemap action, same pin, same options), right before the commit-and-push
step, so it always lands in the same deploy commit:
- Uses
cicirello/generate-sitemapto scan all HTML files - Honors
noindexmeta androbots.txtDisallowautomatically;exclude-pathscovers the Google verification stub anddonations.html;drop-html-extension: true(deploy.yml) is what keeps the sitemap on the canonical extension-less URLs - Commits
sitemap.xmltolivetogether with the rest of the deploy
Every source has its own JSON file. calendars/config.json is the manifest that lists which sources are active and in what order:
calendars/
README.md the full guide
config.json manifest
bitcircus.json our calendar (relation: own)
look-at-my-toys.json at bitcircus101 (relation: home)
datenburg.json a friend's space (relation: friend)
Active sources right now (calendars/config.json):
| ID | Name | Type | Relation | Primary feed + pages |
|---|---|---|---|---|
bitcircus |
bitcircus101 | ics-full | own | yes |
look-at-my-toys |
Look at my toys! | ics-full | home | yes |
datenburg |
Datenburg e.V. | ics-full | friend | no |
To add a calendar: create the source JSON in calendars/ (or a subdirectory) and add its path to sources in config.json. Order in sources is dedupe priority. relation says what the calendar is to the space — own (exactly one), home (its events take place at bitcircus101) or friend (the default: opt-in on /termine, its own source feed, never in the primary feed, the homepage, /status or lite); every page and script reads it from the data, never from the source name. To temporarily disable: remove the path from sources — the file stays put; an unlisted source file is only a warning at the gate, because parking one is intentional. A source's name must be unique — it keys the stale cache, the archive, the RSS filter and the relation map.
type |
Use | Filter |
|---|---|---|
ics-full (default) |
Pull entire calendar | – |
ics-single |
Single curated event ICS URL | – |
ics-filtered |
Full calendar, narrowed by lists | categoryAllow, categoryDeny, titleAllow, titleDeny |
External sources also accept tags (always-added hashtags), cap (per-source slot override), and eventUrl (overrides the per-event link when ICS has no URL field).
Example of an external single-event source (calendars/<id>.json, and add the
path to sources; no relation means friend):
{
"id": "kult41-theater-tumult",
"name": "Kult 41",
"type": "ics-single",
"ics": "https://kult41.de/events/<event>/ical/",
"url": "https://kult41.de/veranstaltungen/programm",
"tags": ["#kult41", "#theater"]
}Tags are resolved in priority order:
- Explicit
#hashtagsin the event description (e.g.#workshop #hardware) - ICS CATEGORIES field (set in the calendar app)
- Keyword auto-detection from title + description (fallback)
If no tags match, the event gets #community as default.
- Events with "blocker" or "interne veranstaltung" in the title are excluded
- An event shows until it is over (up to 120 days ahead): a timed one until
its end, an all-day one — or a timed one without an end — to the end of its
day. One rule,
isOverinevents-core.js, for the sync and every list (/events, homepage, kiosk, lite) - Max 30 events per calendar, 40 total
- Loads
events-data.json; without it the list says so and links the calendar page - Renders event cards grouped by month; months unfold until six cards show, so the end of a month never leaves a single card in view
- A series' later dates (same source + calendar UID,
seriesKeyinevents-core.js) are one line — title, time, links; its first card carries the text, the place, the tags and the rhythm („jeden Dienstag“, „jeden 3. Freitag“ —rhythmLabel). A cancelled date of a series is always one line - Times as a window („19:00–22:00“), all-day events as „ganztägig“; before it
„läuft“ (with the green dot), „heute“ or „morgen“ (
whenWord). The homepage preview shows the same, and links an event with a page of its own there - Dynamic tag filter bar (OR logic: any matching tag shows event)
- A row of checkboxes for the friends' calendars (
?mit=<id>); the events at bitcircus101 are always on - Another group's event says whose it is in a framed line under the title and
links their site — home: „veranstaltet von …", friend: „externer Termin von …"
(
origininevents-core.js; the site issite, elseurl, incalendars/<id>.json). The event page carries the same line above the date, the lite list a short form - Permalink anchors with smooth scroll
- The next eight lines of events at bitcircus101 (own + home sources) in
lite/index.html, written on live by the sync and the deploy — the tracked file keeps the no-data placeholder - A series takes one line, its next date — with its rhythm („jeden Dienstag“, „jeden 3. Freitag“) when three dates or more show one. A cancelled date keeps a line of its own, struck through and labelled „abgesagt“
- „läuft“ / „heute“ / „morgen“ after the date, as of the hourly build
- On a phone the date stands above the title
- Against a fixture, into a copy:
node scripts/build-lite-events.mjs <events-data.json> <lite.html>
Site chrome (nav + footer): Edit includes/site-header.html and includes/site-footer.html, then run pnpm run build:layout and commit the partials plus updated *.html. Documented in CONTRIBUTING.md.
Static site — open HTML files directly or use any local server:
python3 -m http.server 8080Contributors only need the quick check — see CONTRIBUTING.md.
pnpm install # pnpm-only — npm/yarn are blocked by a preinstall guard
pnpm run test:quick # unit tests only (~100ms, no browser needed; test:unit is an alias)
pnpm test # full suite (unit + E2E, used by CI)
pnpm run test:e2e # only Playwright E2E (needs: pnpm exec playwright install)
pnpm run test:headed # E2E with browser window
pnpm run test:ui # Playwright UI modePlaywright serves the checkout on :8080; a linked git worktree gets its own
port derived from its path, and the global setup stops the run when the port
answers with another checkout's files (X-Serve-Root from tests/serve.mjs).
Unit tests (tests/sync-events.spec.mjs; pnpm run test:quick runs every
spec under tests/*.spec.mjs):
| Area | What is tested |
|---|---|
parseDate |
All-day dates, datetime with timezone, UTC, null inputs |
nthWeekday |
Nth weekday calculation, month overflow |
expandRRule |
BYDAY/BYSETPOS lists (monthly), classic BYDAY, weekly, COUNT, EXDATE exclusions |
parseICS |
Single events, all-day, TZID params, line folding, recurring BYSETPOS |
clean |
ICS character unescaping (\n, \,, \;) |
E2E tests (tests/site.spec.js, Chromium + Mobile Chrome):
| Area | Tests | What is tested |
|---|---|---|
| Home page | 3 | Title + heading, CTAs, carousel (click, arrow keys, holds while hovered or focused) + map toggle, logo reveal on focus |
| SEO / Meta | 2 | All meta tags on home, subpage descriptions + keywords |
| Privacy | 1 | No Google Fonts (HTML + network) |
| Navigation | 6 | Desktop nav + routing, mobile hamburger toggle, utility cluster hittable, section marker (also on clean URLs), wasd nerd mode (walks the page both ways, rows and edges, idle fade, Escape, typing and modifier guards, Enter follows; the ▶ beside the focus — ▲ below in edge-to-edge rows, fixed by the sticky brand, follows Tab and layout shifts, never on another control; footer off switch survives a reload, none on touch-only; s never parks on the scroll-top) |
| Events page | 1 | Title, list, subscribe, RSS, back link |
| Events content | 2 | Tags + filtering + month groups, sync status |
| Donations | 1 | Title, consent banner dismiss |
| Raum nutzen | 1 | Title, CTA, structured data |
| Impressum | 1 | Title + back link |
| Danke page | 1 | Title, noindex, content, back link |
| Theme: ink text, green markers | 1 | Dark bg, monospace, no inline styles; panel/month brackets, h1 rule and event dates wear the accent, heading and card text stay ink (colours read from the tokens) |
| Light theme toggle | 1 | data-theme flip, localStorage persistence, painted background inverts |
| Pinnwand | 3 | Job board: active postings, the permanent slot's cycle, escaping, the how-to |
| JS errors + focus sweep | 17 | Every page in the pages array (incl. /ascii/, /chat/, /lite/, /kiosk/, /404.html) free of console errors; on the same load every tab stop is visible and marked (reverse video, or a ring ≥ 3:1 not clipped away) and the first Tab lands on the skip link; a second sweep holds the same in w/a/s/d mode, a third the scroll-top button at the page end |
| Internal links | 1 | Crawls all pages, verifies every internal link resolves |
| Accessibility | 1 | Aria-labels, alt texts, landmark roles; keyboard: skip links on /, /ascii/ and /chat/, the footer funding popover, back-to-top |
Browsers: Chromium, Mobile Chrome (Pixel 5).
node scripts/sync-events.mjsThis fetches live ICS data and writes events-data.json + feed.xml to the project root.
Never run it just to try a calendar link out: it overwrites the feeds and
rewrites the JSON-LD block in the tracked events.html. The read-only path is
node scripts/check-calendars.mjs --probe "<ics-url>"which previews the cards through the real pipeline and prints a paste-ready
snippet. pnpm run check:calendars validates the manifest (also a PR gate:
typo'd keys, duplicate ids, non-unique name).