Skip to content

Repository files navigation

Letterlink

Letterlink is a Vite + React app for generating letter-based artwork from editable glyph setups. It loads a default project on first visit, lets you adjust per-letter anchors and accent placement, lays out names across printable boards, and exports SVG output for production.

Development

npm install
npm run dev

Useful local commands:

npm run lint
npm run build
npm run preview

Screenshot-friendly dev and preview servers for Codex or browser tooling:

npm run dev:codex
npm run preview:codex

App flow

  1. Start from the bundled default project in public/default-project.json, upload a font, or open a saved Letterlink project.
  2. Adjust glyph anchors and accent positioning in the Prepare workspace.
  3. Enter names from text or CSV and tune board/render settings in the Configure workspace.
  4. Preview paginated boards and export SVG files for a single board or a ZIP archive of all boards.

The app is fully client-side. Active project data and language preference are stored in the browser via localStorage.

Architecture overview

Quality gate

Run these before shipping changes:

npm run lint
npm run build

Cloudflare Pages deploy

This repo includes:

  • wrangler.toml with pages_build_output_dir = "dist"
  • npm run deploy:cloudflare for local/manual deploys
  • .github/workflows/deploy-cloudflare.yml for GitHub Actions deploys

Manual deploy flow:

  1. Authenticate Wrangler once:

    npx wrangler login
  2. Export your Cloudflare account id:

    export CLOUDFLARE_ACCOUNT_ID=<your-account-id>
  3. Deploy:

    npm run deploy:cloudflare

By default the deploy script targets the letterlink Pages project. Override with:

CLOUDFLARE_PROJECT_NAME=my-pages-project npm run deploy:cloudflare

You can also deploy a specific branch:

npm run deploy:cloudflare -- --branch main

For GitHub Actions deploys, configure:

  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ACCOUNT_ID

Optional repository variable:

  • CLOUDFLARE_PROJECT_NAME

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages