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

@iterate-com/github-sync

v0.1.0-main.20261008T212039Z-c567387

Published

Keeps a project's config repo and its GitHub repository one history: GitHub's pushes are pulled in, the project's commits are pushed out

Readme

@iterate-com/github-sync

Keeps a project's config repo and its GitHub repository one history: the same commits on two remotes. A push to the GitHub repository's main makes the repo pull it (which publishes the project), and a commit to the repo (an agent's commitFiles, the Dash) is pushed to GitHub. Both are the platform's fast-forward-only pull() / push(), so binary files come along too. When the two mains have diverged, github-sync/synced records not-fast-forward and nothing moves until a person chooses in the Dash (the project's Config repo: replace iterate's with GitHub's, or push iterate's). Userspace: a project installs this package; the platform ships none of it.

Install

The repo must be linked to its GitHub repository first (the Dash's Config repo sets its origin), through a GitHub connection whose installation reaches it (Dash → Integrations → Connect GitHub). Then a project installs the sync from a folder of its config repo:

github-sync/package.json   { "main": "index.ts", "dependencies": { "@iterate-com/github-sync": "https://pkg.pr.new/iterate/private/@iterate-com/github-sync@<sha>" } }
github-sync/index.ts       export { GithubSyncDurableObject } from "@iterate-com/github-sync";

and a session mounts that folder. It writes rows that lend the connection's log the root's repos and egress (a pull's git exchange), which only a person's or the operator's session may write, never a config worker or an itx run. From a clone of the config repo whose root package.json lists the package (so npm install gets it):

iterate repl --project <slug>
itx> const { installGithubSync } = await import("@iterate-com/github-sync/install")
itx> await installGithubSync(itx, await itx.repos.get("/repos/config").modules({ dir: "github-sync" }))

installGithubSync(itx, source, { repo, connection, log }):

  • repo: the repo to sync, /repos/config by default. Its origin names the GitHub repository.
  • connection: the GitHub connection whose webhooks carry the pushes, by default the project's one connection to the origin's owner. A push is the platform's github/webhook-received on that connection's log, /integrations/github/<connection>.
  • log: instead of a connection, the stream a package lands the pushes on. iterategrations github/ records each delivery of the project's own App as github/delivery-received on /integrations/own-github/<installation id>, the same payload, so { log: "/integrations/own-github/<installation id>" } syncs through that App; the repo's origin then names that installation's secret, /secrets/own-github-<installation id>.

It enables the github-sync processor on that log (pushes) and on / (commits), and appends github-sync/installed { repo } to both: what came before is never synced. To upgrade, pin a newer build and install again; the same source again changes nothing but the markers.

| File | What | | -------------------------- | --------------------------------------------------------------------- | | src/contract.ts | When it pulls and when it pushes, and its facts | | src/processor.ts | GithubSyncProcessor: a push to origin's main pulls, a commit pushes | | src/durable-object.ts | GithubSyncDurableObject, the class a project's folder re-exports | | src/github-repository.ts | Which GitHub repository an origin names | | src/install.ts | githubSyncFolder and installGithubSync: the folder and its mount |