Community-driven information site about third-party Android replacement car screens from KSW and ZXW vendors — firmware updates, themes, factory settings and FAQ entries for car brands like Audi, Benz, BMW, Mini, and others.
Live at https://kamilbrk.github.io/headunits.
Built with Astro, Tailwind, MDX content collections, and deployed as a static site to GitHub Pages.
Firmware updates are published as an RSS feed at https://kamilbrk.github.io/headunits/rss.xml.
Page-view analytics via Umami.
nvm use # picks up .nvmrc (Node 24)
npm install
npm run dev # local dev server
npm run build # static build into dist/
npm run previewOther useful scripts:
| Command | What it does |
|---|---|
npm run lint |
Run ESLint over src/ |
npm run lint:fix |
Apply autofixable ESLint rules |
npm run prettier |
Run Prettier across all source files |
npx astro check |
Type-check .astro and .ts files |
npm run check:html |
Validate the built HTML in dist/ (html-validate) |
npm run check:links |
Check every internal link in dist/ resolves |
CI runs lint, astro check, build, a smoke test, check:html and
check:links on every push and PR. Deploy gates on all of them passing.
The two check:* scripts need a build first — they read dist/.
The site's own Contribute page covers this for people who would rather not use git; every content page also has an "Edit it on GitHub" link at the bottom.
All content lives under src/data/<collection>/. Each entry is a
Markdown (or MDX, for updates) file with frontmatter that has to match
the collection's zod schema in src/data/<collection>/index.ts.
---
id: Audi_mib3 # required, matches the folder name
display: Audi MIB3 # optional, friendlier label
number: 23 # optional, ZXW theme number
tags: [audi, audi-mib3] # optional, used for filtering/styling
images: # optional, screenshots colocated in the folder
- ./home.png
- ./settings.png
since: 'Ksw-Q-...-ota' # optional, update ID(s) where the theme was introduced
client: '' # optional, required factory-config client value
invalid: '' # optional, marker that the theme is broken
------
id: Ksw-Q-Userdebug_OS_v4.3.3-ota
vendor: ksw
platform: m501
date: 2024-12-01
android: 10
version: '4.3.3'
signatures:
md5: '...'
sha1: '...'
sha256: '...'
---Markdown body describes what's new in the update.
---
question: How do I pull the factory config from my unit?
---Body is the answer, in Markdown.
Links between pages are written root-relative without the base path
(/updates/ksw, not /headunits/updates/ksw). src/shared/base-path.plugin.ts
prefixes BASE at build time.
A warning that belongs next to an instruction goes in a callout:
:::warning
Installing an OTA that was not built for your platform can leave the unit
stuck at boot.
:::---
term: MCU # required, the term as displayed
aliases: [microcontroller] # optional, other spellings
---Body is the definition, in Markdown. Flat, not split by vendor.
---
title: Upgrade path for KSW units
---Which builds have to be installed before which. ZXW has none yet — its firmware is datestamped with no version chain, so it isn't clear a required order exists.
---
section: Sound
settings:
- name: Balance
configKey: BAL
control: range
min: -10
max: 10
children: []
---settings[] is recursive — items can contain children: [...] with the
same shape.
vendors (ksw, zxw) and platforms (m501, m600, m700, gt6,
gt7) are stable — edit only if you're adding a new vendor or platform.
.github/workflows/ci.yml CI: verify (lint, check, build, smoke,
html, link and spacing checks) → deploy
.github/ISSUE_TEMPLATE/ Forms for contributors who don't use git
.github/dependabot.yml Monthly grouped dependency PRs
public/ Static assets served as-is (XML configs,
OG image, robots.txt, helper scripts)
src/data/ Content collections (themes, updates, faq,
factory-settings, glossary, upgrade-paths,
platforms, vendors)
src/pages/ Astro routes, including dynamic [slug]
src/shared/ Layout, components, helpers, site config
src/shared/*.plugin.ts Sätteri markdown plugins (base path, callouts)
src/content.config.ts Collection registration
scripts/check-links.mjs Internal link checker run in CI
scripts/check-spacing.mjs Catches words glued to inline elements
astro.config.ts Astro config (integrations, output, image)
Pushing to main runs the GitHub Actions workflow in
.github/workflows/ci.yml:
- verify —
npm ci, lint,astro check, build, a smoke test over the built artifacts, HTML validation and the internal link check. - deploy —
actions/deploy-pagespublishesdist/to GitHub Pages.
Pull requests run the verify job only.
factory_config.xml,zxw_factory_config.xml— example factory configs surfaced inside the factory-settings pages.
tools/firmware/ holds the tools used to work out what changed between two
firmware updates, without sudo or FUSE, on macOS, Linux or Docker:
fw.py extract/diff— unpack OTA zips and report what changed, highlights first, with decompiled code diffs for the apps that changed.fw.py batch <folders>— order every zip by build date per product line and diff each build against the one before it.fw.py rules,sitecheck,draft— security and privacy checks, a comparison with this site's themes and factory settings, and a changelog draft in this site's format.fw.py evaluate— regression check against analysed firmware pairs.
Install and usage are in tools/firmware/README.md.
Two Claude Code skills build on them: firmware-diff (analyse new firmware)
and firmware-site-update (turn the results into site edits), in
.claude/skills/; any other agent can follow the same SKILL.md files.
MIT — see package.json.