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

@core_super_app/utils

v0.0.6

Published

Define utils function for project

Readme

@core_super_app/utils

Utility helpers for React Native projects in the Super App ecosystem.

Features

  • Responsive helpers: scaleWidth, scaleHeight, scaleFont
  • Status bar/device detection helpers for iOS notch and Dynamic Island devices
  • TypeScript declarations included

Installation

npm install @core_super_app/utils

or

yarn add @core_super_app/utils

Requirements

  • Node.js v22.20.0 (see .nvmrc)
  • React Native app environment

Usage

Import from package root:

import {
  scaleWidth,
  scaleHeight,
  scaleFont,
  getStatusBarHeight,
  isIPhoneWithMonobrow,
  isIPhoneWithDynamicIsland,
} from '@core_super_app/utils';

const buttonWidth = scaleWidth(48);
const imageHeight = scaleHeight(28);
const titleSize = scaleFont(16);
const statusBarHeight = getStatusBarHeight();

API

Dimension helpers

  • scaleWidth(size: number): number
    • Scale width based on current screen width.
  • scaleHeight(size: number): number
    • Scale height based on current screen height.
  • scaleFont(size: number): number
    • Scale and round font size by current pixel ratio.

Status bar & device helpers

  • getStatusBarHeight(skipAndroid?: boolean): number | undefined
    • Returns status bar height for iOS and Android.
    • When skipAndroid = true, Android returns 0.
  • isIPhoneX(): boolean
  • isIPhoneXMax(): boolean
  • isIPhone12(): boolean
  • isIPhone12Max(): boolean
  • isIPhoneWithMonobrow(): boolean
  • isIPhoneWithDynamicIsland(): boolean

Package exports

Root exports:

  • @core_super_app/utils

Subpath exports (as configured in package.json):

  • @core_super_app/utils/dimension
  • @core_super_app/utils/status-bar

Development

Install dependencies:

yarn

Available scripts:

  • yarn clean - remove build output (lib)
  • yarn prepare - build package with bob
  • yarn typecheck - run TypeScript checks
  • yarn lint - run ESLint
  • yarn test - run Jest tests
  • yarn release - release version using release-it

CI

GitHub Actions workflow runs on push/PR to main with:

  • Lint
  • Typecheck
  • Tests (with coverage)
  • Build verification

Publishing

This package is published publicly to npm (publishConfig.access = public).

Release command:

yarn release

The release process uses:

  • release-it
  • Conventional Changelog
  • Git tags in format v<version>

Contributing

Contributions are welcome. Please read:

  • CONTRIBUTING.md
  • CODE_OF_CONDUCT.md

Commit messages follow Conventional Commits.

License

MIT