webview for social and dev helpers social-toolkit.frytg.workers.dev
Files
README.md

FRYTG socials #

Dark-mode tools for social image overlays. Geist type, forest-green field, electric yellow interaction.

Visibility: Public repository. Use synthetic placeholders (acme.example, 198.51.100.12) in docs and examples. Exclude real DMARC report data, account IDs, and credentials.

Tools #

The start page lists every tool. Open one from its tile, the header tabs, or its number key: 1–5 follow the tab order and 0 returns to the overview. The keys do nothing while a field has focus. Each tool has its own URL (/#gpx-viewer), so a tool can be linked or bookmarked.

  • Halftone — upload an image, tune motif density/shape, export PNG/SVG
  • GPX Overlay — drop a .gpx, toggle GPS track / elevation / heart rate, export transparent PNG or SVG
  • GPX Viewer — drop a .gpx, explore an interactive map (pan/zoom, color by elevation/speed/HR), elevation + heart-rate profiles with hover sync, HR zones, and per-km splits
  • Elevation Lines — generative abstract topo contours; closed rings nest and wind like real elevation maps
  • DMARC Viewer — drop DMARC aggregate reports (.xml, .xml.gz, .zip); see pass rates, daily volume, and per-source SPF/DKIM results. Parsed in the browser with no backend; reports stay in localStorage until you reset

Layout #

  • src/App.vue — app shell: header, tool tabs, hash routes, number-key shortcuts
  • src/tools/registry.ts — the tool list; its order sets the tabs and their shortcuts
  • src/tools/ — one folder per tool, with components/ for Vue parts and engine/ for DOM-free logic
  • src/components/ — controls shared by the tool panels, and the overview page
  • src/style.css — colour tokens and the shared ui-* classes

DESIGN.md covers the palette, the type scale, the shell, the overview page, the tool layout, the shared controls, and how to add a tool. Read it before you add a class or restyle a control: a Tailwind utility cannot override a property that a ui-* class sets, and the mismatch fails silently.

Run #

Tools are pinned in mise.toml (node, bun, just, and the hook tools). just install provisions them through mise and installs the dependencies. Lint and format use Oxc: oxlint (Vue + oxlint-tailwindcss) and oxfmt (incl. import and Tailwind class sort). vue-tsc type-checks, and tests use @cross/test on Bun.

just install
just hooks-install  # once — pre-commit format/lint/secret scan, commit-msg check, pre-push checks
just fonts          # once — downloads Geist woff2 into src/style/
just dev
just format         # write formatting, import and class order
just pre-push       # lint, format-check, typecheck, test — the same checks CI runs

CI runs on Tangled: .tangled/workflows/ calls the same just recipes on every push and on pull requests to main.

Cloudflare Workers #

Static SPA served as Workers static assets. Config lives in wrangler.jsonc: it serves dist/ and falls back to index.html for unknown paths. Wrangler is a pinned dev dependency.

just cf-dev     # build, then serve dist/ locally on http://localhost:8787
just cf-check   # build, then dry-run the deploy
just cf-deploy  # build and deploy; needs `bun x wrangler login` or CLOUDFLARE_API_TOKEN

Every cf-* recipe runs just build first. That downloads the gitignored fonts, runs just typecheck, then vite build, so a deploy is always typechecked.