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

@react-perfscope/core

v0.7.1

Published

Recorder and signal collectors for react-perfscope.

Downloads

1,750

Readme

@react-perfscope/core

Core recording engine for react-perfscope. Provides a Recorder and pluggable Collectors that emit normalized performance signals (forced-reflow, long-task, layout-shift, network, web-vital, interaction).

Install

npm install @react-perfscope/core

Usage

import {
  createRecorder,
  createForcedReflowCollector,
  createLongTasksCollector,
  createLayoutShiftCollector,
  createNetworkCollector,
  createWebVitalsCollector,
} from '@react-perfscope/core'

const recorder = createRecorder()
recorder.use(createForcedReflowCollector())
recorder.use(createLongTasksCollector())
recorder.use(createLayoutShiftCollector())
recorder.use(createNetworkCollector())
recorder.use(createWebVitalsCollector())

recorder.start()
// ... user interaction ...
const result = recorder.stop()

console.log(result.signals)

Source-map resolution

createSourceMapResolver() returns an async resolver that follows //# sourceMappingURL= references (including inline data: URIs) and resolves a StackFrame to its original source position, so bundled stack traces become readable. Falls back to the input frame on any failure.

import { createSourceMapResolver } from '@react-perfscope/core'

const resolver = createSourceMapResolver()
const original = await resolver.resolve(parsedFrame)

한국어

react-perfscope의 핵심 레코딩 엔진. Recorder와 플러그인 방식의 Collector를 제공해서 정규화된 성능 신호(forced-reflow, long-task, layout-shift, network, web-vital, interaction)를 내보낸다.

설치

npm install @react-perfscope/core

사용법

import {
  createRecorder,
  createForcedReflowCollector,
  createLongTasksCollector,
  createLayoutShiftCollector,
  createNetworkCollector,
  createWebVitalsCollector,
} from '@react-perfscope/core'

const recorder = createRecorder()
recorder.use(createForcedReflowCollector())
recorder.use(createLongTasksCollector())
recorder.use(createLayoutShiftCollector())
recorder.use(createNetworkCollector())
recorder.use(createWebVitalsCollector())

recorder.start()
// ... 유저 인터랙션 ...
const result = recorder.stop()

console.log(result.signals)

Source-map 해석

createSourceMapResolver()//# sourceMappingURL= 참조(inline data: URI 포함)를 따라가서 StackFrame을 원본 소스 위치로 해석해주는 async resolver를 반환한다. 덕분에 번들된 스택 트레이스를 읽을 수 있다. 실패하면 원본 frame을 그대로 반환한다.

import { createSourceMapResolver } from '@react-perfscope/core'

const resolver = createSourceMapResolver()
const original = await resolver.resolve(parsedFrame)