
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
@gitbeaker/core
Advanced tools
@gitbeaker/core is a comprehensive Node.js library for interacting with the GitLab API. It provides a wide range of functionalities to manage projects, repositories, issues, users, and more within a GitLab instance.
Project Management
This feature allows you to create and manage projects within a GitLab instance. The code sample demonstrates how to create a new project using the GitLab API.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function createProject() {
const project = await api.Projects.create({ name: 'new-project' });
console.log(project);
}
createProject();
Issue Management
This feature allows you to create and manage issues within a GitLab project. The code sample demonstrates how to create a new issue in a specific project.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function createIssue() {
const issue = await api.Issues.create(1, { title: 'New Issue', description: 'Issue description' });
console.log(issue);
}
createIssue();
User Management
This feature allows you to manage users within a GitLab instance. The code sample demonstrates how to list all users using the GitLab API.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function listUsers() {
const users = await api.Users.all();
console.log(users);
}
listUsers();
Repository Management
This feature allows you to manage repositories and their contents within a GitLab project. The code sample demonstrates how to list all files in a repository.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function listRepositoryFiles() {
const files = await api.Repositories.tree(1);
console.log(files);
}
listRepositoryFiles();
node-gitlab is another Node.js library for interacting with the GitLab API. It provides similar functionalities to @gitbeaker/core but may have a different API design and feature set.
gitlab is a simple Node.js wrapper for the GitLab API. It offers basic functionalities for interacting with GitLab but may not be as comprehensive as @gitbeaker/core.
node-gitlab-api is a lightweight Node.js library for the GitLab API. It provides essential features for managing GitLab resources but may lack some advanced functionalities found in @gitbeaker/core.
Core SDK for the GitLab API. This is not intended for direct use, see @gitbeaker/rest or gitbeaker/cli instead.
Browsers |
Load @gitbeaker/core directly from esm.sh
|
---|---|
Deno |
Load @gitbeaker/core directly from esm.sh
|
Node 18+ |
Install with
|
Agents | 🦊 | ⌨️ |
---|---|---|
AlertManagement | 🦊 | ⌨️ |
ApplicationAppearance | 🦊 | ⌨️ |
ApplicationPlanLimits | 🦊 | ⌨️ |
ApplicationSettings | 🦊 | ⌨️ |
ApplicationStatistics | 🦊 | ⌨️ |
Applications | 🦊 | ⌨️ |
AuditEvents | 🦊 | ⌨️ |
Avatar | 🦊 | ⌨️ |
Branches | 🦊 | ⌨️ |
BroadcastMessages | 🦊 | ⌨️ |
CommitDiscussions | 🦊 | ⌨️ |
Code Suggestions | 🦊 | ⌨️ |
Commits | 🦊 | ⌨️ |
Composer | 🦊 | ⌨️ |
Conan | 🦊 | ⌨️ |
ContainerRegistry | 🦊 | ⌨️ |
DashboardAnnotations | 🦊 | ⌨️ |
Debian | 🦊 | ⌨️ |
DependencyProxy | 🦊 | ⌨️ |
DeployKeys | 🦊 | ⌨️ |
DeployTokens | 🦊 | ⌨️ |
Deployments | 🦊 | ⌨️ |
DockerfileTemplates | 🦊 | ⌨️ |
Environments | 🦊 | ⌨️ |
EpicAwardEmojis | 🦊 | ⌨️ |
EpicDiscussions | 🦊 | ⌨️ |
EpicIssues | 🦊 | ⌨️ |
EpicLabelEvents | 🦊 | ⌨️ |
EpicLinks | 🦊 | ⌨️ |
EpicNotes | 🦊 | ⌨️ |
Epics | 🦊 | ⌨️ |
ErrorTrackingClientKeys | 🦊 | ⌨️ |
ErrorTrackingSettings | 🦊 | ⌨️ |
Events | 🦊 | ⌨️ |
Experiments | 🦊 | ⌨️ |
ExternalStatusChecks | 🦊 | ⌨️ |
FeatureFlagUserLists | 🦊 | ⌨️ |
FeatureFlags | 🦊 | ⌨️ |
FreezePeriods | 🦊 | ⌨️ |
GeoNodes | 🦊 | ⌨️ |
GeoSites | 🦊 | ⌨️ |
GitLabCIYMLTemplates | 🦊 | ⌨️ |
GitignoreTemplates | 🦊 | ⌨️ |
GitlabPages | 🦊 | ⌨️ |
GoProxy | 🦊 | ⌨️ |
GroupAccessRequests | 🦊 | ⌨️ |
GroupAccessTokens | 🦊 | ⌨️ |
GroupActivityAnalytics | 🦊 | ⌨️ |
GroupEpicBoards | 🦊 | ⌨️ |
GroupBadges | 🦊 | ⌨️ |
GroupCustomAttributes | 🦊 | ⌨️ |
GroupDORA4Metrics | 🦊 | ⌨️ |
GroupHooks | 🦊 | ⌨️ |
GroupImportExports | 🦊 | ⌨️ |
GroupInvitations | 🦊 | ⌨️ |
GroupIssueBoards | 🦊 | ⌨️ |
GroupIterations | 🦊 | ⌨️ |
GroupLDAPLinks | 🦊 | ⌨️ |
GroupLabels | 🦊 | ⌨️ |
GroupMemberRoles | 🦊 | ⌨️ |
GroupMembers | 🦊 | ⌨️ |
GroupMilestones | 🦊 | ⌨️ |
GroupProtectedEnvironments | 🦊 | ⌨️ |
GroupPushRules | 🦊 | ⌨️ |
GroupRelationExports | 🦊 | ⌨️ |
GroupReleases | 🦊 | ⌨️ |
GroupRepositoryStorageMoves | 🦊 | ⌨️ |
GroupSAMLIdentities | 🦊 | ⌨️ |
GroupSAMLLinks | 🦊 | ⌨️ |
GroupSCIMIdentities | 🦊 | ⌨️ |
GroupServiceAccounts | 🦊 | ⌨️ |
GroupVariables | 🦊 | ⌨️ |
GroupWikis | 🦊 | ⌨️ |
Groups | 🦊 | ⌨️ |
Helm | 🦊 | ⌨️ |
Import | 🦊 | ⌨️ |
InstanceLevelCICDVariables | 🦊 | ⌨️ |
Integrations | 🦊 | ⌨️ |
IssueAwardEmojis | 🦊 | ⌨️ |
IssueDiscussions | 🦊 | ⌨️ |
IssueIterationEvents | 🦊 | ⌨️ |
IssueLabelEvents | 🦊 | ⌨️ |
IssueLinks | 🦊 | ⌨️ |
IssueMilestoneEvents | 🦊 | ⌨️ |
IssueNoteAwardEmojis | 🦊 | ⌨️ |
IssueNotes | 🦊 | ⌨️ |
IssueStateEvents | 🦊 | ⌨️ |
IssueWeightEvents | 🦊 | ⌨️ |
Issues | 🦊 | ⌨️ |
IssuesStatistics | 🦊 | ⌨️ |
JobArtifacts | 🦊 | ⌨️ |
Jobs | 🦊 | ⌨️ |
Keys | 🦊 | ⌨️ |
License | 🦊 | ⌨️ |
LicenseTemplates | 🦊 | ⌨️ |
LinkedEpics | 🦊 | ⌨️ |
Lint | 🦊 | ⌨️ |
Markdown | 🦊 | ⌨️ |
Maven | 🦊 | ⌨️ |
MergeRequestApprovals | 🦊 | ⌨️ |
MergeRequestAwardEmojis | 🦊 | ⌨️ |
MergeRequestContextCommits | 🦊 | ⌨️ |
MergeRequestDiscussions | 🦊 | ⌨️ |
MergeRequestDraftNotes | 🦊 | ⌨️ |
MergeRequestLabelEvents | 🦊 | ⌨️ |
MergeRequestMilestoneEvents | 🦊 | ⌨️ |
MergeRequestNoteAwardEmojis | 🦊 | ⌨️ |
MergeRequestNotes | 🦊 | ⌨️ |
MergeRequests | 🦊 | ⌨️ |
MergeTrains | 🦊 | ⌨️ |
Metadata | 🦊 | ⌨️ |
Migrations | 🦊 | ⌨️ |
NPM | 🦊 | ⌨️ |
Namespaces | 🦊 | ⌨️ |
NotificationSettings | 🦊 | ⌨️ |
NuGet | 🦊 | ⌨️ |
PackageRegistry | 🦊 | ⌨️ |
Packages | 🦊 | ⌨️ |
PagesDomains | 🦊 | ⌨️ |
PersonalAccessTokens | 🦊 | ⌨️ |
PipelineScheduleVariables | 🦊 | ⌨️ |
PipelineSchedules | ⌨️ | |
PipelineTriggerTokens | 🦊 | ⌨️ |
Pipelines | 🦊 | ⌨️ |
ProductAnalytics | 🦊 | ⌨️ |
ProjectAccessRequests | 🦊 | ⌨️ |
ProjectAccessTokens | 🦊 | ⌨️ |
ProjectAliases | 🦊 | ⌨️ |
ProjectBadges | 🦊 | ⌨️ |
ProjectCustomAttributes | 🦊 | ⌨️ |
ProjectDORA4Metrics | 🦊 | ⌨️ |
ProjectHooks | 🦊 | ⌨️ |
ProjectImportExports | 🦊 | ⌨️ |
ProjectInvitations | 🦊 | ⌨️ |
ProjectIssueBoards | 🦊 | ⌨️ |
ProjectIterations | 🦊 | ⌨️ |
ProjectJobTokenScopes | 🦊 | ⌨️ |
ProjectLabels | 🦊 | ⌨️ |
ProjectMembers | 🦊 | ⌨️ |
ProjectMilestones | 🦊 | ⌨️ |
ProjectProtectedEnvironments | 🦊 | ⌨️ |
ProjectPushRules | 🦊 | ⌨️ |
ProjectRelationsExport | 🦊 | ⌨️ |
ProjectReleases | 🦊 | ⌨️ |
ProjectRemoteMirrors | 🦊 | ⌨️ |
ProjectRepositoryStorageMoves | 🦊 | ⌨️ |
ProjectSnippetAwardEmojis | 🦊 | ⌨️ |
ProjectSnippetDiscussions | 🦊 | ⌨️ |
ProjectSnippetNotes | 🦊 | ⌨️ |
ProjectSnippets | 🦊 | ⌨️ |
ProjectStatistics | 🦊 | ⌨️ |
ProjectTemplates | 🦊 | ⌨️ |
ProjectVariables | 🦊 | ⌨️ |
ProjectVulnerabilities | 🦊 | ⌨️ |
ProjectWikis | 🦊 | ⌨️ |
Projects | 🦊 | ⌨️ |
ProtectedBranches | 🦊 | ⌨️ |
ProtectedTags | 🦊 | ⌨️ |
PyPI | 🦊 | ⌨️ |
ReleaseLinks | 🦊 | ⌨️ |
Repositories | 🦊 | ⌨️ |
RepositoryFiles | 🦊 | ⌨️ |
RepositorySubmodules | 🦊 | ⌨️ |
ResourceGroups | 🦊 | ⌨️ |
RubyGems | 🦊 | ⌨️ |
Runners | 🦊 | ⌨️ |
Search | 🦊 | ⌨️ |
SearchAdmin | 🦊 | ⌨️ |
SecureFiles | 🦊 | ⌨️ |
ServiceAccounts | 🦊 | ⌨️ |
ServiceData | 🦊 | ⌨️ |
SidekiqMetrics | 🦊 | ⌨️ |
SidekiqQueues | 🦊 | ⌨️ |
SnippetRepositoryStorageMoves | 🦊 | ⌨️ |
Snippets | 🦊 | ⌨️ |
Suggestions | 🦊 | ⌨️ |
SystemHooks | 🦊 | ⌨️ |
Tags | 🦊 | ⌨️ |
TodoLists | 🦊 | ⌨️ |
Topics | 🦊 | ⌨️ |
UserCustomAttributes | 🦊 | ⌨️ |
UserEmails | 🦊 | ⌨️ |
UserGPGKeys | 🦊 | ⌨️ |
UserImpersonationTokens | 🦊 | ⌨️ |
UserSSHKeys | 🦊 | ⌨️ |
UserStarredMetricsDashboard | 🦊 | ⌨️ |
Users | 🦊 | ⌨️ |
This started as a fork from node-gitlab-legacy but I ended up rewriting much of the code. Here are the original work's contributors.
FAQs
Core API implementation of the GitLab API
The npm package @gitbeaker/core receives a total of 838,348 weekly downloads. As such, @gitbeaker/core popularity was classified as popular.
We found that @gitbeaker/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.