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

node-vite-easysetup

v1.0.3

Published

By installing this package you can easily set up MERN project with node and vite.

Readme

Node-Vite-EasySetup

Node-Vite-EasySetup is an NPM package that allows you to quickly scaffold a full-stack application with an Express.js backend and a Vite-powered React frontend. The generated project structure is pre-configured with essential folders, files, and setups to streamline your development process.

Features

  • Express.js Backend:

    • Includes pre-configured folder structure: src, utils, models, controllers, routes, config
    • MongoDB connection with .env support
    • Example API route for quick start
  • Vite.js Frontend:

    • React-based frontend using Vite for fast development
    • Pre-configured folders: components, shared, utils, context
    • Example AppContext setup for state management
    • TailwindCSS configuration included (optional)

Installation

To use the package, you must first install it globally:

npm install -g node-vite-easysetup

Usage

Run the following command to create a new full-stack project:

npx node-vite-easysetup <project-name>

Replace <project-name> with the desired name of your project. If no name is provided, the default project name will be my-fullstack-app.

Example

node-vite-easysetup my-awesome-project

This will generate a folder structure like this:

my-awesome-project/
├── backend/
│   ├── src/
│   │   ├── index.js
│   │   ├── routes/
│   │       └── index.js
│   ├── utils/
│   ├── models/
│   ├── controllers/
│   ├── config/
│   └── .env
├── frontend/
    ├── src/
    │   ├── components/
    │   ├── shared/
    │   ├── utils/
    │   ├── context/
    │       └── AppContext.js
    └── tailwind.config.js

Project Details

Backend

  1. Dependencies:

    • Express.js
    • Mongoose
    • dotenv
  2. Features:

    • MongoDB connection setup with .env configuration.
    • Basic Express.js setup including a sample route (/api).
  3. Environment Variables: Define the following variables in .env:

    MONGO_URI=your_mongodb_uri
    PORT=5000

Frontend

  1. Dependencies:

    • React (via Vite template)
    • TailwindCSS (optional)
  2. Features:

    • Organized folder structure for components, shared utilities, and context management.
    • Pre-configured TailwindCSS setup (editable via tailwind.config.js).
  3. Context Setup: An example AppContext file is included for managing global state.

Development

Start Backend

Navigate to the backend folder and install dependencies:

cd backend
npm install
node src/index.js

Start Frontend

Navigate to the frontend folder and install dependencies:

cd frontend
npm install
npm run dev

The frontend will be available at http://localhost:5173.

Full-stack Development

  • Ensure the backend and frontend are running simultaneously.
  • The backend API is accessible via /api from the frontend.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests on the GitHub repository.

License

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


Start building amazing full-stack apps faster with Node-Vite-EasySetup!