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

expo-squircle

v0.2.0

Published

Figma-style squircle background component for Expo and React Native apps.

Readme

expo-squircle

Provides a reusable squircle background for Expo / React Native apps. It reuses the Figma squircle equations, caches the SVG path per size, and renders through react-native-svg.

Requirements

  • Expo SDK 54+ / React Native 0.81+
  • React 18+

Installation

npm install expo-squircle

Inside this repository, the example app already links to the package via file:.., so running npm install in packages/expo-squircle/example is enough for local previews.

Usage

import Squircle, { RoundedSurfaceOptions } from 'expo-squircle';

const cardBackdrop: RoundedSurfaceOptions = {
  baseRadius: 32,
  smoothFactor: 0.65,
  surfaceColor: '#101828',
  borderColor: '#98A2B3',
  borderWidth: 1,
};

export function Card() {
  return (
    <Squircle squircleParams={cardBackdrop} style={{ padding: 24 }}>
      {children}
    </Squircle>
  );
}

RoundedSurfaceOptions

| Prop | Type | Default | Description | |---------------------|----------------|--------------|----------------------------------------------------------------------------------------------| | baseRadius | number | 0 | Base radius applied when individual corners are not provided. | | topLeftRadius | number | baseRadius | Overrides the top-left radius. | | topRightRadius | number | baseRadius | Overrides the top-right radius. | | bottomRightRadius | number | baseRadius | Overrides the bottom-right radius. | | bottomLeftRadius | number | baseRadius | Overrides the bottom-left radius. | | smoothFactor | number (0-1) | required | Required smoothing factor; values outside 0-1 are clamped and missing values throw an error. | | surfaceColor | ColorValue | '#000' | Fill color for the squircle. | | borderColor | ColorValue | '#000' | Stroke color when borderWidth is greater than zero. | | borderWidth | number | 0 | Stroke width in logical pixels (auto-clamped to avoid overlaps). |

Passing squircleParams without smoothFactor (or with a non-numeric value) will throw an error to surface the misconfiguration early.

Squircle forwards every View prop, so layout, accessibility, and touch handlers work exactly as they would on a normal React Native View.

Example App

cd packages/expo-squircle/example
npm install
npm start

The example renders a 200 × 200 squircle inside react-native-safe-area-context, making it easy to preview the component on simulators or physical devices.

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

This package is released under the MIT License.