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

@mint-soft/notikit-react

v0.2.0

Published

Notikit React SDK — hooks over the web SDK (Next.js compatible)

Readme

@mint-soft/notikit-react

Notikit React SDK — Web SDK 위의 hooks (Next.js 호환).

설치

npm install @mint-soft/notikit-react

사용

"use client";
import { NotikitProvider, usePushRegistration } from "@mint-soft/notikit-react";

function PushButton() {
  const { status, register, error } = usePushRegistration();
  return (
    <button onClick={register} disabled={status === "registering"}>
      {status === "registered" ? "알림 켜짐 ✓" : "알림 받기"}
      {error && <span> — {error}</span>}
    </button>
  );
}

export default function App() {
  return (
    <NotikitProvider
      config={{
        baseUrl: "https://push.example.com",
        apiKey: "nk_xxx",
        vapidPublicKey: "BÖ...",
        // 필수 — 서비스워커가 이 값으로 Firebase 를 초기화해야 백그라운드 푸시를 받는다.
        // Firebase 콘솔 > 프로젝트 설정 > 내 앱(웹)의 구성값 그대로. 모두 공개값이다.
        firebase: {
          apiKey: "AIza...",
          projectId: "my-project",
          messagingSenderId: "1234567890",
          appId: "1:1234567890:web:abc123",
        },
        userId: "user-123", // 고객 서비스의 유저 id (서버에는 user_id 로 전송)
      }}
    >
      <PushButton />
    </NotikitProvider>
  );
}

API

| | 설명 | |---|---| | <NotikitProvider config> | 컨텍스트 제공 | | useNotikit() | NotikitWeb 인스턴스 | | usePushRegistration() | { status, token, error, register } |

config 는 @mint-soft/notikit-web 의 NotikitWebConfig 입니다. 위처럼 JSX 안에 인라인으로 써도 됩니다 — 렌더마다 객체·함수가 새로 만들어져도 값이 같으면 같은 인스턴스를 유지합니다(등록한 토큰과 포그라운드 수신이 유지됨). baseUrl·apiKey·firebase 값·userId·identityHash 등이 실제로 바뀔 때만 새 인스턴스를 만들며, 그때는 register() 를 다시 불러야 합니다. 이전 이름 externalId(external_id)도 그대로 동작하지만 deprecated 입니다 — userId 를 쓰세요.

라이선스

Apache-2.0