npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-rust-on-vercel

v1.0.5

Published

Scaffold a new Rust project for Vercel with a Next.js frontend.

Readme

🦀 Create Rust on Vercel

Rust Vercel Next.js TypeScript

A beautiful CLI tool to scaffold Rust projects for Vercel with Next.js frontend

FeaturesInstallationUsageProject StructureContributing

✨ Features

  • 🚀 One-command setup - Create a full-stack Rust + Next.js project instantly
  • 📦 Automatic dependency management - Handles both npm and cargo dependencies
  • 🎨 Beautiful CLI experience - Rich colors, emojis, and progress indicators
  • 🔧 Smart configuration - Automatically updates project names and imports
  • 🦀 Rust API endpoints - Pre-configured serverless functions for Vercel
  • Next.js frontend - Modern React setup with TypeScript
  • 📝 Database ready - Includes SQLx setup and migrations
  • 🔐 Authentication - JWT-based auth system included
  • 🎯 Type-safe - Full TypeScript integration with Rust types

🚀 Installation

NPX (Recommended)

npx create-rust-on-vercel my-awesome-project

Global Installation

npm install -g create-rust-on-vercel
create-rust-on-vercel my-awesome-project

Local Development

git clone https://github.com/peterkyle01/create-rust-on-vercel.git
cd create-rust-on-vercel
npm install
npm link

🎯 Usage

🌐 Live Example

See what this CLI creates by visiting our live demo: https://rust-on-vercel-template.vercel.app/

This showcase demonstrates the full-stack Rust + Next.js application that gets generated, complete with authentication, database integration, and API endpoints.

Interactive Mode

npx create-rust-on-vercel

The CLI will prompt you for a project name if not provided.

Direct Mode

npx create-rust-on-vercel my-project-name

What happens when you run it:

  1. 📥 Downloads template from GitHub repository
  2. 📝 Updates configuration files with your project name
  3. 🔄 Updates Rust imports to match your project structure
  4. 📦 Installs Node.js dependencies via npm
  5. 🦀 Builds Rust project via cargo
  6. 🎉 Ready to go!

📁 Project Structure

my-awesome-project/
├── 🦀 api/                    # Rust serverless functions
│   ├── auth/                  # Authentication endpoints
│   │   ├── signin.rs         # User login
│   │   ├── signup.rs         # User registration
│   │   └── me.rs             # Get current user
│   └── routes/               # API routes
│       └── products.rs       # Example CRUD operations
├── ⚛️  app/                   # Next.js App Router
│   ├── (auth)/              # Auth pages
│   ├── dashboard/           # Protected dashboard
│   └── layout.tsx           # Root layout
├── 🎨 components/            # Reusable React components
├── 📚 lib/                   # Shared utilities
│   ├── rust/                # Rust utilities
│   └── utils.ts             # TypeScript utilities
├── 🗄️  migrations/           # Database migrations
├── 🔧 types/                 # TypeScript type definitions
├── ⚙️  Cargo.toml            # Rust dependencies
├── 📦 package.json          # Node.js dependencies
└── 🚀 vercel.json           # Vercel configuration

🛠️ Development Workflow

After creating your project:

cd my-awesome-project

# Start development server
vercel dev

# Build for production
npm run build

# Database operations
npm run db:setup          # Setup database and generate types
npm run db:migrate        # Run migrations
npm run generate:types    # Generate TypeScript types from Rust

# Rust operations
npm run rust:build        # Build Rust functions
npm run rust:check        # Check Rust code
npm run rust:check-offline # Check code without database connection

🔧 Configuration

Environment Variables

Copy .env.example to .env.local and configure:

DATABASE_URL="postgresql://user:password@localhost/dbname"
JWT_SECRET="your-super-secret-jwt-key"
NEXTAUTH_SECRET="your-nextauth-secret"

Vercel Deployment

The project includes a vercel.json configuration for seamless deployment:

vercel deploy

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. 🍴 Fork the repository
  2. 🌟 Create a feature branch: git checkout -b feature/amazing-feature
  3. 💫 Commit your changes: git commit -m 'Add amazing feature'
  4. 📤 Push to the branch: git push origin feature/amazing-feature
  5. 🎉 Open a Pull Request

Development Setup

git clone https://github.com/peterkyle01/create-rust-on-vercel.git
cd create-rust-on-vercel
npm install

# Make your changes to index.js
# Test locally
npx ./index.js test-project

📝 License

This project is licensed under the MIT License.

👨‍💻 Author

Peter Mwangi

🙏 Acknowledgments

  • 🦀 Rust - Systems programming language
  • Vercel - Deployment platform
  • ⚛️ Next.js - React framework
  • 🎨 Tailwind CSS - Utility-first CSS framework

📊 Stats

GitHub stars GitHub forks GitHub issues License: MIT


Made with ❤️ and 🦀 by Peter Mwangi

⭐ Star this repo🐛 Report Bug💡 Request Feature