Print a simple card with Wi-Fi details. Tape it to fridge, keep it in wallet, or display it in store, etc.
Once you've installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openTo create a production version of app:
npm run buildYou can preview the production build with npm run preview.
npm run check # Svelte and TypeScript checks
npm run lint # Prettier and ESLint
npm run test:unit # Vitest unit tests for framework-free modules
npm run test:e2e # Playwright against a local production build (Chromium)npm run test:e2e:all also runs Firefox and WebKit. Install browsers first with npx playwright install.
The app supports English (en), Traditional Chinese (zh-TW) and Simplified Chinese (zh-CN). The locale is chosen from the ?lang= query parameter, then the language saved from the header menu, then the browser languages, and finally English. Only the language preference is stored; Wi-Fi details never leave the page.
Messages live in src/lib/i18n/messages/. en.ts is the source dictionary; every other dictionary must have the same keys and parameter types (satisfies Messages), which npm run check and the unit tests enforce. To add a language:
- Add the locale to
LOCALESand its matching rules tonormalizeLocaleinsrc/lib/i18n/locales.ts. - Add a dictionary under
src/lib/i18n/messages/and register it insrc/lib/i18n/translate.ts. - Add the language's own name to
src/lib/components/LanguageSelect.svelteand, if needed, CJK font fallbacks insrc/app.css. - Extend the unit and end-to-end tests.
Special thanks to wifi-card for the idea inspiration.