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

@claw-manager/workspace-file-plugin

v2026.8.2

Published

Workspace-scoped file operations for OpenClaw agents

Readme

@claw-manager/workspace-file-plugin

An OpenClaw plugin that exposes one typed tool, workspace_file, for file operations inside the active agent workspace.

Tool contract

workspace_file({
  action: "list" | "read" | "read_document" | "write" | "mkdir" | "delete",
  path: string,
  content?: string,
  expectedSha256?: string,
  recursive?: boolean
})

The workspace root is taken from the trusted OpenClaw tool factory context (ctx.workspaceDir). It is never accepted as a model argument. Paths must be relative to that root; absolute paths, drive paths, UNC paths, NUL bytes, parent traversal, and symlinks that resolve outside the workspace are rejected.

Writes create a temporary file next to the target and atomically replace the target. Directory deletion requires recursive: true, and the workspace root itself cannot be deleted.

For dynamic wechat_* Agents, the plugin also guards OpenClaw's native read tool. It permits the current Agent workspace and the instance shared workspace/skills directory, and blocks other host paths without exposing absolute paths in the error.

Office/PDF document reading

workspace_file({ action: "read_document", path }) parses office files that are already inside the active Agent workspace. Supported inputs include plain text, Markdown/JSON/XML/YAML/log files, CSV, Excel (.xlsx / .xls), Word (.docx), PowerPoint (.pptx) and PDF text.

Default safety limits are conservative:

  • maximum file size: 20 MB;
  • maximum extracted text: 80,000 characters;
  • maximum Office embedded images: 10;
  • maximum PDF text pages: 10.

When a limit is hit, the tool returns a clear warning in warnings and marks truncation/limit fields instead of silently dropping content. Extracted Office images are cached below .openclaw-document-cache/<sha256>/ inside the same workspace, so one WeChat user/Agent cannot read another Agent's document cache.

PDF support currently extracts text. PDF page rendering/OCR is reported as a best-effort limitation so the Agent can explain the gap to the user.