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

@flowselections/setup

v1.3.0

Published

CLI tool voor het opzetten en configureren van Flow Selections shell repos

Readme

@flowselections/setup

CLI tool voor het opzetten van Flow Selections shell repos via een lokaal dashboard.

Gebruik

Voer uit vanuit de root van een nieuwe shell repo:

npx @flowselections/setup

Het script:

  1. Controleert of je in een geldige shell repo staat (src/config/modules.ts aanwezig)
  2. Start een lokale webserver op localhost:3000
  3. Opent het dashboard in de browser
  4. Ontdekt beschikbare modules via een GitHub-org scan
  5. Voert na bevestiging alle configuratiestappen uit

Module-ontdekking (GitHub-scan)

Modules worden niet meer handmatig bijgehouden. Het dashboard scant de GitHub-org (standaard JustFlowSelections) en toont elke repo van type module (heeft build:lib + @flowselections/core als peer/dependency). De pagina-info komt uit het flowselections-veld in de package.json van elke module.

GitHub-token

De scan gebruikt de GitHub-API. Het token wordt gelezen in deze volgorde:

  1. Env-var GITHUB_TOKEN
  2. ~/.flowselections-setup.json (via het tokenveld in het dashboard)

Zonder token werkt de scan alleen voor publieke repos en met een strenge rate-limit. Het token wordt nooit gelogd, nooit in een URL gezet en nooit gecommit (config.json / .flowselections-setup.json staan in .gitignore).

Wat het script doet

| Stap | Actie | |------|-------| | 1 | .npmrc aanmaken met legacy-peer-deps=true | | 2 | package.json bijwerken met geselecteerde dependencies | | 3 | npm install uitvoeren | | 4 | Geïnstalleerde modules valideren (metadata + dist-lib) | | 5 | src/config/modules.ts aanmaken | | 6 | Route-bestanden aanmaken onder src/routes/_authenticated/ | | 7 | module-placeholder.tsx verwijderen | | 8 | Redirect targets instellen (index + login + reset-wachtwoord) | | 9 | Statische assets kopiëren naar public/flowselections-assets/ | | 10 | src/styles.css in canonieke volgorde brengen | | 11 | Git commit + push |

Validatie

Na npm install wordt elke module gecontroleerd op basis van het geïnstalleerde pakket (versie-accuraat). Blockers stoppen de installatie met een rapport:

  • @/-alias in dist-lib
  • export heet nog myModule (niet hernoemd)
  • flowselections-metadata ontbreekt of is ongeldig
  • een pages[].export bestaat niet in dist-lib/index.d.ts
  • pakket ontbreekt in node_modules

Waarschuwingen (asset-imports, context-libs in dependencies, nitro) stoppen de installatie niet. Met de optie "Blockers negeren en toch doorgaan" kun je tijdens de transitie forceren voordat alle modules herpubliceerd zijn.

Vereisten

  • Node.js >= 18
  • Git geïnitialiseerd in de shell repo (met origin remote voor push)