{"id":27651882,"url":"https://github.com/navin-jethwani-76/nextjs-auth-cli","last_synced_at":"2026-04-04T22:34:01.114Z","repository":{"id":289510966,"uuid":"971490429","full_name":"Navin-Jethwani-76/nextjs-auth-cli","owner":"Navin-Jethwani-76","description":"A CLI tool to scaffold authentication backend routes into any Next.js project with support for MySQL, PostgreSQL, and libSQL (Turso) using Drizzle ORM","archived":false,"fork":false,"pushed_at":"2025-04-23T17:24:52.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T04:59:39.452Z","etag":null,"topics":["cli","cli-app","libsql","mysql","ne","nextjs","nextjs-template","nodejs","postgresql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Navin-Jethwani-76.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2025-04-23T15:46:20.000Z","updated_at":"2025-04-23T17:24:56.000Z","dependencies_parsed_at":"2025-04-23T17:31:19.536Z","dependency_job_id":"12c7e428-c152-4da0-bec7-f62b43937539","html_url":"https://github.com/Navin-Jethwani-76/nextjs-auth-cli","commit_stats":null,"previous_names":["navin-jethwani-76/auth-cli"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navin-Jethwani-76%2Fnextjs-auth-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navin-Jethwani-76%2Fnextjs-auth-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navin-Jethwani-76%2Fnextjs-auth-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navin-Jethwani-76%2Fnextjs-auth-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Navin-Jethwani-76","download_url":"https://codeload.github.com/Navin-Jethwani-76/nextjs-auth-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566452,"owners_count":21451230,"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":["cli","cli-app","libsql","mysql","ne","nextjs","nextjs-template","nodejs","postgresql"],"created_at":"2025-04-24T04:59:46.194Z","updated_at":"2025-12-30T23:05:04.719Z","avatar_url":"https://github.com/Navin-Jethwani-76.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth CLI for Next.js\n\n## A CLI tool to scaffold authentication backend routes into any Next.js project with support for MySQL, PostgreSQL, and libSQL (Turso) using Drizzle ORM.\n\n### 🚀 Features\n\n- Adds authentication API routes (/api/auth) to your project\n- Installs required dependencies and configures scripts\n- Sets up environment variables in a `.auth.env` file\n- Supports Drizzle ORM with MySQL, PostgreSQL, and libSQL\n- Easily extendable for other ORMs in future\n\n### 📦 Installation\n\nYou can run the CLI directly via npx:\n\n```bash\nnpx nextjs-auth-cli\n```\n\n### ✅ Benefits\n\n- No Boilerplate Needed: Quickly set up backend logic without rewriting auth from scratch\n- Fully Customizable: You own the code — modify anything to suit your needs\n- Faster Prototyping: Start building features instead of auth plumbing\n- No Vendor Lock-In: Unlike 3rd-party auth or BaaS tools, you control data and logic\n\n### 🔍 Comparison: Custom Auth vs. Third-party Auth\n\n| Feature                     | Custom Backend (this CLI)      | Third-Party Auth/BaaS        |\n| --------------------------- | ------------------------------ | ---------------------------- |\n| Code Ownership              | ✅ Full control                 | ❌ Vendor controlled          |\n| Customization               | ✅ Fully customizable           | ⚠️ Limited customization      |\n| Security                    | ✅ Your own policies            | ❌ Must trust external vendor |\n| Pricing                     | ✅ No ongoing costs             | ❌ May include usage fees     |\n| Flexibility                 | ✅ Adapt to any app requirement | ❌ Limited by service         |\n| DB Knowledge                | ✅ Useful but required          | ❌ Not needed initially       |\n| Data Residency \u0026 Compliance | ✅ Full control                 | ❌ Bound by provider rules    |\n\n\n### ⚠️ Current Limitations\n\n- Only works in Next.js projects\n- Assumes you already have DB connection\n- Only Drizzle ORM supported for now\n- lib/auth.ts and DB logic assumes .env.local is being used to store the secrets\n- For libSQL, only Turso connections are supported\n- No frontend scaffolding — backend only for now\n\n### 🛠️ To-Do (Planned Improvements)\n\n- [ ] Add support for other ORMs (e.g., Prisma, Kysely)\n- [ ] Add support to choose the env file you want to use (or use the one already created)\n- [ ] Add support for non-Next.js frameworks (Make it compatible with all Node.Js projects)\n- [ ] Rollback installed npm packages on error/exit\n\n### 🤝 Contributing\n\nContributions are welcome! Here's how you can help:\n\n- Fork the repository\n- Create a new branch (git checkout -b feature/your-feature-name)\n- Make your changes and commit (git commit -m 'Add some feature')\n- Push to the branch (git push origin feature/your-feature-name)\n- Create a Pull Request\n\nFeel free to open issues for feature suggestions or bug reports.\n\n### 📄 License\nMIT License. See LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavin-jethwani-76%2Fnextjs-auth-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavin-jethwani-76%2Fnextjs-auth-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavin-jethwani-76%2Fnextjs-auth-cli/lists"}