{"id":51293486,"url":"https://github.com/akshayark97/next-app-template-demo","last_synced_at":"2026-06-30T12:32:06.659Z","repository":{"id":361638368,"uuid":"1255215813","full_name":"akshayark97/next-app-template-demo","owner":"akshayark97","description":"A production-ready Next.js starter with auth, PostgreSQL, Redis, AI, file storage, email, testing, and deployment workflows already configured.","archived":false,"fork":false,"pushed_at":"2026-06-22T16:46:27.000Z","size":406,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T18:05:13.838Z","etag":null,"topics":["ai-sdk","anthropic","biomejs","drizzle-orm","neondb","nextjs","playwright","postgresql","react-email","reactjs","resend","shadcn-ui","stack-auth","tailwindcss","typescript","upstash-redis","vercel-blob","vitest"],"latest_commit_sha":null,"homepage":"https://next-app-template-demo.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akshayark97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T14:55:57.000Z","updated_at":"2026-06-22T16:47:14.000Z","dependencies_parsed_at":"2026-06-22T18:03:44.903Z","dependency_job_id":null,"html_url":"https://github.com/akshayark97/next-app-template-demo","commit_stats":null,"previous_names":["akshayark97/next-app-template-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akshayark97/next-app-template-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayark97%2Fnext-app-template-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayark97%2Fnext-app-template-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayark97%2Fnext-app-template-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayark97%2Fnext-app-template-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshayark97","download_url":"https://codeload.github.com/akshayark97/next-app-template-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayark97%2Fnext-app-template-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34967614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-sdk","anthropic","biomejs","drizzle-orm","neondb","nextjs","playwright","postgresql","react-email","reactjs","resend","shadcn-ui","stack-auth","tailwindcss","typescript","upstash-redis","vercel-blob","vitest"],"created_at":"2026-06-30T12:32:05.455Z","updated_at":"2026-06-30T12:32:06.626Z","avatar_url":"https://github.com/akshayark97.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg width=\"3670\" height=\"1916\" alt=\"image\" src=\"https://github.com/user-attachments/assets/70d9b2c2-7099-448c-919d-2eae2580686e\" /\u003e\n\n# Next.js App Template\n\nA production-ready fullstack Next.js starter. Clone it, configure your env vars, and start building your app — not infrastructure.\n\n## Tech stack\n\n| Layer | Technology |\n|---|---|\n| Framework | Next.js 16, React 19, TypeScript |\n| Database | Neon (Postgres) + Drizzle ORM |\n| Auth | Stack Auth |\n| Caching | Upstash Redis |\n| Storage | Vercel Blob |\n| AI (optional) | Vercel AI SDK (bring your own provider) |\n| Email | Resend + React Email |\n| i18n | next-intl (English, Japanese, German) |\n| Deployment | Vercel |\n| Testing | Vitest + Playwright |\n| Tooling | Biome, Tailwind CSS v4, shadcn/ui |\n\n## Getting started\n\n```bash\n# 1. Clone the repo\ngit clone https://github.com/your-org/your-repo my-app\ncd my-app\n\n# 2. Install dependencies\nnpm install\n\n# 3. Copy the example env file and fill in your values\ncp .env.example .env.local\n\n# 4. Run database migrations\nnpm run db:migrate\n\n# 5. (Optional) Seed the database with placeholder data\nnpm run db:seed\n\n# 6. Start the dev server\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) to see the starter landing page.\n\n## Environment variables\n\nCopy `.env.example` to `.env.local`. All variables are optional — the app will start without them, but features that depend on them will be disabled or stub out.\n\n| Variable | Used for |\n|---|---|\n| `DATABASE_URL` | Neon Postgres connection string |\n| `NEXT_PUBLIC_STACK_PROJECT_ID` | Stack Auth |\n| `NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY` | Stack Auth |\n| `STACK_SECRET_SERVER_KEY` | Stack Auth |\n| `UPSTASH_REDIS_REST_URL` | Redis caching |\n| `UPSTASH_REDIS_REST_TOKEN` | Redis caching |\n| `BLOB_READ_WRITE_TOKEN` | Vercel Blob uploads |\n| `BLOB_BASE_URL` | Vercel Blob image rendering |\n| `RESEND_API_KEY` | Transactional email |\n| `\u003cPROVIDER\u003e_API_KEY` | AI features (optional) — only if you wire up an LLM provider, e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY` |\n\n## Building your app\n\n1. **Rebrand** — Edit `src/lib/site-config.ts` to set your app `name`, `description`, and `repoUrl`. These feed the navbar, page title, landing-page buttons, and emails from one place. Also update `name` in `package.json`.\n2. **Rename the domain model** — The example table is called `resources`. Rename it (or replace it) in `src/db/schema.ts` and regenerate the migration with `npm run db:generate`.\n3. **Update the landing page** — Replace `src/app/(site)/[locale]/page.tsx` with your actual home page, and edit the copy in `messages/*.json`.\n4. **Add your routes** — Create localized pages under `src/app/(site)/[locale]/`. Server actions live in `src/app/actions/`.\n5. **Wire up AI (optional)** — The Vercel AI SDK is included but provider-agnostic. Pick a provider, install its adapter (e.g. `npm install @ai-sdk/openai`), then uncomment and configure `src/ai/summarize.ts`. Skip this entirely if your app doesn't need AI — it returns a stub by default.\n6. **Customise email** — Update `src/email/templates/notification-template.tsx` with your branding.\n\n## Internationalization (i18n)\n\nLocalized with [next-intl](https://next-intl.dev) using URL-based locale routing. Ships with **English (`en`)**, **Japanese (`ja`)**, and **German (`de`)** — `en` is the default. Visiting `/` redirects to the visitor's best-match locale (e.g. `/en`), and the navbar includes a language switcher.\n\nMessage catalogs live in `messages/\u003clocale\u003e.json`, and message keys are type-checked against `messages/en.json`.\n\n**Add a new language** (e.g. French):\n\n1. Add `\"fr\"` to `locales` in `src/i18n/routing.ts`.\n2. Copy `messages/en.json` → `messages/fr.json` and translate the values.\n3. Add a display name in `src/i18n/locale-names.ts` (e.g. `fr: \"Français\"`).\n\nRouting, the language switcher, and message loading pick it up automatically.\n\n**A few conventions:**\n\n- Use `Link` / `useRouter` from `@/i18n/navigation` for localized routes (they keep the locale prefix); use plain `next/link` for non-localized paths like Stack Auth's `/handler/*`.\n- Localized pages live under `src/app/(site)/[locale]/`; the auth handler stays non-localized under `src/app/(auth)/` so Stack Auth keeps its fixed `/handler` path.\n\n## Scripts\n\n```bash\nnpm run dev          # Start dev server (Turbopack)\nnpm run build        # Production build\nnpm run typecheck    # TypeScript check\nnpm run lint         # Biome lint + format check\nnpm run lint:fix     # Auto-fix lint issues\nnpm run db:generate  # Generate Drizzle migration\nnpm run db:migrate   # Apply migrations\nnpm run db:seed      # Seed placeholder data\nnpm run test         # Unit tests (Vitest)\nnpm run test:e2e     # E2E tests (Playwright)\n```\n\n## Project structure\n\n```\nsrc/\n  app/            # Next.js App Router pages and server actions\n  ai/             # AI utilities\n  cache/          # Redis client\n  components/     # Shared UI components\n  db/             # Drizzle schema, migrations, seed\n  email/          # Email sending logic and React Email templates\n  i18n/           # next-intl config (routing, navigation, request, locale names)\n  lib/            # Shared data-access helpers\n  stack/          # Stack Auth client/server config\n  proxy.ts        # next-intl locale middleware\nmessages/         # Translation catalogs (en.json, ja.json, de.json)\ntest/\n  unit/           # Vitest unit tests\n  e2e/            # Playwright E2E tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayark97%2Fnext-app-template-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshayark97%2Fnext-app-template-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayark97%2Fnext-app-template-demo/lists"}