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

laylab

v0.0.18

Published

LayLab official main launcher

Readme

LayLab (Electron + Firebase + Stripe)

LayLab is a desktop app built with Electron. It uses Firebase Auth/Firestore on the client and the official Stripe Payments Firebase Extension to handle subscriptions and a hosted Customer Portal.

Features

  • Email/password sign-in and sign-up
  • Manage profile display name (username)
  • Premium subscription via Stripe Checkout (Firebase Extension)
  • Open Stripe Customer Portal to manage subscription
  • Frameless window with custom minimize/maximize/close controls

Project Structure

LayLab
├── src
│   ├── main
│   │   └── main.js                # Electron main process
│   ├── preload
│   │   └── preload.js             # Secure bridge exposing window controls
│   └── renderer
│       ├── index.html             # UI (auth and account panel)
│       ├── renderer.js            # Firebase auth + Stripe flows
│       └── assets
│           ├── audio/
│           ├── fonts/
│           ├── images/
│           └── style/
│               └── style.css      # Consolidated app styles
├── package.json
└── README.md

Prerequisites

  • Node.js 18+
  • A Firebase project (Web App configured)
  • Stripe Payments Firebase Extension installed and configured

Configure Firebase

Edit src/renderer/renderer.js and fill firebaseConfig.appId with your Web App appId from Firebase Console.

Ensure the Firebase Extension is deployed in us-central1, and your app’s Security Rules allow the needed reads/writes for customers/* subcollections (during dev).

Run

Install dependencies and start Electron:

npm install
npm start

In‑app Stripe portal overlay

The "Manage subscription" and Checkout now open inside the app using an overlayed webview. Close with the ✕ button. External links from the portal are opened in your default browser.

If you prefer opening in the system browser, change showPortal(url) calls back to window.open(url, '_blank') in src/renderer/renderer.js.

Build

Package the app (uses electron-builder):

npm run build

Notes

  • The renderer uses Firebase CDN v10 ESM imports.
  • Checkout and Portal use the Stripe Extension. The renderer tries callable, then direct HTTPS, then Firestore fallback.

License

MIT