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

@d0paminedriven/turbogen

v0.6.0

Published

rapidly generate a tooling-configured pnpm turborepo via the cli

Downloads

85

Readme

@d0paminedriven/turbogen

Generate a pnpm workspace powered by turborepo ft essential tooling repos as workspace packages and a nextjs web app starter as icing on the cake

Simply run pnpm ddturobgen init from your cli

Installation

pnpm install @d0paminedriven/turbogen

Usage

pnpm ddturbogen init

Run pnpm init in a new repo and install the package.

ddturbogen-install

Once installed, your package.json file should look similar to the following

ddturbogen-package-json-before

Now run the pnpm ddturbogen init command (ddturbogen is short for dopamine driven turbogen 🌚)

There are two prompts to answer, shown below

ddturbogen-init

Once finished, your entire workspace is instantly generated, tooling is configured, and a web app is ready to go. Your locally installed version of pnpm is also parsed and included in your root package.json file

Now, your root package.json should look similar to the following

package-json-after

An important Final step -- run install again from the root

I recommend using the generated corepack script to keep pnpm running at its latest version by running

pnpm latest:pnpm

The command being executed here is

corepack use pnpm@latest

after the corepack command has been run the packageManager field in your package.json file should look similar to the following

{
  "packageManager": "[email protected]+sha512.88c9c3864450350e65a33587ab801acf946d7c814ed1134da4a924f6df5a2120fd36b46aab68f7cd1d413149112d53c7db3a4136624cfd00ff1846a0c6cef48a",
}

This also recursively runs an install for all dependencies in your workspace

The tooling packages

Each package in the tooling directory is a local workspace-only package. These include eslint, jest, prettier, and typescript utilities

Notice that in your root package.json file three of the four packages are referenced in your devDependencies (faderoom just happens to be the name I used for this workspace)


{
  "devDependencies": {
    "@faderoom/eslint-config": "workspace:*",
    "@faderoom/prettier-config": "workspace:*",
    "@faderoom/tsconfig": "workspace:*"
  }
}

Run the web app from the get-go

After successfully installing your dependencies by running pnpm install or pnpm latest:pnpm from the root, run the command to fire up the dev server of the nextjs web app

pnpm run:web