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

@relayfile/adapter-gitlab

v0.3.5

Published

GitLab adapter for relayfile — maps GitLab merge requests, issues, pipelines, jobs, commits, and webhooks to relayfile VFS paths

Readme

@relayfile/adapter-gitlab

GitLab adapter for Relayfile. It mirrors the GitHub adapter pattern, but maps GitLab merge requests, discussions, approvals, issues, commits, pipelines, jobs, deployments, and tag pushes into GitLab-specific VFS paths.

Quick start

import { GitLabAdapter } from '@relayfile/adapter-gitlab';

const adapter = new GitLabAdapter(provider, {
  connectionId: 'gitlab-connection',
  projectPath: 'acme/api',
  webhookSecret: process.env.GITLAB_WEBHOOK_SECRET,
});

const result = await adapter.routeWebhook(payload, undefined, headers);

Supported webhook events

  • merge_request.open
  • merge_request.reopen
  • merge_request.update
  • merge_request.close
  • merge_request.merge
  • merge_request.approved
  • merge_request.unapproved
  • note.MergeRequest
  • note.Issue
  • note.Commit
  • note.Snippet
  • push
  • pipeline.created
  • pipeline.pending
  • pipeline.running
  • pipeline.success
  • pipeline.failed
  • pipeline.canceled
  • pipeline.manual
  • pipeline.skipped
  • pipeline.waiting_for_resource
  • issue.open
  • issue.reopen
  • issue.update
  • issue.close
  • deployment.created
  • deployment.running
  • deployment.success
  • deployment.failed
  • deployment.canceled
  • build.created
  • build.pending
  • build.running
  • build.success
  • build.failed
  • build.canceled
  • build.manual
  • build.skipped
  • job.created
  • job.pending
  • job.running
  • job.success
  • job.failed
  • job.canceled
  • job.manual
  • job.skipped
  • tag_push

VFS path structure

/gitlab/LAYOUT.md
/gitlab/_index.json
/gitlab/projects/_index.json
/gitlab/projects/{namespace}/{project}/meta.json
/gitlab/projects/{namespace}/{project}/merge_requests/{iid}__{slug}/meta.json
/gitlab/projects/{namespace}/{project}/merge_requests/{iid}__{slug}/diff.patch
/gitlab/projects/{namespace}/{project}/merge_requests/{iid}__{slug}/discussions/{id}.json
/gitlab/projects/{namespace}/{project}/merge_requests/{iid}__{slug}/approvals.json
/gitlab/projects/{namespace}/{project}/merge_requests/by-id/{iid}.json
/gitlab/projects/{namespace}/{project}/merge_requests/by-title/{slug}__{iid}.json
/gitlab/projects/{namespace}/{project}/issues/{iid}__{slug}/meta.json
/gitlab/projects/{namespace}/{project}/issues/{iid}__{slug}/comments/{id}.json
/gitlab/projects/{namespace}/{project}/issues/by-id/{iid}.json
/gitlab/projects/{namespace}/{project}/issues/by-title/{slug}__{iid}.json
/gitlab/projects/{namespace}/{project}/commits/{sha}__{slug}/meta.json
/gitlab/projects/{namespace}/{project}/commits/{sha}__{slug}/comments/{id}.json
/gitlab/projects/{namespace}/{project}/snippets/{id}/comments/{id}.json
/gitlab/projects/{namespace}/{project}/pipelines/{id}__{ref}/meta.json
/gitlab/projects/{namespace}/{project}/pipelines/{id}__{ref}/jobs/{id}.json
/gitlab/projects/{namespace}/{project}/pipelines/by-ref/{ref-slug}__{id}.json
/gitlab/projects/{namespace}/{project}/pipelines/by-status/{status}/{id}.json
/gitlab/projects/{namespace}/{project}/deployments/{id}.json
/gitlab/projects/{namespace}/{project}/deployments/by-status/{status}/{id}.json
/gitlab/projects/{namespace}/{project}/tags/{slug}__{encoded-ref}.json
/gitlab/projects/{namespace}/{project}/tags/by-ref/{ref-slug}__{encoded-ref}.json

Project meta.json files are managed by Cloud syncs and are read-only for writeback.

Writeback paths

File-native writeback uses canonical filenames for updates and any non-canonical ("draft") filename to create new records. new.json has no special runtime meaning — see docs/migration/file-native-writeback.md.

  • PUT /gitlab/projects/{namespace}/{project}/merge_requests/{iid}__{slug}/meta.json
  • POST /gitlab/projects/{namespace}/{project}/merge_requests/{iid}__{slug}/discussions/<draft>.json
  • PUT /gitlab/projects/{namespace}/{project}/issues/{iid}__{slug}/meta.json
  • POST /gitlab/projects/{namespace}/{project}/issues/{iid}__{slug}/comments/<draft>.json

Comparison with the GitHub adapter

  • GitLab uses path_with_namespace instead of owner/repo.
  • Merge requests and issues use iid, not global IDs.
  • Reviews map to two GitLab concepts: discussions and approvals.
  • GitLab CI maps to pipelines and jobs instead of check suites and check runs.
  • Webhook verification uses X-Gitlab-Token, not an HMAC signature.