create-jsonlink
v1.0.0
Published
Scaffold a modern React + Vite application preconfigured with JSON Link localization workspace, or initialize JSON Link in an existing project
Maintainers
Readme
create-jsonlink
The official starter and initialization CLI for JSON Link.
Scaffold a high-performance React + Vite + TypeScript application preconfigured with the JSON Link localization workspace, or initialize JSON Link into any existing React project with a single command.
Usage
Option 1: Create a New Localized App (Zero Setup)
npm create jsonlink my-i18n-app
# or
npx create-jsonlink my-i18n-appThen start your app:
cd my-i18n-app
npm install
npm run dev- App:
http://localhost:5173 - JSON Link Live Dashboard:
http://localhost:5173/__jsonlink
Option 2: Initialize in an Existing Vite Project
Run inside any existing React + Vite repository root:
npx create-jsonlinkThis will automatically:
- Detect your package manager (
npm,pnpm,bun,yarn). - Inject
jsonLink()into yourvite.config.ts. - Add
@jsonlink/vite-plugintodevDependencies. - Scaffold
src/locales/(en.json,my.json,translations.d.ts,i18n.ts).
What is Included?
- Vite Devtool Plugin: Two-way disk synchronization with instant Vite HMR.
- Embedded Dev Dashboard: Full spreadsheet localization table at
http://localhost:5173/__jsonlink. - Zero Runtime Overhead: The devtool runs strictly during
vite devand tree-shakes completely out of production builds. - Type-Safe Autocomplete: Full TypeScript definition generation (
translations.d.ts) for key names and variable interpolations. - Lossless Myanmar Support: Built-in Unicode and Zawgyi font handling.
License
MIT © Pyae Phyo Maung
