Skip to main content
← All Internal Releases

nanx v0.2.0-alpha.22

Internal
2025-12-29

Release Date: 2025-12-29

Previous Version: v0.2.0-alpha.21

This release introduces telemetry tracking infrastructure to enable product analytics and user behavior monitoring. The implementation includes rate-limited event capture with built-in PII sanitization to ensure privacy compliance.

Features

Telemetry Tracking Infrastructure

Added comprehensive telemetry tracking system using PostHog for event analytics:

  • Server-side tracking endpoint (apps/nanx-dev/src/pages/api/e.ts): Implemented POST endpoint at /api/e for receiving and forwarding telemetry events to PostHog. Includes rate limiting (100 requests per 15 minutes per IP) and automatic PII sanitization to prevent sensitive data leakage.

  • Client-side tracking utilities (apps/nanx-dev/src/lib/track.ts): Added helper functions for capturing user events from the frontend. Provides a simple interface for tracking page views, user interactions, and custom events.

  • Core tracking library (libs/nanions/src/tracking/index.ts): Created reusable tracking module in the nanions library for consistent event tracking across the monorepo. This shared implementation can be utilized by other applications in the workspace.

The telemetry infrastructure is designed with privacy-first principles, automatically sanitizing potentially sensitive information before transmission while maintaining useful analytics data for product development and user experience optimization.

Statistics

MetricValue
Commits2
Files Changed2
Lines+39 / -1
Issues Closed0

Contributors

NameCommitsLines
VivinMeth ([email protected])2+0 / -0