A modern SvelteKit application showcasing Svelte 5 runes and MCP (Model Context Protocol) integration.
Svelte 5 Runes: Demonstrates the new reactive paradigm
$state - for reactive state management$derived - for computed valuesMCP Integration: Uses Model Context Protocol servers
youtube-transcript MCP server for fetching video transcriptssvelte MCP server for documentationModern UI: Beautiful, responsive design with Tailwind CSS
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
This project demonstrates key Svelte 5 runes:
$state - Reactive Statelet videoUrl = $state('');
let transcript = $state<string[]>([]);
let loading = $state(false);
$derived - Computed Valueslet videoId = $derived(() => {
// Extract video ID from URL
const url = new URL(videoUrl);
return url.searchParams.get('v');
});
This project is designed to work with MCP servers:
The current implementation includes mock data for demonstration. To use real YouTube transcripts:
youtube-transcript MCP server is runningget_transcript tool with video ID and languageyt-transcript-viewer/
āāā src/
ā āāā routes/
ā ā āāā +layout.svelte # Layout with CSS imports
ā ā āāā +page.svelte # Main page with Svelte 5 runes
ā ā āāā api/
ā ā āāā transcript/
ā ā āāā +server.ts # API endpoint
ā āāā app.css # Tailwind directives
āāā tailwind.config.js
āāā postcss.config.js
āāā package.json
$state$derived automatically extracts the video IDThis project was created using:
npx sv create - SvelteKit project scaffoldingMIT
Built with ā¤ļø using Svelte 5, SvelteKit, and MCP