{"id":28224001,"url":"https://github.com/rudrodip/titan","last_synced_at":"2025-06-12T03:30:39.080Z","repository":{"id":293521468,"uuid":"983703469","full_name":"rudrodip/titan","owner":"rudrodip","description":"Next.js 15 fullstack template with better-auth for authentication and drizzle-orm as the orm","archived":false,"fork":false,"pushed_at":"2025-05-26T11:33:48.000Z","size":466,"stargazers_count":250,"open_issues_count":1,"forks_count":25,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T19:40:05.249Z","etag":null,"topics":["better-auth","drizzle-orm","neondb","nextjs","nextjs15","shadcn-ui","tailwindcss-v4"],"latest_commit_sha":null,"homepage":"https://titan.rdsx.dev","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/rudrodip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2025-05-14T19:33:04.000Z","updated_at":"2025-06-03T11:53:16.000Z","dependencies_parsed_at":"2025-05-15T19:32:48.248Z","dependency_job_id":"ac90b040-96f8-4fe5-8802-bfac029036ba","html_url":"https://github.com/rudrodip/titan","commit_stats":null,"previous_names":["rudrodip/titan"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/rudrodip/titan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftitan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftitan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftitan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftitan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudrodip","download_url":"https://codeload.github.com/rudrodip/titan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftitan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259389536,"owners_count":22850025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["better-auth","drizzle-orm","neondb","nextjs","nextjs15","shadcn-ui","tailwindcss-v4"],"created_at":"2025-05-18T09:10:55.641Z","updated_at":"2025-06-12T03:30:39.066Z","avatar_url":"https://github.com/rudrodip.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Titan\n\nNext.js 15 fullstack template with better-auth for authentication and drizzle-orm as the ORM.\n\n![Titan](./public/og.png)\n\n\u003e [!WARNING]\n\u003e This project uses Next.js 15-canary to support node runtime on middleware. This is not yet supported in stable version.\n\n## Tech Stack\n\n- Full-stack framework: Next.js 15-canary\n- UI: Tailwind CSS v4\n- Component library: Shadcn UI\n- Authentication: better-auth\n- Database: postgres\n- ORM: drizzle-orm\n\n## Features\n\n- Authentication\n  - Social login\n    - Google\n    - Github\n    - Discord\n- Database\n  - Postgres (Neon)\n  - ORM: drizzle-orm\n- Next.js API, server actions, and middleware\n\n## Getting Started\n\nClone the repository\n\n```bash\ngit clone https://github.com/rudrodip/titan.git\n```\n\nInstall dependencies\n\n```bash\nbun install\n```\n\nCreate environment file\n\n```bash\ncp .env.example .env\n```\n\nProvide environment variables in `.env` file\n\n- `BETTER_AUTH_SECRET`: Secret key for Better Auth authentication generate one [here](https://www.better-auth.com/docs/installation#set-environment-variables)\n- `BETTER_AUTH_URL`: Better Auth URL (e.g., `http://localhost:3000`)\n- `DATABASE_URL`: PostgreSQL connection string provided from Neon (e.g., `postgresql://username:password@neon:5432/titan`)\n\nGenerate database schema\n\n```bash\nbun run db:generate\n```\n\nMigrate database\n\n```bash\nbun run db:migrate\n```\n\nRun the development server\n\n```bash\nbun dev\n```\n\nOpen the browser and navigate to `http://localhost:3000`\n\n## Using a Local Database\n\nHave Docker installed on your system. Before running the db:generate command from Getting Started, run the following command in the project directory to start a local database:\n\n```bash\ndocker-compose up -d\n```\n\nUse the following environment variables in `.env` file:\n- `DATABASE_URL`: `postgres://postgres:postgres@localhost:5432/titan`\n\nAdd the `pg` and `@types/pg` dependencies to your project:\n\n```bash\nbun add pg\nbun add -D @types/pg\n```\n\nThen, change the `/src/lib/db/index.ts` file to use the `drizzle-orm/node-postgres` and `pg` package instead of `@neondatabase/serverless`:\n\n```typescript\nimport * as schema from \"@/lib/db/schema\";\nimport { drizzle } from \"drizzle-orm/node-postgres\";\nimport { Pool } from \"pg\";\n\nconst sql = new Pool({\n  connectionString: process.env.DATABASE_URL,\n});\nexport const db = drizzle(sql, { schema });\n```\n\nContinue steps from Getting Started e.g. generating the database schema, applying migrations, and running the dev server.\n\nOpen the browser and navigate to `http://localhost:3000`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudrodip%2Ftitan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudrodip%2Ftitan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudrodip%2Ftitan/lists"}