
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@gitlab/application-sdk-node
Advanced tools
This SDK is for using GitLab Application Services with Node.
Add the NPM package to your package JSON using your preferred package manager:
yarn add @gitlab/application-sdk-node
OR
npm i @gitlab/application-sdk-node
import { GitLabSDK } from '@gitlab/application-sdk-node';
const glSDK = new GitLabSDK({ app_id: 'YOUR_APP_ID', host: 'YOUR_HOST' });
Option | Description |
---|---|
app_id | The ID specified in the GitLab Project Analytics setup guide. It ensures your data is sent to your analytics instance. |
host | The GitLab Project Analytics instance specified in the setup guide. |
identify
Used to associate a user and their attributes with the session and tracking events.
glSDK.identify('123abc', { user_name: 'Matthew' });
Property | Type | Description |
---|---|---|
user_id | String | The ID of the user. |
user_attributes | Hash | Optional. The user attributes to add to the session and tracking events. |
track
Used to trigger a custom event.
glSDK.track(event_name, event_attributes);
Property | Type | Description |
---|---|---|
event_name | String | The name of the custom event. |
event_attributes | Hash | The event attributes to add to the tracked event. |
To develop with a local Snowplow pipeline, use Analytics devkit's Snowplow setup.
Want to contribute to the GitLab Application SDK - Node? follow contributing guide.
FAQs
NodeJS SDK for GitLab Application services
The npm package @gitlab/application-sdk-node receives a total of 0 weekly downloads. As such, @gitlab/application-sdk-node popularity was classified as not popular.
We found that @gitlab/application-sdk-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.