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

fantasta

v0.3.2

Published

Asta di Fantacalcio in LAN senza server: avvia la regia come vera app desktop e i partecipanti si collegano dal telefono. Nessuna installazione richiesta.

Readme

Fantasta — avvia l'asta dal terminale

Asta di Fantacalcio giocata in LAN senza server. Questo comando apre la vera app desktop sul tuo computer; i partecipanti si collegano dal telefono (o da qualunque browser) sulla tua rete locale, senza installare nulla.

npx fantasta

Niente installer, niente avvisi di sicurezza: il binario Electron incluso nel pacchetto è firmato da GitHub, quindi non c'è Gatekeeper da aggirare.

Cosa succede

  • Al primo avvio su macOS viene preparata una vera Fantasta.app (nome, icona e identificatore corretti) dentro ~/.fantasta/ — pochi secondi, una volta sola;
  • si apre la finestra dell'app desktop (regia) con l'icona e il nome di Fantasta nel Dock;
  • si avvia il server SQLite/LAN locale (porta 47821);
  • si avvia il renderer della regia (porta 47822), raggiungibile anche dal browser dei partecipanti;
  • il terminale torna subito libero: l'app gira da sola, chiudi la finestra per fermare tutto e disconnettere i partecipanti (i log finiscono in ~/.fantasta/desktop.log).

I partecipanti si collegano con il QR code mostrato durante la creazione della lega (o col link) e seguono l'asta dal telefono. Serve una sola connessione: quella del PC che gestisce l'asta.

Modalità browser (opzionale)

Se preferisci la regia nel browser di default invece della finestra:

npx fantasta --browser

Requisiti

  • Node.js 22 o superiore (il database usa node:sqlite, incluso nel runtime).
  • Al primo avvio npm scarica anche il binario Electron (~120 MB, una volta sola).

Dove vengono salvati i dati

  • Tutti i dati (database, sessione admin, log e l'app Fantasta.app su macOS) stanno in ~/.fantasta/ (FANTASTA_DATA_DIR per cambiare cartella).
  • Finestra desktop: fantasta.db in ~/.fantasta/ (o FANTASTA_DATABASE_PATH).
  • Modalità browser / sessioni: ~/.fantasta/ (fantasta.db, admin-session.txt).

Opzioni (variabili d'ambiente)

Tutte opzionali, se non impostate valgono i default qui sotto.

| Variabile | Default | Descrizione | | --- | --- | --- | | FANTASTA_PORT | 47821 | Porta del server locale (SQLite/LAN) | | FANTASTA_RENDERER_PORT | 47822 | Porta del renderer (regia e partecipanti) | | FANTASTA_DATABASE_PATH | vedi sopra | Percorso del database | | FANTASTA_DATA_DIR | ~/.fantasta | Cartella dei dati (modalità browser) | | FANTASTA_BROWSER | — | 1 equivale a --browser |

Esempio con porte diverse:

FANTASTA_PORT=49001 FANTASTA_RENDERER_PORT=49002 npx fantasta

Perché npx e non l'installer?

L'"app desktop" di Fantasta è in realtà due processi Node (server LAN e renderer) avvolti da Electron. Il pacchetto npm include tutto e lancia il binario Electron ufficiale, firmato da GitHub: per questo non c'è alcun avviso di sicurezza all'apertura su macOS, Windows o Linux (niente Gatekeeper da aggirare). Su macOS al primo avvio il pacchetto assembla una vera Fantasta.app (copia del dist Electron con nome e icona corretti): nel Dock compare solo Fantasta, senza l'icona "exec" né quella generica di Electron. Se preferisci una finestra "installata" a sistema, la distribuzione installer (.dmg/.exe) resta scaricabile dalle GitHub Releases del progetto.

Sviluppo in questo repo

Il pacchetto viene costruito a partire dagli artifact del monorepo:

# dalla radice del progetto:
npm run web:build        # produce apps/web/.next/standalone (renderer)
# poi, dentro cli/:
npm publish              # prepack assembla le risorse e carica il tarball

Pubblicare su npm

Il pacchetto assembla le risorse automaticamente con prepack:

cd cli
npm publish   # esegue prepack e carica il tarball

Dopo il publish, dalla root del progetto va allineata la stessa versione del monorepo al prossimo tag di release.