{"id":30657158,"url":"https://github.com/peterkyle01/create-rust-on-vercel","last_synced_at":"2026-01-20T16:52:43.939Z","repository":{"id":312528094,"uuid":"1047788194","full_name":"peterkyle01/create-rust-on-vercel","owner":"peterkyle01","description":"A beautiful CLI tool to scaffold Rust projects for Vercel with Next.js frontend","archived":false,"fork":false,"pushed_at":"2025-08-31T08:38:32.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-31T10:17:36.768Z","etag":null,"topics":["javascript","nextjs15","postresql","rust"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterkyle01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-08-31T08:24:44.000Z","updated_at":"2025-08-31T09:13:01.000Z","dependencies_parsed_at":"2025-08-31T10:17:38.202Z","dependency_job_id":"24157fd8-738d-4060-b8fa-07301184d6ea","html_url":"https://github.com/peterkyle01/create-rust-on-vercel","commit_stats":null,"previous_names":["peterkyle01/create-rust-on-vercel"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/peterkyle01/create-rust-on-vercel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fcreate-rust-on-vercel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fcreate-rust-on-vercel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fcreate-rust-on-vercel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fcreate-rust-on-vercel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterkyle01","download_url":"https://codeload.github.com/peterkyle01/create-rust-on-vercel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkyle01%2Fcreate-rust-on-vercel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272971549,"owners_count":25024099,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":["javascript","nextjs15","postresql","rust"],"created_at":"2025-08-31T11:10:18.029Z","updated_at":"2025-10-09T17:14:47.056Z","avatar_url":"https://github.com/peterkyle01.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦀 Create Rust on Vercel\n\n\u003cdiv align=\"center\"\u003e\n\n![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge\u0026logo=rust\u0026logoColor=white)\n![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge\u0026logo=vercel\u0026logoColor=white)\n![Next.js](https://img.shields.io/badge/Next-black?style=for-the-badge\u0026logo=next.js\u0026logoColor=white)\n![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)\n\n**A beautiful CLI tool to scaffold Rust projects for Vercel with Next.js frontend**\n\n[Features](#-features) • [Installation](#-installation) • [Usage](#-usage) • [Project Structure](#-project-structure) • [Contributing](#-contributing)\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- 🚀 **One-command setup** - Create a full-stack Rust + Next.js project instantly\n- 📦 **Automatic dependency management** - Handles both npm and cargo dependencies\n- 🎨 **Beautiful CLI experience** - Rich colors, emojis, and progress indicators\n- 🔧 **Smart configuration** - Automatically updates project names and imports\n- 🦀 **Rust API endpoints** - Pre-configured serverless functions for Vercel\n- ⚡ **Next.js frontend** - Modern React setup with TypeScript\n- 📝 **Database ready** - Includes SQLx setup and migrations\n- 🔐 **Authentication** - JWT-based auth system included\n- 🎯 **Type-safe** - Full TypeScript integration with Rust types\n\n## 🚀 Installation\n\n### NPX (Recommended)\n\n```bash\nnpx create-rust-on-vercel my-awesome-project\n```\n\n### Global Installation\n\n```bash\nnpm install -g create-rust-on-vercel\ncreate-rust-on-vercel my-awesome-project\n```\n\n### Local Development\n\n```bash\ngit clone https://github.com/peterkyle01/create-rust-on-vercel.git\ncd create-rust-on-vercel\nnpm install\nnpm link\n```\n\n## 🎯 Usage\n\n### 🌐 Live Example\n\nSee what this CLI creates by visiting our live demo: **[https://rust-on-vercel-template.vercel.app/](https://rust-on-vercel-template.vercel.app/)**\n\nThis showcase demonstrates the full-stack Rust + Next.js application that gets generated, complete with authentication, database integration, and API endpoints.\n\n### Interactive Mode\n\n```bash\nnpx create-rust-on-vercel\n```\n\nThe CLI will prompt you for a project name if not provided.\n\n### Direct Mode\n\n```bash\nnpx create-rust-on-vercel my-project-name\n```\n\n### What happens when you run it:\n\n1. 📥 **Downloads template** from GitHub repository\n2. 📝 **Updates configuration** files with your project name\n3. 🔄 **Updates Rust imports** to match your project structure\n4. 📦 **Installs Node.js dependencies** via npm\n5. 🦀 **Builds Rust project** via cargo\n6. 🎉 **Ready to go!**\n\n## 📁 Project Structure\n\n```\nmy-awesome-project/\n├── 🦀 api/                    # Rust serverless functions\n│   ├── auth/                  # Authentication endpoints\n│   │   ├── signin.rs         # User login\n│   │   ├── signup.rs         # User registration\n│   │   └── me.rs             # Get current user\n│   └── routes/               # API routes\n│       └── products.rs       # Example CRUD operations\n├── ⚛️  app/                   # Next.js App Router\n│   ├── (auth)/              # Auth pages\n│   ├── dashboard/           # Protected dashboard\n│   └── layout.tsx           # Root layout\n├── 🎨 components/            # Reusable React components\n├── 📚 lib/                   # Shared utilities\n│   ├── rust/                # Rust utilities\n│   └── utils.ts             # TypeScript utilities\n├── 🗄️  migrations/           # Database migrations\n├── 🔧 types/                 # TypeScript type definitions\n├── ⚙️  Cargo.toml            # Rust dependencies\n├── 📦 package.json          # Node.js dependencies\n└── 🚀 vercel.json           # Vercel configuration\n```\n\n## 🛠️ Development Workflow\n\nAfter creating your project:\n\n```bash\ncd my-awesome-project\n\n# Start development server\nvercel dev\n\n# Build for production\nnpm run build\n\n# Database operations\nnpm run db:setup          # Setup database and generate types\nnpm run db:migrate        # Run migrations\nnpm run generate:types    # Generate TypeScript types from Rust\n\n# Rust operations\nnpm run rust:build        # Build Rust functions\nnpm run rust:check        # Check Rust code\nnpm run rust:check-offline # Check code without database connection\n```\n\n## 🔧 Configuration\n\n### Environment Variables\n\nCopy `.env.example` to `.env.local` and configure:\n\n```env\nDATABASE_URL=\"postgresql://user:password@localhost/dbname\"\nJWT_SECRET=\"your-super-secret-jwt-key\"\nNEXTAUTH_SECRET=\"your-nextauth-secret\"\n```\n\n### Vercel Deployment\n\nThe project includes a `vercel.json` configuration for seamless deployment:\n\n```bash\nvercel deploy\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. 🍴 Fork the repository\n2. 🌟 Create a feature branch: `git checkout -b feature/amazing-feature`\n3. 💫 Commit your changes: `git commit -m 'Add amazing feature'`\n4. 📤 Push to the branch: `git push origin feature/amazing-feature`\n5. 🎉 Open a Pull Request\n\n### Development Setup\n\n```bash\ngit clone https://github.com/peterkyle01/create-rust-on-vercel.git\ncd create-rust-on-vercel\nnpm install\n\n# Make your changes to index.js\n# Test locally\nnpx ./index.js test-project\n```\n\n## 📝 License\n\nThis project is licensed under the MIT License.\n\n## 👨‍💻 Author\n\n**Peter Mwangi**\n\n- 📧 Email: kylepeterkoine4@gmail.com\n- 🐙 GitHub: [@peterkyle01](https://github.com/peterkyle01)\n\n## 🙏 Acknowledgments\n\n- 🦀 [Rust](https://www.rust-lang.org/) - Systems programming language\n- ⚡ [Vercel](https://vercel.com/) - Deployment platform\n- ⚛️ [Next.js](https://nextjs.org/) - React framework\n- 🎨 [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS framework\n\n## 📊 Stats\n\n\u003cdiv align=\"center\"\u003e\n\n![GitHub stars](https://img.shields.io/github/stars/peterkyle01/create-rust-on-vercel?style=social)\n![GitHub forks](https://img.shields.io/github/forks/peterkyle01/create-rust-on-vercel?style=social)\n![GitHub issues](https://img.shields.io/github/issues/peterkyle01/create-rust-on-vercel)\n![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)\n\n\u003c/div\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**Made with ❤️ and 🦀 by Peter Mwangi**\n\n[⭐ Star this repo](https://github.com/peterkyle01/create-rust-on-vercel) • [🐛 Report Bug](https://github.com/peterkyle01/create-rust-on-vercel/issues) • [💡 Request Feature](https://github.com/peterkyle01/create-rust-on-vercel/issues)\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterkyle01%2Fcreate-rust-on-vercel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterkyle01%2Fcreate-rust-on-vercel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterkyle01%2Fcreate-rust-on-vercel/lists"}