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 🙏

© 2025 – Pkg Stats / Ryan Hefner

yuv-nextjs-boilerplate

v0.1.0

Published

A clean, minimal NextJS boilerplate with Clerk, MongoDB, Tailwind and Shadcn UI

Downloads

3

Readme

YUV.AI NextJS Boilerplate

A clean, minimal foundation to build your next project with NextJS, Clerk for authentication, MongoDB Atlas for database, Shadcn UI components, and Tailwind CSS for styling.

🚀 Features

  • NextJS 15+ - Latest Next.js with App Router
  • Authentication - Secure user authentication with Clerk
  • MongoDB Atlas - Scalable database integration
  • Shadcn UI - Beautiful UI components
  • Tailwind CSS - Utility-first CSS framework
  • TypeScript - Type-safe code
  • Dark Mode - Beautiful dark/light theme support
  • Responsive Design - Mobile-first approach

🛠️ Getting Started

Prerequisites

  • Node.js (v18+)
  • npm or yarn or pnpm
  • MongoDB Atlas account (or local MongoDB for development)
  • Clerk account

Installation Options

Option 1: NPX (Quickest)

npx create-yuv-app my-app
cd my-app

Option 2: Git Clone

# Clone using the convenience script (Linux/Mac)
curl -L https://raw.githubusercontent.com/hoodini/yuv-nextjs-boilerplate/main/install.sh | bash

# OR using the Windows batch script
curl -L https://raw.githubusercontent.com/hoodini/yuv-nextjs-boilerplate/main/install.bat -o install.bat && install.bat

# OR manually
git clone https://github.com/hoodini/yuv-nextjs-boilerplate.git my-app
cd my-app
npm install

Option 3: Docker (with local MongoDB)

# Clone the repository
git clone https://github.com/hoodini/yuv-nextjs-boilerplate.git my-app
cd my-app

# Start with Docker Compose
docker-compose up -d

Setting Up Environment Variables

Copy the example environment file and update with your credentials:

cp .env.example .env.local

Then update .env.local with your MongoDB connection string and Clerk credentials:

# MongoDB Connection String
MONGODB_URI="mongodb+srv://<username>:<password>@<cluster-url>/<database-name>?retryWrites=true&w=majority"

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_publishable_key
CLERK_SECRET_KEY=your_secret_key

Running the Development Server

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

📦 Project Structure

mybp/
├── .clerk/               # Clerk authentication config
├── public/               # Static assets
├── src/
│   ├── app/              # App router pages
│   │   ├── api/          # API routes
│   │   │   ├── health/   # Health check endpoint
│   │   │   └── mongodb/  # MongoDB API endpoints
│   │   └── page.tsx      # Home page
│   └── lib/              # Utility functions
│       └── models/       # MongoDB models
├── .env.example          # Example environment variables
├── components.json       # Shadcn UI components config
└── ...                   # Other config files

🐳 Docker Deployment

This project includes Docker configuration for easy deployment:

# Build and run the Docker image
docker build -t yuv-nextjs-app .
docker run -p 3000:3000 -e MONGODB_URI=your_mongodb_uri yuv-nextjs-app

# Or using Docker Compose (includes MongoDB)
docker-compose up -d

📝 License

This project is created by Yuval Avidani, AI Builder & Speaker.

"Fly High With YUV.AI"


📚 Learn More

🙏 Credits

Developed with ❤️ by Yuval Avidani

MongoDB Setup

This project is set up to use MongoDB Atlas. Follow these steps to configure your database:

  1. Create an account on MongoDB Atlas
  2. Create a new cluster (the free tier is sufficient for development)
  3. In the Security tab, create a database user and set up network access
  4. In the Database tab, click "Connect" on your cluster, and select "Connect your application"
  5. Copy your connection string
  6. Create a .env.local file in the root of your project based on .env.example
  7. Replace the placeholder in MONGODB_URI with your connection string

Once you've set up your MongoDB connection string in .env.local, the application will automatically connect to your database.

You can test the MongoDB connection by visiting the health check endpoint:

http://localhost:3000/api/health

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.