# Character Generator

<!-- markdownlint-disable MD033 -->
<a href="https://idx.google.com/new?template=https%3A%2F%2Fgithub.com%2Ffirebase%2Fgenkit%2Ftree%2Fmain%2Fsamples%2Fjs-character-generator">
  <picture>
    <source
      media="(prefers-color-scheme: dark)"
      srcset="https://cdn.idx.dev/btn/open_dark_32.svg">
    <source
      media="(prefers-color-scheme: light)"
      srcset="https://cdn.idx.dev/btn/open_light_32.svg">
    <img
      height="32"
      alt="Open in IDX"
      src="https://cdn.idx.dev/btn/open_purple_32.svg">
  </picture>
</a>
<!-- markdownlint-enable MD033 -->

This sample is used as the Genkit template in Project IDX, you can check it out in IDX!

To run it locally, set a [Gemini API key](https://aistudio.google.com/app/apikey) in your environment with `export GEMINI_API_KEY=<>` and start the app with `npm install && npm run dev`
