PostLabel is a small static web tool that lets you convert Royal Mail, ParcelForce and eBay shipping labels into easily printable A4 pages, suitable for home office printing.
🖨️ See it live and print some labels: PostLabel
The live site does not collect or store PDF contents. Aggregate product analytics and browser error telemetry may be collected via PostHog without filenames, label text, addresses, tracking numbers, or PDF contents.
If you want to run PostLabel on your own machine:
- Clone the repository.
- Install pnpm if needed.
- Run
pnpm installfrom the root directory. - Optionally copy
.env.exampleto.envand setPUBLIC_POSTHOG_KEYfor analytics (events are proxied via/plbon your domain). - Run
pnpm devto start the development server.
Only PUBLIC_ variables are exposed to the browser. Do not put private PostHog API keys in these values.
PUBLIC_POSTHOG_KEY— optional publishable PostHog browser key.PUBLIC_POSTHOG_UI_HOST— optional PostHog app host for UI links, defaults tohttps://eu.posthog.com.PUBLIC_APP_ENVIRONMENT,PUBLIC_APP_VERSION,PUBLIC_DEPLOY_PROVIDER,PUBLIC_VERCEL_GIT_COMMIT_SHA— optional non-sensitive build metadata attached to analytics events.
pnpm dev— start Astro dev serverpnpm build— build static sitepnpm preview— preview production build locallypnpm typecheck— run Astro type checkingpnpm lint— run Oxlint andtsc --noEmit
Contributions are encouraged and welcome. The project roadmap, ideas, bugs and issues are tracked in the Project.
This project was initially built in 2023 to solve bulk label printing. It has been migrated from Next.js to a static Astro site with a React island for the PDF print workflow.