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

@spatio-labs/squircle

v2.0.0

Published

Tailwind CSS plugin + tiny runtime for SwiftUI-accurate squircles and the full CSS corner-shape value set, working in every browser.

Readme

squircle

SwiftUI-accurate squircles in every browser — as a Tailwind plugin.

npm minzip types license

squircle — with and without corner smoothing

The squircle is the corner that makes Apple's UI feel settled — a continuous curve that flows into the edge instead of snapping into an arc. squircle brings it to the web as Tailwind utilities, rendering the real SwiftUI corner (not the rougher CSS superellipse(2)) in every evergreen browser.

<div class="rounded-2xl squircle">Hello, continuous corner.</div>

Install

npm i @spatio-labs/squircle

tailwindcss is an optional peer dependency.

Setup

Register the plugin, then call the runtime once on the client.

// tailwind.config.js
const squircle = require("@spatio-labs/squircle");

module.exports = {
  plugins: [squircle],
};
// app entry
import { initCorners } from "@spatio-labs/squircle/corners";

initCorners();

That's it. initCorners() scans the page, draws each corner with a clip-path, and keeps it sharp through resizes and DOM changes. clip-path + ResizeObserver ship in every modern browser, so the result is identical in Chrome, Firefox, and Safari.

Utilities

<div class="rounded-2xl squircle">…</div>               <!-- SwiftUI continuous corner -->
<div class="rounded-2xl corner-smooth-[0.85]">…</div>   <!-- custom smoothing, 0–1 -->
<div class="rounded-2xl corner-superellipse-3">…</div>  <!-- raw CSS superellipse exponent -->
<div class="rounded-xl corner-scoop">…</div>            <!-- concave -->

| Utility | Shape | | --- | --- | | squircle · corner-squircle | SwiftUI continuous corner (iOS smoothing) | | corner-smooth-{0,45,ios,60,full,100} · corner-smooth-[0.85] | Continuous corner, custom smoothing 01 | | corner-round corner-bevel corner-scoop corner-notch corner-square | The CSS corner-shape keywords | | corner-superellipse-{0..4} · corner-superellipse-[3.5] · corner-superellipse-[-1] | Raw superellipse exponent |

The radius comes from your normal Tailwind radius utilities (rounded-md, rounded-[20px]); the corner-* class only changes the corner shape.

Make everything a squircle

module.exports = {
  plugins: [squircle({ global: true })],
};
<div class="rounded-md">Every rounded element is now a squircle.</div>

Without Tailwind

The runtime stands alone, driven by a data-corner-shape attribute that accepts squircle / continuous or any <corner-shape-value>:

<div style="border-radius: 24px" data-corner-shape="squircle"></div>
<div style="border-radius: 24px" data-corner-shape="superellipse(3)"></div>
import { initCorners } from "@spatio-labs/squircle/corners";
initCorners();

A plain-CSS file is included for the native corner-shape values (Chromium 139+, no runtime): @import "@spatio-labs/squircle/squircle.css".

Why not the native CSS property?

Native corner-shape is Chromium-only today, and its squircle keyword is superellipse(2) — close, but tighter than Apple's curve. SwiftUI's .continuous corner spreads the bend onto the straight edges (the Figma smoothing model, iOS ≈ 0.6). squircle draws that exact curve, so a single class gives you the genuine iOS look everywhere.

API

Full plugin options and runtime exports (initCorners, squirclePath, superellipsePath, parseShape, supportsNative) are in the API reference.

Credits

License

ISC © Matthew Park