# Examples

> Set up the Muzekit editor in Next.js, React, Vue, Nuxt, SvelteKit, Angular, Astro, Rails, Laravel, Django, Flask, FastAPI, Go and more.

Every example has the same two parts: a server route that opens a [session](/docs/sessions) for the signed-in user with your secret key, and a page that mounts the editor with the [browser SDK](/docs/embed-sdk). Pick your stack and copy the files.

<Callout title="Let your coding agent do it">Connect your agent to the [MCP server](/docs/mcp#set-up-the-editor-in-your-app) and ask it to set up Muzekit: it reads your repo and writes the files below for your stack.</Callout>

<Cards>
  <Card title="Next.js" description="For a Next.js app with the App Router." href="/docs/examples/nextjs" icon="/framework-icons/nextjs.svg" iconInvert />
  <Card title="Next.js (Pages Router)" description="For a Next.js app with the Pages Router." href="/docs/examples/nextjs-pages-router" icon="/framework-icons/nextjs.svg" iconInvert />
  <Card title="React" description="For a React app (Vite or Create React App) with a Node.js backend." href="/docs/examples/react" icon="/framework-icons/react.svg" />
  <Card title="React Router and Remix" description="For a React Router 7 or Remix app." href="/docs/examples/react-router" icon="/framework-icons/reactrouter.svg" />
  <Card title="Vue" description="For a Vue app with a Node.js backend." href="/docs/examples/vue" icon="/framework-icons/vue.svg" />
  <Card title="Nuxt" description="For a Nuxt 3 app." href="/docs/examples/nuxt" icon="/framework-icons/nuxt.svg" />
  <Card title="SvelteKit" description="For a SvelteKit app." href="/docs/examples/sveltekit" icon="/framework-icons/svelte.svg" />
  <Card title="Angular" description="For an Angular app with a Node.js backend." href="/docs/examples/angular" icon="/framework-icons/angular.svg" iconInvert />
  <Card title="Astro" description="For an Astro site with server output." href="/docs/examples/astro" icon="/framework-icons/astro.svg" />
  <Card title="Node.js and Express" description="For a Node.js app with Express." href="/docs/examples/express" icon="/framework-icons/express.svg" iconInvert />
  <Card title="Ruby on Rails" description="For a Ruby on Rails app." href="/docs/examples/rails" icon="/framework-icons/rails.svg" />
  <Card title="Laravel" description="For a Laravel app." href="/docs/examples/laravel" icon="/framework-icons/laravel.svg" />
  <Card title="PHP" description="For a PHP app without a framework." href="/docs/examples/php" icon="/framework-icons/php.svg" />
  <Card title="Django" description="For a Django app." href="/docs/examples/django" icon="/framework-icons/django.svg" iconInvert />
  <Card title="Flask" description="For a Flask app." href="/docs/examples/flask" icon="/framework-icons/flask.svg" iconInvert />
  <Card title="FastAPI" description="For a FastAPI app." href="/docs/examples/fastapi" icon="/framework-icons/fastapi.svg" />
  <Card title="Go" description="For a Go app with net/http." href="/docs/examples/go" icon="/framework-icons/go.svg" />
</Cards>

Using something else? Every stack follows the [quick start](/docs/quick-start): one `POST /v1/sessions` from your server, one `Muzekit.mount` on your page.
