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

@joktec/firebase

v0.2.17

Published

JokTec - Firebase Admin Service

Readme

@joktec/firebase

Firebase Admin integration package for JokTec applications.

@joktec/firebase wraps Firebase Admin SDK initialization with JokTec config parsing, lifecycle hooks, and typed accessors for Firebase app services.

What It Provides

  • FirebaseModule global Nest module.
  • FirebaseService built on AbstractClientService.
  • Firebase credential and app option config models.
  • Firebase client interface.
  • Accessors for Auth, Realtime Database, Messaging, Storage, and Firestore.

Install

yarn add @joktec/firebase

Usage

import { FirebaseModule, FirebaseService } from '@joktec/firebase';

@Module({
  imports: [FirebaseModule],
})
export class AppModule {}

Inject FirebaseService into app services:

const user = await firebaseService.auth().getUser(uid);
await firebaseService.messaging().send({
  token,
  notification: { title: 'Welcome', body: 'Hello from JokTec' },
});

Config

Configure the firebase section in the application config. Credentials may be supplied as a path or structured credential object.

firebase:
  conId: default
  credential: ./_credentials/firebase-cert.json
  databaseURL: https://example.firebaseio.com
  storageBucket: example.appspot.com
  projectId: example-project

Structured credential object:

firebase:
  conId: default
  credential:
    projectId: example-project
    clientEmail: [email protected]
    privateKey: ${FIREBASE_PRIVATE_KEY}

Guidelines

  • Do not commit real service account JSON files or private keys.
  • Use ignored local credential files or environment-specific secret injection.
  • Keep Firebase domain workflows in the consuming app.
  • Package tests mock firebase-admin; use live checks only in controlled integration environments.

Development

yarn lint --scope @joktec/firebase
yarn build --scope @joktec/firebase
yarn test --scope @joktec/firebase