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

@archildata/native

v0.8.11

Published

Low-level Node.js client for Archil's filesystem protocol (headless, napi-rs)

Readme

@archildata/native

Not recommended for most use cases. This package exposes Archil's low-level filesystem protocol (inodes, delegations, byte-level reads and writes, permission checks) to Node.js via a native addon. It's useful if you're building a custom client runtime on top of Archil, but it's the wrong tool for most people.

  • If you want to create, list, inspect, or run commands against an Archil disk from code or a CLI, use diskdisk exec <id> <cmd> is the serverless way to run commands against a disk without talking to any filesystem protocol at all.
  • If you want to mount an Archil disk as a local filesystem, install the archil CLI — it uses the OS kernel's FUSE layer so you can read and write files with standard tools.

This package is still published for the small number of integrations that genuinely need raw protocol access from Node.

Low-level Node.js client for Archil — speaks the Archil filesystem protocol directly (no mount, no FUSE, no kernel). Implemented as a napi-rs native addon so the hot path is Rust, surfaced through a JavaScript API.

Install

npm install @archildata/native

Ships prebuilt binaries for Linux (x64, arm64, glibc) and macOS (arm64). Other platforms aren't supported.

Usage

import { ArchilClient } from '@archildata/native';

const client = await ArchilClient.connect({
  region: 'aws-us-east-1',
  diskName: 'myaccount/my-disk',
  authToken: '<your-mount-token>',
});

// Look up a file by name in the root directory (inode 1)
const entry = await client.lookupInode(1, 'config.json');

// Read its contents
const data = await client.readInode(entry.inodeId, 0, entry.attributes.size);
console.log(data.toString());

await client.close();

Writing files

Archil uses delegations for writes. Check out before writing, check in when done:

await client.checkout(inodeId);
await client.writeData(inodeId, 0, Buffer.from('new contents'));
await client.sync();
await client.checkin(inodeId);

Listing directories

const handle = await client.openDirectory(1);
const page = await client.readDirectory(1, handle, 100);
for (const entry of page.entries) {
  console.log(`${entry.name} (${entry.inodeType})`);
}
client.closeDirectory(1, handle);

For large directories, pass page.nextCursor back into readDirectory. When nextCursor is undefined, you've seen everything.

Creating files and directories

const dir = await client.create(1, 'mydir', {
  inodeType: 'Directory',
  uid: 1000, gid: 1000, mode: 0o755,
});

const file = await client.create(dir.inodeId, 'data.txt', {
  inodeType: 'File',
  uid: 1000, gid: 1000, mode: 0o644,
});

Renaming and deleting

await client.rename(parentInodeId, 'old.txt', parentInodeId, 'new.txt');
await client.unlink(parentInodeId, 'new.txt');

Always await client.close() when done — this flushes pending writes and releases delegations.

Support

Questions, feature requests, or issues? Reach us at [email protected].