Where AI meets Svelte. SvelteViber is where AI meets creativity. Type an idea, and watch it transform into a live Svelte page you can preview instantly. Chat with the AI to refine, tweak, and push your code further — all in real time.
Currently supported models:
Requirements:
Run npm install
You need to setup one of the following method in order for LLM calls to works.
Copy .env.example to .env and add your LLM API keys. You need to set at least one API key otherwise you won't be able to use the playground.
Copy .env.example to .env and set VITE_API_ENABLE to true and VITE_API_URL to the hosted API URL in .env
To start (and watch) the development application, run npm start and go to http://localhost:8080
A LLM call method needs to be configured for .env.production
WARNING Do not host this application using LLMs from browser because your API keys will be visible. You can use https://github.com/Lyeed/svelte-viber-api which is a micro node.js API that I've developed for this project. It runs LLM requests instead of the frontend.
Then run npm run build
Bundled application is located inside dist folder. Entry point is index.html.
npm run prettier to enforce coding style and formatnpm run typescript to check types errorsnpm run xo to run code linterModelBase interfaceGautier Jousset @Lyeed https://lyeed.github.io/