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

paperclip-workspace-browser

v0.1.28

Published

Full workspace file browser for Paperclip project workspaces.

Readme

Paperclip Workspace Browser

paperclip-workspace-browser adds a real workspace file browser to Paperclip.

It adds a stable company-level Workspace Files entry plus a dedicated project detail tab with:

  • a single workspace browser route for all projects
  • primary-workspace fallback with explicit workspace switching
  • lazy file tree for the current project workspace
  • filename and content search
  • previews for Markdown, code/text, images, and PDFs
  • file download, workspace/selection ZIP export, full text copying for textual files, and quick terminal command copying

Install in Paperclip

  1. Open Instance Settings -> Plugins.
  2. Click Install Plugin.
  3. Enter paperclip-workspace-browser.
  4. Use the new global Workspace Files entry in the main sidebar.
  5. Select the target project and workspace, or open the Workspace Files tab inside the project detail page.

Local development

npm install
npm run validate

Notes

  • The plugin reads workspace paths from ctx.projects.listWorkspaces() / ctx.projects.getPrimaryWorkspace().
  • File and ZIP transfers stay inside the plugin worker and are returned to the UI as JSON-safe base64 payloads because current Paperclip plugin API routes are JSON-only.
  • Full text copy uses a dedicated worker action with its own safety limit instead of relying on the inline preview buffer.
  • "Open in terminal" currently copies a ready-to-run cd ... command. The current Paperclip alpha runtime does not expose a native terminal surface for third-party plugins yet.
  • The plugin intentionally avoids projectSidebarItem as the primary entry because the current sortable project sidebar can make nested plugin items unreliable on desktop builds. The stable access path is the global sidebar route plus the project detail tab.
  • Safety limits are enforced for inline previews, search depth/results, direct downloads, and ZIP input size so the browser UI does not try to ingest arbitrarily large workspace artifacts.
  • Workspace access stays rooted inside the resolved workspace path. Traversal outside the workspace and symlinks escaping the workspace root are rejected in the worker layer.
  • Fallback workspacePath handling is intentionally narrow: only absolute local paths are accepted, and synthetic execution-workspace fallbacks are allowed only for synthetic workspace ids such as execution:*. Regular managed workspace ids cannot override their server-provided root path from the client.
  • Execution-workspace fallbacks still require one direct host API read in the UI because the current public plugin bridge does not expose that metadata yet; all regular plugin reads/actions stay on the typed plugin bridge.
  • Visible labels avoid exposing absolute execution-workspace paths where a shorter basename is sufficient.