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

opencodesync

v0.1.7

Published

Sync OpenCode settings and session contexts across devices via GitHub Gist

Readme


The Problem

You're deep in a coding session on your work machine. You've built up context with your AI assistant - it understands your architecture, your decisions, your next steps. Then you need to switch to your home computer.

Without opencodesync: Start from scratch. Re-explain everything. Lose momentum.

With opencodesync: One command. Full context restored. Keep building.


Quick Start

npm install -g opencodesync
opencodesync init

That's it. The wizard walks you through setup and automatically syncs your settings.

First device? → Creates a new Gist and offers to push your current config
Second device? → Finds your existing Gist and offers to pull everything down


What You Get

Sync Your Entire Setup

| What | Synced | |------|--------| | Main config (opencode.json) | ✅ | | Custom agents (agent/*.md) | ✅ | | Custom commands (command/*.md) | ✅ | | Global instructions (AGENTS.md) | ✅ | | Plugin configs (*.jsonc, oh-my-opencode.json) | ✅ | | Skills directory (skills/**) | ✅ | | Session contexts | ✅ |

Never Lose Your AI Context

Export your session before switching devices:

/context-export "Auth Implementation" --guidance "focus on OAuth decisions"

Resume on any machine:

/context-import "Auth Implementation"

Your AI picks up exactly where you left off.

Bank-Grade Security

  • AES-256-GCM encryption - Your data is encrypted before it leaves your machine
  • Private GitHub Gists - Only you can access your sync storage
  • Zero plaintext - Even if someone gets your Gist, they can't read it without your passphrase

Daily Workflow

Morning at the office:

opencodesync pull                    # Get latest from home
# ... work on features ...
/context-export "Feature Progress"   # Save your context
opencodesync push                    # Sync to cloud

Evening at home:

opencodesync pull                    # Get settings + context
/context-import "Feature Progress"   # Resume with full context
# ... continue seamlessly ...

CLI Commands

| Command | What it does | |---------|--------------| | opencodesync init | Set up GitHub token and encryption passphrase | | opencodesync push | Upload your settings to the cloud | | opencodesync pull | Download settings from the cloud | | opencodesync status | Check what's changed since last sync |

Use --verbose on any command for detailed output.


Plugin Commands (inside OpenCode)

| Command | What it does | |---------|--------------| | /context-export [name] | Save current session as a portable context | | /context-import [name] | Load a saved context into your session | | /context-list | See all your saved contexts | | /context-prune <name> | Delete old contexts |


Privacy First

Context exports are AI-generated summaries, not raw data. They capture:

  • Goals and objectives
  • Technical approaches and decisions
  • Progress and next steps

They never include:

  • Code snippets or implementations
  • API keys, tokens, or secrets
  • Database strings or internal URLs
  • Raw file contents

Your intellectual property stays safe.


Troubleshooting

| Error | Solution | |-------|----------| | "Not configured" | Run opencodesync init | | "Decryption failed" | Use the same passphrase as your other devices | | "Invalid token" | Create a new GitHub token with gist scope |

Need to start fresh? opencodesync init --force && opencodesync push --force


For Plugin Developers

import { createPluginTools, addContext, getAllContexts } from "opencodesync";

const tools = createPluginTools();
const context = addContext("My Context", "Summary...");
const all = getAllContexts();

License

MIT