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

@loom_project/codeup

v1.0.1

Published

Aliyun Yunxiao Codeup SDK - GitLab-compatible API client for Node.js, Deno, Bun and Browsers

Readme

@loom_project/codeup

A typed Aliyun Yunxiao (云效) SDK for Node.js, Deno, Bun and Browsers.

100% Gitbeaker-compatible API - Drop-in replacement for @gitbeaker/rest with Yunxiao backend.

Features

  • Gitbeaker-compatible - Same class names, method names, and signatures as Gitbeaker
  • Complete - Covers all Yunxiao Codeup APIs
  • Universal - Works in Node.js, Deno, Bun, and modern browsers
  • Typed - Full TypeScript support

Installation

npm install @loom_project/codeup

Quick Start

import { Yunxiao } from '@loom_project/codeup';

// Note: Yunxiao requires organizationId (unlike GitLab)
const api = new Yunxiao({
  token: 'your-yunxiao-personal-access-token',
  organizationId: 'your-organization-id',
});

// Now use it exactly like Gitbeaker!
const projects = await api.Projects.all();
const branches = await api.Branches.all(projectId);
const mr = await api.MergeRequests.create(projectId, 'feature', 'main', 'Title');

API Reference

Groups (Organizations in Yunxiao)

await api.Groups.all();
await api.Groups.show(groupId);
await api.Groups.create('name', 'path', { description: '...' });
await api.Groups.edit(groupId, { name: 'new-name' });
await api.Groups.remove(groupId);
await api.Groups.allProjects(groupId);
await api.Groups.allSubgroups(groupId);

Projects (Repositories in Yunxiao)

await api.Projects.all();
await api.Projects.show(projectId);
await api.Projects.create({ name: 'my-project' });
await api.Projects.edit(projectId, { description: 'Updated' });
await api.Projects.remove(projectId);
await api.Projects.fork(projectId);
await api.Projects.star(projectId);
await api.Projects.unstar(projectId);
await api.Projects.archive(projectId);
await api.Projects.unarchive(projectId);

Branches

await api.Branches.all(projectId);
await api.Branches.show(projectId, 'main');
await api.Branches.create(projectId, 'new-branch', 'main');
await api.Branches.remove(projectId, 'old-branch');
await api.Branches.removeMerged(projectId);

MergeRequests (ChangeRequests in Yunxiao)

await api.MergeRequests.all();
await api.MergeRequests.all({ projectId, state: 'opened' });
await api.MergeRequests.show(projectId, mergeRequestIId);
await api.MergeRequests.create(projectId, 'source-branch', 'target-branch', 'Title', {
  description: 'Description',
  labels: ['feature'],
});
await api.MergeRequests.edit(projectId, mergeRequestIId, { title: 'New Title' });
await api.MergeRequests.accept(projectId, mergeRequestIId);
await api.MergeRequests.merge(projectId, mergeRequestIId);  // alias
await api.MergeRequests.rebase(projectId, mergeRequestIId);
await api.MergeRequests.allCommits(projectId, mergeRequestIId);
await api.MergeRequests.allDiffs(projectId, mergeRequestIId);

Repositories

await api.Repositories.allRepositoryTrees(projectId, { path: 'src', recursive: true });
await api.Repositories.compare(projectId, 'main', 'feature');
await api.Repositories.allContributors(projectId);
await api.Repositories.mergeBase(projectId, ['branch1', 'branch2']);
await api.Repositories.showBlob(projectId, 'sha');
await api.Repositories.showArchive(projectId, { format: 'zip' });

Commits

await api.Commits.all(projectId);
await api.Commits.show(projectId, 'sha');
await api.Commits.showDiff(projectId, 'sha');

RepositoryFiles

await api.RepositoryFiles.show(projectId, 'path/to/file.ts', 'main');
await api.RepositoryFiles.showRaw(projectId, 'path/to/file.ts', 'main');
await api.RepositoryFiles.allTree(projectId, { path: 'src' });
await api.RepositoryFiles.create(projectId, 'path/to/file.ts', 'main', 'content', 'Add file');
await api.RepositoryFiles.edit(projectId, 'path/to/file.ts', 'main', 'content', 'Update file');
await api.RepositoryFiles.remove(projectId, 'path/to/file.ts', 'main', 'Delete file');
await api.RepositoryFiles.showBlame(projectId, 'path/to/file.ts', { ref: 'main' });

Expanded Responses

Use showExpanded: true for metadata:

const result = await api.Projects.all({ showExpanded: true });

console.log(result.data);    // The actual data
console.log(result.status);  // HTTP status code
console.log(result.headers); // Response headers

Migrating from Gitbeaker

// Before
import { Gitlab } from '@gitbeaker/rest';
const api = new Gitlab({ token: '...' });

// After
import { Yunxiao } from '@loom_project/codeup';
const api = new Yunxiao({ token: '...', organizationId: '...' });

All method calls remain the same!

Key Differences from GitLab

| Aspect | GitLab | Yunxiao | |--------|--------|---------| | Auth header | private-token or Bearer | x-yunxiao-token | | Organization | Optional namespace | Required organizationId | | MergeRequest | Called "Merge Request" | Called "ChangeRequest" internally | | API endpoint | https://gitlab.com/api/v4 | https://openapi-rdc.aliyuncs.com/oapi/v1 |

License

MIT