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

@sezzlee/file-core-native

v0.3.1

Published

Handle-relative filesystem access for file-core (Node-API).

Readme

Secure filesystem adapter

NativeOutputRoot.publishDirectory(name, entries, maxBytes) prepares one to 128 uniquely named files in a private root-relative staging directory, flushes their data and publishes the directory without replacing any existing entry. Entry names contain no path components and must be unique ignoring ASCII case. All buffers are copied and the combined byte budget is enforced before asynchronous work. Linux uses renameat2 with RENAME_NOREPLACE, macOS uses renameatx_np with RENAME_EXCL, and Windows renames the retained directory handle through NtSetInformationFile. Publication never reopens the parent pathname. Directory identity is checked around pathname-based publication; concurrent publishers have one complete winner. Failure cleanup uses retained handles; crash leftovers under .pending-* are incomplete staging, not a published directory. A caller supplies and verifies its own completion manifest and content hashes. Process-restart recovery is distinct from guarantees about a host or storage device losing power; filesystem sync/rename errors propagate.

Node-API binaries implement root-handle-relative resolution, bounded snapshots and bounded traversal. No pathname-open JavaScript fallback is provided. Builds target glibc Linux x64/arm64, macOS x64/arm64 and Windows x64; Node 22/24.

The root is an object capability pinned at initialization. Concurrent writes are detected with before/after identity and metadata checks; this is not an atomic filesystem snapshot. Hard links and privileged mount changes are not separate filesystem security boundaries. Do not grant untrusted users privileges to mount filesystems over the configured root.

Prebuilds are generated by CI and included in the release tarball. Workspace builds require Node headers and a C++17 compiler. Windows builds also require the corresponding node.lib and the MSVC developer environment. Missing or unsupported binaries fail closed.

Ayrı çıktı yeteneği

openOutputRoot(sourceRoot, directory) mevcut, handle ile sabitlenmiş kaynak kökünün altındaki bir çıktı dizininden ayrı bir oluşturma yeteneği türetir. NativeRoot üzerinde yazma metodu bulunmaz. publish yalnızca düz dosya adlarını kabul eder; mevcut girdiyi değiştirmez. Baytlar asenkron işe geçmeden kopyalanır, geçici dosyada tamamlanır ve var olan hedefin üzerine yazılmadan yayımlanır. Bu işlem çok dosyalı bir işin tamamının atomik olduğu anlamına gelmez.

Yeni yüzey için platform binary dosyası yeniden derlenmelidir. Eski veya eksik binary dosyasında JavaScript dosya erişimine geri dönüş yapılmaz.