medusajs /
nextjs-starter-medusa
A performant frontend ecommerce starter template with Next.js
Loading repository data…
sisovin / repository
A starter Next.js + TypeScript project that demonstrates a secure, scalable AI Agents Builder powered by Google Gemini. It includes authentication (Google OAuth via Firebase), Firestore for persistence, Arcjet endpoint protection, Tailwind CSS styling, and both single-response and ...
A starter Next.js + TypeScript project that demonstrates a secure, scalable AI Agents Builder powered by Google Gemini. It includes authentication (Google OAuth via Firebase), Firestore for persistence, Arcjet endpoint protection, Tailwind CSS styling, and both single-response and streaming integrations with the @google/generative-ai SDK.
This README was generated from the project brief and provides a comprehensive guide to the repository layout, installation, configuration, core files, and development workflow.
The AI Agents Builder Platform is designed to let users create, run, and manage intelligent agents backed by Google Gemini. This starter app focuses on productivity modules and a simple onboarding flow, providing:
I generated this README and outlined every core file and setup step. If you want, I can now generate the actual files described below (package.json, lib/agent.ts, API route, components, etc.).
@google/generative-ai)Visual flow (textual):
[User] → [Next.js UI] → [Google OAuth] → [Firebase Auth] → [Arcjet Protection] → [Gemini AI Agent Logic] → [Conversation Stream + Prompts] → [Firebase Firestore DB]
Layer responsibilities:
GOOGLE_GEMINI_API_KEY and ARCJET_KEY secret — never commit them./api/agent) to throttle, validate, and block abusive traffic.This project skeleton includes (or should include) the following important files:
Create a .env.local (do not commit) using this template:
NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
GOOGLE_GEMINI_API_KEY=
ARCJET_KEY=
NEXTAUTH_URL= # optional, if using NextAuth in the future
Notes:
NEXT_PUBLIC_* vars are intentionally public for Firebase client SDK initialization.GOOGLE_GEMINI_API_KEY and ARCJET_KEY must remain server-only in production; do NOT expose them to client code.Prerequisites:
Quickstart:
Install deps:
npm installpnpm installCopy env file:
cp .env.local.example .env.localRun local dev server:
npm run devSign in with Google on the homepage and try the Smart Email Reply.
Add these to package.json:
lib/firebase.ts
app, auth, firestore.lib/agent.ts
runAgent(prompt: string): Calls Gemini for a single (non-streaming) text completion and returns the text.streamAgent(prompt: string): Uses Gemini Streaming API and returns an HTTP stream that's consumed by the server route. The server route converts the Gemini stream into a format the client can consume (e.g., using web streams or server-sent events).app/api/agent/route.ts
/api/agent) that:
streamAgent and forwards the stream to the requesting client.components/SmartEmailReply.tsx
<textarea> for email content.<select> for tone selection (Formal, Friendly, Direct).<button>.runAgent.app/page.tsx
SmartEmailReply and other starter UI.Prompt template used by SmartEmailReply:
Act as my executive assistant. Please craft a [tone] reply to this email:
[email content]
Where:
The component calls runAgent(prompt) and displays the response.
When deploying to Vercel:
When using Firebase Hosting / Functions:
Billing:
.env.localContributions are welcome. Suggested workflow:
git checkout -b feat/my-featurePlease avoid committing secrets.
Add your license of choice (MIT recommended for starters). Example: LICENSE containing MIT license text.
Selected from shared topics, language and repository description—not editorial ratings.
medusajs /
A performant frontend ecommerce starter template with Next.js
pankod /
A well-structured production ready Next.js boilerplate with Typescript, Redux, Jest, Enzyme, Express.js, Sass, Css, EnvConfig, Fetch, Reverse Proxy, Bundle Analyzer and Built-in Project CLI. https://pankod.github.io/next-boilerplate/
vercel /
Next.js + Tailwind + Typescript + Drizzle + NextAuth + PostgreSQL starter template.
Skolaczk /
A Next.js starter template, packed with features like TypeScript, Tailwind CSS, Next-auth, Eslint, Stripe, testing tools and more. Jumpstart your project with efficiency and style.
wslyvh /
A Next.js + Ethereum starter kit with Viem, Wagmi, Web3Modal, SIWE, Tailwind, daisyUI and more to quickly ship production-ready Web3 Apps ⚡
akd-io /
Create Next Stack is a website and CLI tool used to easily set up the boilerplate of new Next.js apps.