Open this project in StackBlitz to view and run Relewise code examples with the editor and preview side by side.
https://stackblitz.com/~/github.com/Relewise/relewise-code-playground-ts
- Built with Vite + React; start script:
npm run dev. - The app has a dropdown—pick an example, fill the fields, click Run. No default selection.
- Examples live in
src/examples/(current:search-term-prediction.ts,product-search.ts).
- Create a file in
src/examples/exporting arun...function matching the existing ones. - Register it in
src/examples/index.tsby importing your runner and adding an entry toEXAMPLES(id,label,run).
- You can provide defaults via
.envat the project root:VITE_DATASET_IDVITE_API_KEYVITE_SERVER_URL
- If the input fields are left blank, the app will use these env values.
- See
.env.examplefor the keys; keep your own.envuntracked.
- Install deps:
npm install - Run dev server:
npm run devand open the printed URL.