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

@claaslange/agentsync

v0.2.0

Published

Sync one canonical agent-instructions template to multiple harness-specific global instruction file locations.

Readme

agentsync

Sync one canonical agent-instructions template to multiple harness-specific “global instructions” file locations.

What it does

  • You keep a single template file (default: ~/.agentsync/AGENTS_TEMPLATE.md).
  • You define multiple targets in a single config file (default: ~/.agentsync/agentsync.config.json).
  • agentsync renders the template for each target and writes it to the configured destination paths.

Install

Global install (npm):

npm i -g @claaslange/agentsync
agentsync help

Global install (Bun):

bun add -g @claaslange/agentsync
agentsync help

Quickstart

Copy the example files:

mkdir -p ~/.agentsync
cp ./example/agentsync.config.json ~/.agentsync/agentsync.config.json
cp ./example/AGENTS_TEMPLATE.md ~/.agentsync/AGENTS_TEMPLATE.md

Run a dry-run:

agentsync dry-run

Apply:

agentsync sync

Config

High-level shape:

  • targets is an array of { agent, path, enabled?, variables? }.
  • variables is per-target (there are no global variables).

Minimal example:

{
  "$schema": "https://raw.githubusercontent.com/claaslange/agentsync/main/src/agentsync.schema.json",
  "template_path": "AGENTS_TEMPLATE.md",
  "targets": [
    { "agent": "codex", "path": "~/.codex/AGENTS.md" },
    { "agent": "claude_code", "path": "~/.claude/CLAUDE.md", "enabled": false },
    { "agent": "github_copilot", "path": "~/.copilot/copilot-instructions.md", "variables": { "AGENT_NAME": "GitHub Copilot" } }
  ]
}

Editor validation / autocomplete:

  • Add a $schema key to your config, e.g. https://raw.githubusercontent.com/claaslange/agentsync/main/src/agentsync.schema.json.

Built-in template variables (available for every target):

  • AGENT_NAME (defaults to the target’s agent)
  • TARGET_PATH (resolved destination path)
  • TEMPLATE_PATH (resolved template path)
  • RUN_TIMESTAMP (UTC timestamp)

Templating (Liquid)

Templates are rendered using Liquid (via liquidjs).

  • Output variables: {{ AGENT_NAME }}
  • Control flow: {% if ... %}...{% endif %}, {% for x in xs %}...{% endfor %}
  • Includes: {% include "partials/common.md" %} (searched relative to the template directory, then the config directory)
  • --strict enables strict variables (undefined variables throw; useful for CI)

Usage

  • agentsync (no args) shows help.
  • When run with no --config, agentsync looks for:
    • ~/.agentsync/agentsync.config.json
    • ./agentsync.config.json
  • When run with no --template, agentsync uses:
    • config.template_path (when present), otherwise
    • ~/.agentsync/AGENTS_TEMPLATE.md
  • Your config should typically reference the template next to it, e.g. "template_path": "AGENTS_TEMPLATE.md".

Check mode (CI-friendly; exits 1 if anything would change):

agentsync check

Repo files

  • example/AGENTS_TEMPLATE.md — example template.
  • example/agentsync.config.json — example config.
  • src/agentsync.schema.json — JSON Schema used by the CLI.
  • src/cli.ts / bin/agentsync — the sync CLI.

Publishing (maintainers)

This repo publishes via GitHub Actions on tags that match vX.Y.Z (integers). To publish:

  • Update package.json version to X.Y.Z.
  • Push a matching tag: git tag vX.Y.Z && git push origin vX.Y.Z.
  • Configure npm Trusted Publishing for this repo/workflow (OIDC). No NPM_TOKEN secret is needed once set up.