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

novactorio

v1.0.0

Published

Browser-based Factorio-style factory building game, fully playable in the browser with production chains and logistics

Downloads

186

Readme

Novactorio

Gra przeglądarkowa w stylu factory automation (inspirowana Factorio) – napisana od zera w TypeScript, z własnym silnikiem Canvas 2D.

Stack: TypeScript 5.5 (strict), React 18, Vite 6, Supabase, Stripe, Deno Edge Functions.


Architektura

Silnik gry (src/game/)

  • Własny silnik 2D na Canvas API – brak bibliotek zewnętrznych (Phaser, Pixi itp.)
  • engine.ts – pętla gry (update/render), logika budynków, inventory, combat, particles
  • renderer.ts – 10 wyodrębnionych metod renderowania (sky, ground, entities, damage numbers itd.)
  • systems.ts – supply chains, conveyor belts, pipe networks, enemy AI, pollution
  • world.ts / noise.ts – chunk-based world generation (Perlin noise), infinite scrolling

UI (src/components/)

  • React 18 jako overlay UI (menu, statystyki, sklep, czat itp.)
  • Pełny routing ekranów: Auth → Start → Gra
  • 23 języki (i18n.ts), zapis lokalny + chmura (Supabase)

Backend (Supabase)

  • Auth – rejestracja/logowanie przez Supabase Auth
  • Realtime – co-op (broadcast pozycji, build place/remove)
  • Cloud saves – backup w world_snapshots.save_data
  • Stripesupabase/functions/stripe-checkout (Deno Edge Function) i stripe-webhook

Stripe / Premium

  • Subskrypcje Starter/Premium przez Stripe Checkout
  • Webhook aktualizuje profiles.premium_tier w Supabase
  • Frontend odświeża premiumTier po logowaniu i po przekierowaniu zwrotnym

Uruchomienie

npm install
npm run dev          # Vite dev server (localhost:5173)
npm run build        # Produkcyjny build

TypeScript (FAT32 workaround)

node node_modules/typescript/bin/tsc --noEmit

Edge Functions (wymaga kluczy Stripe)

supabase functions serve stripe-checkout --env-file .env.local
supabase functions serve stripe-webhook --env-file .env.local

Wyróżniki (portfolio)

| Cecha | Opis | |-------|------| | Własny silnik gierki | ~2500 linii renderera Canvas 2D, bez frameworków | | TypeScript strict | strict: true w tsconfig, bez błędów tsc --noEmit | | Factorio-like | conveyory, inserters, pipe networks, research tree, pollution, enemy evolution | | 23 języki | i18n z dynamicznym przełączaniem, polski i angielski pełne | | Supabase | Auth, Realtime co-op, cloud saves, RLS | | Stripe | Subskrypcje Premium przez Deno Edge Functions | | Co-op | Współpraca wielu graczy przez Supabase Realtime broadcast | | Mobile-ready | Responsywne UI, dotykowe sterowanie |