
Research
TeamPCP Compromises Telnyx Python SDK to Deliver Credential-Stealing Malware
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.
@valencets/telemetry
Advanced tools
[](https://www.npmjs.com/package/@valencets/telemetry) [](https://github.com/valencets/valence/blob/master/LICENSE)
Server-side telemetry engine for the Valence web framework. Ingests beacon payloads from the client, stores raw events in PostgreSQL, aggregates daily summaries, and exposes query functions for the CMS analytics dashboard.
96 tests. Full documentation on the wiki.
Valence telemetry is a complete first-party analytics pipeline. No third-party scripts, no vendor dashboards. Your data stays in your Postgres.
The ingestion handler receives batched events from navigator.sendBeacon() on the client. It validates payloads (JSON structure, intent types, site ID), rejects malformed data silently (always returns 200 to avoid client retries), and batch-inserts valid events.
Raw events are rolled up into daily summaries:
import { getDailyTrend, getDailyBreakdowns } from '@valencets/telemetry'
// Date-ordered array of daily summaries
const trend = await getDailyTrend(pool, siteId, startDate, endDate)
// Merged aggregations: top 10 pages, top 10 referrers, intent counts
const breakdowns = await getDailyBreakdowns(pool, siteId, startDate, endDate)
Goes beyond pageviews to track user intent:
| Type | Category |
|---|---|
CLICK, SCROLL, VIEWPORT_INTERSECT, FORM_INPUT | Interaction |
INTENT_NAVIGATE | Navigation |
INTENT_CALL, INTENT_BOOK, INTENT_LEAD | Conversion |
LEAD_PHONE, LEAD_EMAIL, LEAD_FORM | Lead capture |
The client half lives in @valencets/core. HTML elements are annotated with data-telemetry-type and data-telemetry-target attributes. Events are captured via event delegation into a pre-allocated ring buffer (zero allocation in the hot path) and auto-flushed every 30 seconds.
pnpm install
pnpm build
pnpm --filter=@valencets/telemetry test
MIT
FAQs
[](https://www.npmjs.com/package/@valencets/telemetry) [](https://github.com/valencets/valence/blob/master/LICENSE)
The npm package @valencets/telemetry receives a total of 382 weekly downloads. As such, @valencets/telemetry popularity was classified as not popular.
We found that @valencets/telemetry 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.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.

Security News
/Research
Widespread GitHub phishing campaign uses fake Visual Studio Code security alerts in Discussions to trick developers into visiting malicious website.