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 πŸ™

Β© 2024 – Pkg Stats / Ryan Hefner

create-sopi-app

v1.0.8

Published

πŸš€ A command-line tool to scaffold a Next.js 14 project pre-configured with TypeScript and ShadCN, designed to help you set up your projects quickly. It also offers an optional Prisma ORM integration for data modeling.

Downloads

495

Readme

create-sopi-app

πŸš€ A command-line tool to scaffold a Next.js 14 project pre-configured with TypeScript and ShadCN, designed to help you set up your projects quickly. It also offers an optional Prisma ORM integration for data modeling.

✨ Features

  • Next.js 14 with TypeScript pre-configured
  • ShadCN styles and components pre-installed for UI consistency
  • Optional Prisma ORM setup, including .env.example and Prisma schema
  • Zero config: All dependencies installed and configurations handled for you

πŸ“‹ Prerequisites

  • Node.js v14 or higher
  • npm v6 or higher (comes with Node.js)

πŸ› οΈ Installation

You can run create-sopi-app directly with npx:

npx create-sopi-app

πŸ§‘β€πŸ’» Usage

Running npx create-sopi-app will guide you through a few setup questions and generate a new project directory based on your responses.

  1. Run the CLI:

    npx create-sopi-app
  2. Answer Prompts:

    • Project name: Specify the name for your new project.
    • Prisma ORM: Choose if you want to add Prisma ORM for database management.
  3. Start Developing: Navigate to the project folder and run the development server:

    cd <your-project-name>
    npm run dev

πŸ“‚ Project Structure

Your generated project will have the following structure:

<project-name>/
β”œβ”€β”€ .env.example          # Environment variable template
β”œβ”€β”€ prisma/               # Prisma directory (if selected)
β”‚   └── schema.prisma     # Basic Prisma schema
β”œβ”€β”€ public/               # Public assets
β”œβ”€β”€ src/                  # Main project files
β”‚   β”œβ”€β”€ app/              # Next.js papp directory
β”‚   β”œβ”€β”€ components/ui/    # ShadCN components
β”œβ”€β”€ package.json
└── tsconfig.json         # TypeScript configuration

Example Output

$ npx create-sopi-app
Creating your Sopi Next.js app...
? Enter your project name: my-awesome-app
? Would you like to add Prisma ORM to the project? (Y/n) Y
Adding Prisma ORM...
Installing dependencies...
Setup complete! Run your app with the following commands:
  cd my-awesome-app
  npm run dev

🀝 Contributing

Contributions are welcome! Follow the steps below to set up the development environment:

  1. Clone the repository:

    git clone https://github.com/your-username/create-sopi-app.git
  2. Install dependencies:

    npm install
  3. Test locally:

    node create-sopi-app.js

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for more details.