
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A JavaScript SDK for UGC Guard content moderation.
Install the SDK using npm:
npm install ugc-guard
If you need the low-level OpenAPI client:
npm install ugc-guard-api
import { GuardClient } from 'ugc-guard';
const guardClient = new GuardClient({
organizationId: 'your-org-id',
baseUrl: 'http://localhost:8099/'
});
To report content, you need to provide the following:
moduleId: The ID of the module.moduleSecret: The secret key for the module.typeId: The type ID of the content.mainContent: The main content to report.reporter: The person reporting the content.options: Additional options such as description, report category, user message, context, and channels.Example:
import {
ReportContent,
ReportPerson,
ContentWrapper,
MultiMediaBody,
TextBody
} from 'ugc-guard';
const mainContent = new ContentWrapper(
new ReportContent(
"3",
new TextBody({ text: "Example text" })
),
new ReportPerson("1", {
name: "John Doe",
email: "john.doe@example.com"
})
);
const context = [
new ContentWrapper(
new ReportContent(
"4",
new TextBody({ text: "Context text" })
),
new ReportPerson("2", {
name: "Jane Doe",
email: "jane.doe@example.com"
})
)
];
const reporter = new ReportPerson("3", {
name: "Reporter Name",
email: "reporter@example.com"
});
await guardClient.report(
"module-id",
"module-secret",
"type-id",
mainContent,
reporter,
{
description: "Report description",
reportCategory: "other",
userMessage: "User message",
context: context,
channels: []
}
);
To upload files, use the MultiMediaBody class:
const body = await MultiMediaBody.fromFilePath('./path-to-file.png');
To verify webhook signatures:
import { GuardClient } from 'ugc-guard';
const isValid = GuardClient.verifySignature(payloadBody, secretToken, signatureHeader);
console.log(`Signature valid: ${isValid}`);
For advanced use cases, you can use the low-level OpenAPI client:
import { ApiClient, ReportsApi } from 'ugc-guard-api';
const apiClient = new ApiClient('http://localhost:8099/');
const reportsApi = new ReportsApi(apiClient);
FAQs
A JavaScript SDK for UGC Guard content moderation.
We found that ugc-guard 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.