Tech stack

From osmberlin/osm-traffic-sign-tool · View interactive version

Tech stack is an AI agent skill from the GitHub repository osmberlin/osm-traffic-sign-tool. Default FMC tech stack for geo-heavy React SPAs: Bun/Vite, React 19, TanStack, maps, styling, TypeScript editor/CLI alignment, tsconfig templates, browserslist client targets, Cursor MCP (Postgres, agent-browser), and when to pick sibling skills. Use when scaffolding a new app, evaluating libraries,

How to use this skill

Skill file

FMC tech stack

Default stack for geo-heavy React SPAs at FixMyBerlin / FMC. Use for tech decisions when creating or changing an app — not as a deep dive into any one library.

Install sibling skills separately: bunx skills add FixMyBerlin/fixmyskills --skill <name> -a cursor -y

When to apply

LLM resources

Load references/llm-resources.md only for the area the task touches.

Maps: load skill react-map-gl (and upstream React Map GL docs when the skill points there).

Specialized skills

Prefer installed skill names when present; otherwise fetch from git.

| Area | Skill | GitHub |

| ---------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |

| Rust/WASM geo | rust-wasm-geo | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/rust-wasm-geo> |

| Maps (react-map-gl) | react-map-gl | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/react-map-gl> |

| React TS patterns, useEffect discipline | react-dev | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/react-dev> |

| TanStack Start (layout, boundaries, SSR) | tanstack-start-conventions | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/tanstack-start-conventions> |

| Router search params (UI routes) | — | <https://github.com/FixMyBerlin/fixmyskills/blob/main/skills/tanstack-start-conventions/references/params-search-ui-vs-api.md> |

| Router + Query loaders | — | <https://github.com/FixMyBerlin/fixmyskills/blob/main/skills/tanstack-start-conventions/references/router-and-query.md> |

| Devtools debug panel | — | <https://github.com/FixMyBerlin/fixmyskills/blob/main/skills/tanstack-start-conventions/references/devtools.md> |

| URL state (Next.js / shared libs) | nuqs | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/nuqs> |

| Client global state | zustand-state-management | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/zustand-state-management> |

| E2E / Playwright | playwright-skill | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/playwright-skill> |

| Next → Start migration | tanstack-start-migration | <https://github.com/FixMyBerlin/fixmyskills/tree/main/skills/tanstack-start-migration> |

Runtime and build

React and TypeScript

Verify: node -e "console.log(require('typescript/package.json').version)", tsc --version, and bun run type-check — all 7.x. After bun install, accept Use Workspace Version if prompted. Do not add typescript to repos that have no TS source (e.g. this skills monorepo).

tsconfig templates

Use two profiles — do not merge app and scripts into one config.

| Profile | Template | Profile analogue |

| ------------------------- | ---------------------------------------------------------------- | --------------------------------- |

| App (DOM, TanStack Start) | examples/tsconfig.app.json | total-typescript bundler/dom |

| Scripts (CLI, no DOM) | examples/tsconfig.scripts.json | total-typescript bundler/no-dom |

Copy and adapt on scaffold. Adjust paths to project layout (./src/* vs ./*). Add allowJs: true only when the repo still has .js files.

TanStack Start (app only): verbatimModuleSyntax: false — type-only imports can become empty runtime imports and leak server code into client bundles. See header comments in tsconfig.app.json.

Never install or extends @total-typescript/tsconfig — keep settings inlined with deviation comments.

Typecheck:

tsc --noEmit -p tsconfig.app.json && tsc --noEmit -p tsconfig.scripts.json

Single-config repos (e.g. one root tsconfig.json covering app + scripts) are acceptable; greenfield TanStack Start apps should prefer split configs.

Optional root tsconfig.json with "references" to both child configs.

ES2025: target and lib stay in sync. lib adds typings only; new ES2025 runtime APIs in client bundles are not auto-polyfilled — use deliberately on the client; fine on server/Bun/scripts. Which browsers get that client bundle: references/browser-target.md.

Component typing, Compiler, oxlint React rules, and useEffect discipline: skill react-dev. Map camera, clicks, and layers: skill react-map-gl (not useEffect + map.on()).

Data and state

| Need | Choice |

| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| Server / async data | TanStack Query — no raw useEffect fetch; Suspense where the router supports it |

| Forms (non-trivial) | TanStack Form |

| Routing | TanStack Router / Start |

| Shareable URL state (TanStack apps) | Route validateSearch (Zod) — see params-search-ui-vs-api.md |

| Shareable URL state (Next.js / shared libs) | nuqs — see skill nuqs |

| Global client state | Zustand (tkdodo patterns) — skill zustand-state-management |

| Local UI state | useState |

Loader + Query integration: router-and-query.md.

Styling and UI

Maps and geo (JS)

Stack choices only — map component patterns, layers, events, URL viewport: skill react-map-gl.

| Choice | Default |

| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

| Library | react-map-gl/maplibre (not raw MapLibre in components) |

| Basemap | OpenFreeMap; Maptiler if required |

| Coordinates | WGS84, [lng, lat] at API boundaries; validate with Zod |

| Turf | @turf/* per-function imports — not import * as turf |

| Feature editing | tilda-geo drawing, maplibre-gl-terradraw |

Rust / WASM geo

Turf vs WASM, crates, Vite wiring: skill rust-wasm-geo.

Dependency updates (Dependabot)

CI (GitHub Actions)

Tests and quality

| Need | Skill / tool |

| ------------------------------- | ------------------------ |

| Unit / component tests | Vitest (always) |

| Cross-route, map, or auth flows | playwright-skill |

| Pure logic / utils only | Vitest — skip Playwright |

Quick decisions

flowchart TD
  start[Tech decision] --> maps{Maps involved?}
  maps -->|yes| reactMapGl[react-map-gl skill]
  maps -->|no| data{Server or URL state?}
  data -->|server| tanstackQuery[router-and-query.md]
  data -->|URL TanStack| validateSearch[params-search-ui-vs-api.md]
  data -->|URL Next/shared| nuqsSkill[nuqs skill]
  data -->|client global| zustandSkill[zustand-state-management]
  maps -->|slow geo compute| rustWasm[rust-wasm-geo skill]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.