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

byml-lens

v0.2.7

Published

High-performance editor for .byml, .bgyml, .pack and .zs files. Features native YAML views and SARC mounting.

Readme

BYML Lens

[English] | 简体中文

BYML Lens is an Antigravity/VS Code extension specifically designed for high-frequency editing and auditing of BYML, SARC, and Zstandard (.zs) compressed files. It provides a lightning-fast and seamless asset editing experience by transparently mapping binary files to native text views.

Core Features

  • 🚀 Click-to-Edit: Automatically intercepts .byml, .bgyml, and .pack.zs binary files, instantly converting them into highlighted YAML text.
  • 🧬 Auto-Embedded Metadata: YAML output now includes version, endianness, and precise type maps in a header document, enabling reference-free recompilation.
  • 📦 SARC Virtualization: Double-click any .pack archive to mount it as a virtual directory. Add, modify, or delete internal files as if they were in a normal folder.
  • ⚡️ Transparent Zstd Support: All read and write operations automatically detect and handle Zstandard compression. No manual decompression or re-compression required.
  • 🎨 Visual Alias System: Use a byml-aliases.yml in your workspace root to dynamically replace cryptic codenames (e.g., Vss_AutoWalk00) with friendly names (e.g., Lemuria Hub). Aliases are automatically reverted upon saving to maintain data integrity.
  • 💎 Native Integration: Fully compatible with editor themes. Supports line numbers, full-text search, multi-cursor editing, and indentation guides.

Usage

1. Command Line Interface (CLI)

For AI Agents and batch processing, you can use the byml-lens command:

# Install globally
npm install -g .

# Decompile BYML to YAML (Multi-document format with metadata)
byml-lens deyaml Versus.byml.zs result.yaml

# Recompile YAML to binary
# Automatically detects version/types from the YAML header - no --reference needed!
byml-lens yaml2byml result.yaml new_Versus.byml.zs

# Unpack SARC archive (Extract raw binary)
byml-lens unpack Versus.pack.zs ./out_folder

# Unpack and Decompile (Ideal for AI Agents)
byml-lens unpack Versus.pack.zs ./editable_folder --yaml

# Pack a directory into SARC (with auto-encoding)
byml-lens pack ./editable_folder new_archive.pack.zs --zstd --yaml

2. Editing BYML/BGYML in VS Code

  • Edit: The file opens as a native YAML document with full syntax highlighting. The header contains _byml_metadata which preserves the binary technical standards.
  • Save: Press Cmd+S (Mac) or Ctrl+S (Win). The extension automatically handles binary encoding and Zstd compression while maintaining hardware compatibility.

3. Mounting SARC (.pack)

  • Mount: Double-click a .pack or .pack.zs file. A virtual directory named Archive: [filename] will appear in your workspace.
  • Edit/Delete: You can modify files or delete entire folders (e.g. Banc) directly from the sidebar.
  • Unmount: Double-click the same file again, or right-click the virtual folder and select "Unmount .pack Archive".

4. Custom Aliases

  • Create byml-aliases.yml in your project root:
    Vss_AutoWalk00: Lemuria Hub
    Vss_BigSlope00: Brinewater Springs
  • Re-open a BYML file to see the IDs automatically replaced with your custom names.

Development & Build

Recommended Development Workflow

For active development, use the built-in VS Code debugger:

  1. Open the project in Antigravity or VS Code.
  2. Press F5 to launch the "Extension Development Host".
  3. This opens a new window with your latest code active, supporting breakpoints and live logs.

Build from Source

  1. Clone and Install:
    git clone <repository_url>
    cd byml-vscode-extension
    make install
  2. Package to VSIX:
    make package
  3. Manual Install: In the Extensions view, click ... -> Install from VSIX... and select the generated file.

Troubleshooting & Feedback

If you encounter issues or corrupted files, please provide logs from the Output panel:

  1. Open the Output panel (View -> Output).
  2. Select BYML Lens from the dropdown menu in the top-right corner.
  3. For deeper investigation, enable debug logs in settings: BYML Lens > Debug.
  4. Copy the logs and attach them to your GitHub Issue.

Produced by space4 with 🩵