
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@commandkit/analytics
Advanced tools
@commandkit/analytics
Analytics providers for CommandKit.
npm install @commandkit/analytics
This package provides a commandkit plugin that automatically registers the analytics provider with the commandkit instance.
import { posthog } from '@commandkit/analytics/posthog';
export default defineConfig({
plugins: [
posthog({
posthogOptions: {
apiKey: 'YOUR_POSTHOG_API_KEY',
options?: PostHogOptions
}
})
],
});
import { umami } from '@commandkit/analytics/umami';
export default defineConfig({
plugins: [
umami({
umamiOptions: {
hostUrl: 'YOUR_UMAMI_HOST_URL',
websiteId?: 'YOUR_UMAMI_WEBSITE_ID',
sessionId?: 'YOUR_UMAMI_SESSION_ID',
userAgent?: 'YOUR_UMAMI_USER_AGENT',
}
})
],
});
import { track } from 'commandkit/analytics';
await track({
name: 'YOUR_EVENT_NAME',
id?: 'YOUR_UNIQUE_ID',
data: {...}
});
The noAnalytics
function can be used to disable analytics for a specific request. This can be useful if you want to disable analytics for a specific user or guild, etc.
import { noAnalytics } from 'commandkit/analytics';
// call inside command or event or middlewares
if (someCondition) {
noAnalytics();
}
FAQs
Analytics providers for CommandKit
We found that @commandkit/analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.