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

@leitwerk-dev/gitlab-repo-change

v0.4.0

Published

`@leitwerk-dev/gitlab-repo-change` plans, implements, simplifies, and publishes a repository change as a new GitLab merge request. Load `gitlab`, `git-ssh`, `coding`, and this extension on the server and worker. The extension is opt-in.

Readme

GitLab repository change

@leitwerk-dev/gitlab-repo-change plans, implements, simplifies, and publishes a repository change as a new GitLab merge request. Load gitlab, git-ssh, coding, and this extension on the server and worker. The extension is opt-in.

The UI launcher selects a GitLab profile, a visible project, and a requested change. It selects a matching Git SSH profile, checks project visibility and SSH read/write admission, pins the bot Git identity, and targets the default branch. Replaying a UI launch generates a new work branch. Plan approval starts implementation and MR publication automatically. The launcher offers unchecked Skip plan approval and Skip simplification options and preserves both on relaunch. Skipping approval still generates and retains a plan.

Generated process graph. Dashed edges are external triggers; terminal outcomes are separate from the ten registered turns.

Configuration

Use a server-side GitLab profile for API access and a matching Git SSH profile for cloning and pushing. Configure issue discovery on the process:

process_configs:
  gitlab_repo_change_process:
    watchers:
      use_leitwerk:
        enabled: true
        profile: team
        git_ssh_profile: team
        poll_interval: 30s
        projects:
          include: [team/service]
          exclude: []
        groups:
          include: [team/libraries]
          exclude: []
        labels:
          trigger: use-leitwerk
          done: leitwerk-done

Project and group includes form a union; groups include subgroups, exclusions win, and project IDs remove duplicates. An explicit include or all_accessible: true is required. Trigger and done labels must differ and contain no comma. The watcher rechecks that the source issue remains open and eligible before creating a process. Issue launches use leitwerk/issue-N; their durable identity includes the GitLab origin, project ID, and issue IID.

Delivery and recovery

The shared coding lifecycle commits and pushes, creates or reconciles one MR, and waits for feedback, native CI, conflicts, or a terminal outcome. Repository metadata starts with { profile, projectId }; the server pins the MR iid after creation. A lost creation response or a restart before binding recovers the same request. Existing MR-bound integration tools still require the pinned IID.

The process uses shared GitLab MR maintenance for feedback, CI observations, ownership labels, fencing, and recovery. Deliver runs only for initial publication and changed adjustments; maintenance adds no business turns. Removing leitwerk-active aborts this single-MR process and leaves the MR open.

After three automatic CI repair cycles the operator chooses retry, resume waiting, or abort. CI repair uses failed jobs and bounded traces from the current MR pipeline; see pipeline selection. Confirmed conflicts use the shared rebase implementation and original-head push lease.

Merge completes delivery. Unmerged closure aborts it. A source issue loses its trigger, gains the done label, receives a comment, and closes after merge. Unmerged closure removes the trigger and comments while leaving the issue open. Source cancellation aborts waiting delivery, with terminal MR reconciliation taking precedence. UI-origin processes never require a source issue.

Composition

The default extension requires Docker. Trusted local compositions can use createGitLabRepoChange({ docker: false }); load exactly one variant. Both retain gitlab_repo_change_process. GitLab API tokens remain server-side. Git SSH credential delivery is repository-scoped. Automatic merging, existing-MR adoption, fork publication, and release delivery are not provided.

Shared workflow

This process uses the ten-turn workflow from coding. Plan decisions offer approval or revisions with human comments. Implementation, simplification analysis, simplification application, commit-message generation, and publication then proceed automatically. The simplification analysis covers staged, unstaged, and untracked changes and hands durable findings to the separate application turn. Both turns run once before first publication.

For issue launches, leitwerk-skip-simplification is read immediately after implementation. UI launches use the checkbox. A failed source lookup pauses for retry; recovery reuses completed routing decisions. Later labels do not interrupt simplification that already started. GitLab source issues do not use the Jira plan-bypass label. Neither skip label replaces the watcher launch trigger.

Before deployment, finish or abort active instances using the removed plan-review, implementation-review, implementation-approval, or simplification-approval turns. Their history must be retained. GitHub and Forgejo use the same workflow and upgrade boundary; provider-specific publication and CI semantics remain separate.