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-native-gpui/svg

v15.15.0-alpha.1

Published

Adapter for react-native-svg (MIT): draws SVG elements with the desktop renderer

Readme

@react-native-gpui/svg

Adapter for react-native-svg (MIT): draws SVG elements with the desktop renderer.

Part of react-native-gpui, React Native for macOS, Windows and Linux.

Install

Install it next to react-native-svg:

npm install [email protected] @react-native-gpui/svg

Keep using react-native-svg as you do on iOS and Android; its JavaScript API is unchanged. Autolinking builds the desktop side when the app is built.

What is drawn

Shapes, paths, text, gradients, masks, clip paths, symbols, patterns and markers, with the transform of each element (react-native-svg sends it as a six number matrix). Filters are drawn too: filter on a shape or group and the feBlend, feColorMatrix, feComposite, feFlood, feGaussianBlur, feMerge and feOffset primitives, always with sRGB colour interpolation. An icon is drawn with the same antialiasing as Chrome and placed at a whole CSS pixel, as Chrome places an inline SVG.

Limits: overflow="visible" is not honoured (the drawing is clipped to the SVG's frame), the other filter primitives such as feDropShadow and feMorphology are not passed to the renderer, and a blurred shadow comes out about one level lighter than Chrome's for each shadow that overlaps another.

Cost

A drawing is cached by a hash of what it is made of, so drawing it again costs a hash and a lookup. The cache is shared by every node and holds up to 64 MB of images (RN_GPUI_SVG_CACHE_MB changes that). A drawing that is not cached yet is rasterised on a background thread when it is large or filtered, and the node shows its previous image, if it has one, until the new one is ready; a small icon with nothing yet to show is drawn at once. RN_GPUI_SVG_TRACE=1 logs each rasterisation and RN_GPUI_SVG_SYNC=1 draws on the main thread, to measure.

Documentation

Supported libraries

License

MIT. See LICENSE.