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

@capgoblin/init

v1.0.2

Published

The init tool is a command-line interface for initializing new web projects with popular frameworks and configurations.

Downloads

1

Readme

init

The init tool is a command-line interface for initializing new web projects with popular frameworks and configurations. It supports both Next.js and Vite projects and includes options for additional configurations like Shadcn UI and MUI (Material-UI), and can also set up backend projects using Node.js or Go with optional PostgreSQL integration.

Features (so far)

Frontend Initialization:

  • Next.js Projects: Bootstrap a new Next.js application with TypeScript, ESLint, Tailwind CSS, and additional configurations like Shadcn UI and MUI.
  • Vite Projects: Set up a new Vite project with React and TypeScript, with optional Shadcn UI integration.

Backend Initialization:

  • Go Projects: Create a new Go backend project, optionally with PostgreSQL integration.
  • Node.js Projects: Set up a new Node.js backend project, optionally with PostgreSQL integration.

Usage

Initialize a Next.js Project

To create a new Next.js project with specific settings, use:

init -f next [flags]

Flags: --shadcn: Run shadcn-ui init -d after creating the Next.js app. --mui: Install Material-UI packages (@mui/material, @emotion/react, and @emotion/styled) after creating the Next.js app.

Example:

init -f next --shadcn --mui

Initialize a Vite Project

To create a new Vite project with React and TypeScript, use:

init -f vite [flags]

Flags: --vite: Create a Vite project with React and TypeScript. --tw: To add tailwindcss to the vite app --shadcn: Run Shadcn UI initialization after creating the Next.js app. --mui: Install MUI packages after creating the Next.js app.

Example:

init -f -vite --tw --mui

Initialize a Node.js Backend

To create a new Node.js backend project with optional PostgreSQL support, use:

init -b node [flags]

Flags: --pg: Include PostgreSQL database integration.

Example:

init -b node --pg

Initialize a Go Backend

To create a new Go backend project with optional PostgreSQL support, use:

init -b go [flags]

Flags: --pg: Include PostgreSQL database integration.

Example:

init -b go --pg

Initialize both frontend and backend in a single command:

init -f vite --shadcn -b go --pg
init -f next --mui -b node --pg