Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nozomi-koborinai/firebase-genkit-sample
Firebase and AI Orchestration Samples
https://github.com/nozomi-koborinai/firebase-genkit-sample
Last synced: 1 day ago
JSON representation
Firebase and AI Orchestration Samples
- Host: GitHub
- URL: https://github.com/nozomi-koborinai/firebase-genkit-sample
- Owner: nozomi-koborinai
- Created: 2024-10-15T08:57:59.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-12-31T14:58:22.000Z (about 1 month ago)
- Last Synced: 2024-12-31T15:30:31.060Z (about 1 month ago)
- Language: HCL
- Homepage:
- Size: 128 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firebase-genkit-sample
A sample project demonstrating AI applications using Firebase Cloud Run functions (2nd generation) and Genkit.
## ๐ Features
- Image Analysis (Google AI)
- Web Content Analysis (Google AI)
- Chat Message Generation (Google AI & Firestore)
- Image Generation (Vertex AI)## ๐ Project Structure
```plain
firebase-genkit-sample/
โโโ .github/
โ โโโ workflows/ # CI/CD Pipelines sample
โโโ prompts/ # AI prompt templates
โโโ src/
โ โโโ genkit-functions/ # AI function implementations
โ โโโ genkit.ts # Genkit configuration
โ โโโ index.ts # Deploy Functions
โโโ terraform/ # Terraform configuration for infrastructure setup (not directly related to Genkit, but used for setting up the overall Firebase project infrastructure)
```## ๐ Quick Start
0. Install Genkit CLI
```bash
npm i -g genkit
```1. Install dependencies
```bash
npm install
```2. Set environment variables
```bash
export GCLOUD_PROJECT="your-google-cloud-project-id"
export GOOGLE_GENAI_API_KEY="your-api-key"
export GENKIT_ENV="dev"
```3. Start Genkit emulator for development
```bash
genkit start -- npx tsx --watch src/index.ts
or
genkit start -- firebase emulators:start --inspect-functions
```4. Deploy to Cloud Run functions (2nd generation)
```bash
firebase deploy --only functions
```## ๐ Articles
### English
- [Orchestrating Firebase and AI: 8 Genkit Architecture Patterns](https://medium.com/@nozomi-koborinai/orchestrating-firebase-and-ai-8-genkit-architecture-patterns-12e44db40345)
- [How to Develop Firebase Genkit Functions](https://medium.com/@nozomi-koborinai/how-to-develop-firebase-genkit-functions-2677b386a227)
- [Getting Started with AI Image Generation Apps on Flutter, Genkit, and Imagen 3](https://medium.com/@nozomi-koborinai/getting-started-with-ai-image-generation-apps-on-flutter-genkit-and-imagen-3-9a83c63cbdf3)### Japanese
- [Firebase & AI ใฎใชใผใฑในใใฌใผใทใงใณใๅฎ็พ๏ผGenkit ใขใผใญใใฏใใฃ 8 ้ธ](https://zenn.dev/nozomi_cobo/articles/genkit-architecture)
- [Firebase Genkit Functions ้็บใฎใใใ](https://zenn.dev/nozomi_cobo/articles/genkit-emulator-suite)
- [Flutter ร Genkit ร Imagen 3 ใงๅงใใ AI ็ปๅ็ๆใขใใช้็บๅ ฅ้](https://zenn.dev/nozomi_cobo/articles/flutter-genkit-imagen)