A SvelteKit app that provides an AI-powered chatbot for answering questions about Svelte and SvelteKit. This bot uses the Anthropic Claude API to generate responses based on the latest Svelte and SvelteKit documentation.
Thanks to the new Sonnet 3.5 model with 200k context we can utilize "context stuffing" to put the entire SvelteKit documentation into the context, which provides very good responses.
You will need to sign up for an Anthropic API account and set the API key in .env
(see .env.example
). Keep in mind that adding the docs adds about 80k tokens which costs ~0.2USD/message.
If you want to do something similar without the API limits, you can use Claude Projects and upload the SvelteKit docs to the project for a similar experience.
cp .env.example .env # Fill in the .env file with Anthropic API key
nvm i && nvm use
npm i
npm run dev
Visit http://localhost:5173 to start chatting with the AI assistant.
Simply type your Svelte or SvelteKit related questions into the chat interface. The AI will provide answers, explanations, and code examples based on the latest documentation.
Use npm run updatedocs
command to download the latest SvelteKit documentation.
npx ai-digest