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

@simply-material/floating-ui-core-synchronous

v1.8.1

Published

Generated synchronous variant of @floating-ui/core

Readme

Synchronous Floating UI For The Web

A repackaging of Floating UI's DOM and core packages to expose synchronous instead of asynchronous positioning APIs.

How does it work?

This repository transforms Floating UI DOM and Core packages to remove their asynchronous behavior and then publishes the results as new packages. The transformation uses the TypeScript compiler to parse and modify the original code to remove its asynchronous behavior. This is feasible because Floating UI's DOM and core packages do not actually rely on asynchronous behavior. Therefore, we don't need a general asynchronous to synchronous transformer. Instead, the transformer converts only the asynchronous parts the library actually uses.

We also guard against unexpected usage. If the source code ever updates to use asynchronous constructs not expected by our transformer, an error is thrown we'd need to make updates to the transformer to handle these new cases. However, that's unlikely to happen given why the API is asynchronous in the first place. Read on to learn more.

History

Floating UI is a set of popular JavaScript libraries for positioning elements across different platforms. Currently, there are two officially supported platforms:

Both of these libraries rely on the core library. When Floating UI was created, its core APIs were designed to be asynchronous. This was because, at the time, React Native developers needed to use asynchronous APIs for layout and positioning. However, this meant that the Floating UI DOM library must also use these asynchronous APIs--even though the web's layout and positioning are synchronous on the web.

Making Floating UI synchronous for the browser has been explored a few times recently:

That second pull request was merged into the next branch for version 2 for Floating UI. However, version 2 is no longer planned.

Asynchronous Positioning: Does it make sense today?

Interestingly, no. At least for web browsers and React Native. We already mentioned how layout and positioning was always synchronous on the web. React Native, however, recently updated its architecture to give synchronous access to the native layer. This new architecture was introduced in version 0.76 on October 23rd, 2024. It was also the default for new applications. A year later, version 0.82 on October 8, 2025, made the new architecture mandatory for applications. So there's little reason for Floating UI to be asynchronous today, except for maintaining backwards compatibility older React Native versions.

Contributing

This repository has one clear purpose: transform the published DOM and core Floating UI packages to remove their asynchronous behavior / APIs, and then publish their transformed versions. Importantly, the packages should behave exactly the same, offering the same features (and bugs!) as the original versions. This repository is not a traditional fork. Contributions will not be accepted for adding new features or fixing bugs to the original source. In those cases, you should contribute to the original Floating UI packages. Contributions will only be considered for how the repository:

  • Transforms the original packages.
  • Publishes the transformed packages.
  • Tests and verifies the transformed packages.

See: