OFFICIAL DEVELOPER ECOSYSTEM // NPM & PYPI

Developer Packages & Documentation

High-performance, local-first open-source tooling built for zero cloud telemetry, military-grade data privacy, and sub-millisecond execution. Explore our official packages published across npm and PyPI.

npm Packages
3 Libraries
trail, trail-server, trail-react
PyPI Packages
2 Libraries
jung, junglans-trail
Capabilities
104 Built-in
Heatmaps, funnels, telemetry
License
MIT Open Source
100% Free & Local-First
Unified Full-Stack Bundle
NPMv0.6.0Node.js & Browser

@junglans/trail

Unified Local-First Analytics, On-Page Heatmaps & Diagnostic Telemetry for React and Node.js

A unified enterprise-grade bundle combining both the React client SDK (@junglans/trail-react) and Node.js backend middleware (@junglans/trail-server). Store all customer and user telemetry inside your own SQLite database under /api/jungtrail with zero monthly SaaS fees, zero cloud leakage, and complete privacy compliance.

Unified Full-Stack Distribution104 Built-In Capabilities Out of the BoxLocal SQLite WAL Architecture (/api/jungtrail)Zero Cloud Tracker Dependence
$ npm install @junglans/trail
Node.js & Express Middleware
NPMv0.6.0Node.js 18+

@junglans/trail-server

Embedded Analytics & On-Page Heatmap Backend Middleware for Express and Next.js

An ultra-fast, zero-cloud-telemetry backend middleware that stores all incoming application events in your own local SQLite database under /api/jungtrail. Powered by better-sqlite3 with Write-Ahead Logging (WAL) for sub-millisecond event ingestion.

Native SQLite WAL Engine via better-sqlite3Drop-In Support for Express & Next.js App RouterRole-Based Admin Key AuthenticationAutomatic Schema Generation & Migrations
$ npm install @junglans/trail-server
React 18 & 19 SDK
NPMv0.6.0Browser (React 18+)

@junglans/trail-react

React Components, Automated Trackers, On-Page Visual Heatmaps & Analytics Widget

A lightweight, battle-tested React library providing automated DOM interaction trackers, rage-click and dead-click detection, Core Web Vitals monitoring, and a floating admin drawer with a live radial heatmap overlay.

Zero-Config Automated DOM Event CapturingLive In-Browser Radial Heatmap Canvas OverlayFloating Admin Analytics Drawer ComponentType-Safe useAnalytics Hook for Custom Tracking
$ npm install @junglans/trail-react
Python 3.11+ / Git Sidecar
PYPIv0.1.2Python 3.11+ & Git

jung

A Version Control Sidecar for AI-Assisted Development with Prompt, Plan, Cost & Diff Attribution

Git tracks WHAT changed. jung tracks WHY and WHO (human or AI agent). A local-first development sidecar that captures conversation logs, multi-step plans, tool executions, token expenditures, and human-vs-agent code attribution behind every code change — permanently linked to git diffs.

Permanent AI Prompt-to-Diff ProvenanceHuman vs. Agent Line Attribution (jung blame)Real-Time Token Usage & Financial Cost AuditingRich CLI with 24+ Commands & Interactive Web Dashboard
$ pip install jung
Python / FastAPI Middleware
PYPIv0.1.0Python 3.8+ (FastAPI & Starlette)

junglans-trail

Embedded Local-First Analytics & On-Page Heatmap Middleware for Python (FastAPI & Starlette)

Zero standalone servers. Store all telemetry, on-page heatmap coordinates, e-commerce transactions, and diagnostic events directly in your Python application's local SQLite database under /api/jungtrail with 104 capabilities built-in.

Drop-in 3-Line FastAPI / Starlette MiddlewarePython TrailClient for Backend Telemetry TrackingNative SQLite WAL Storage under /api/jungtrail104 Capabilities: Auth, Heatmaps, E-Commerce, Errors
$ pip install junglans-trail
Zero SaaS Dependencies // 3-Line Integration

Quickstart in 30 Seconds

Mount analytics in Express, Next.js, FastAPI, or connect React components. Telemetry is saved in your local SQLite store instantly.

import express from 'express';
import { jungtrailMiddleware } from '@junglans/trail-server';

const app = express();
app.use(express.json());

// Mounts all 104 analytics, heatmap, e-commerce, and auth endpoints under /api/jungtrail
app.use('/api/jungtrail', jungtrailMiddleware({
  dbName: 'analytics.db',
  dbPath: './data/analytics.db',
  adminKey: process.env.ADMIN_KEY || 'demo-admin-key'
}));

app.listen(8000, () => console.log('Trail active on port 8000'));
File: server.jsjavascript
Interactive CLI Terminal Simulator

Explore Open-Source CLI Tooling

Target:jung (PyPI)
Sets up local .jung/ SQLite metadata store & Git post-commit hook.
bash — terminal
Local-First Execution
$ jung init
-> Initialized empty jung store in .jung/
-> Database created: .jung/index.db (SQLite WAL mode)
-> Content-addressed blob store created: .jung/objects/
-> Git repository detected: installing post-commit hook...
✔ SUCCESS: Bidirectional Git hook installed. Turns will automatically link to commits.
104 Built-in Capabilities

Junglans Trail Capabilities Taxonomy

A comprehensive, modular suite of analytics, heatmap, telemetry, and diagnostic features running directly in your SQLite engine with zero third-party cloud dependence.

104
Total Features
10
Categories

Core Tracking27 features

Fundamental user navigation, interaction behavior, and device environment analytics.

Page Views

Real-time page views and route transitions with automatic SPA detection.

Click Tracking

Automated event capture on buttons, links, and actionable DOM targets.

Rage Clicks

Flags rapid repetitive clicking (≥3 clicks within 500ms) on unresponsive elements.

Dead Clicks

Detects clicks on interactive-looking elements that trigger no DOM mutations or navigation.

Scroll Depth Funnel

Milestone beacons triggered at 25%, 50%, 75%, and 100% vertical viewport scroll.

Time Spent on Page

Active visible engagement time excluding background tab states.

Exit Intent

Mouse velocity vector tracking toward browser top bar or tab closure.

File Downloads

Automatic tracking of PDFs, ZIPs, APKs, and documents without manual code hooks.

Clipboard Copy

Captures text copying actions on documentation code snippets and key quotes.

Largest Contentful Paint (LCP)

Core Web Vital timing metric for primary visual rendering speed.

Cumulative Layout Shift (CLS)

Calculates visual layout stability score across user lifecycle.

Interaction to Next Paint (INP)

Measures overall responsiveness to user clicks, taps, and key presses.

UTM Campaign Parsing

Extracts utm_source, utm_medium, utm_campaign, and referral parameters.

Device & Viewport Detection

Classifies Desktop, Mobile, Tablet with exact screen width/height.

Browser & OS Fingerprint

Privacy-preserving user agent parsing for Chrome, Safari, Firefox, Edge, etc.

Auth & Identity18 features

Auditing user authentication lifecycles, role permissions, and access patterns.

Login Success & Failure Rates

Tracks authentication attempts and highlights credential stuffing patterns.

Registration Funnel

Step-by-step completion rate from sign-up form visit to email confirmation.

Password Reset Audits

Logs recovery token requests and password update completions.

MFA / 2FA Verification

Tracks TOTP and SMS token verification time and drop-off rates.

OAuth Provider Distribution

Breakdown of Google, GitHub, Microsoft, and SAML identity log-ins.

User Pseudonym Stitching

Attaches anonymous pre-login browsing history to authenticated user profiles.

Role & Permission Logs

Audits administrative role changes, team privilege updates, and invite states.

Session Lifecycle17 features

Multi-tab synchronization, idle detection, engagement segmentation, and GDPR compliance.

Active Session Concurrency

Maintains real-time heartbeat of online users across browser tabs.

Session Duration

Calculates total span from initial landing to final interaction.

Bounce Rate Calculation

Identifies single-interaction visits under 10 seconds duration.

Idle vs Active Time Ratio

Disaggregates periods of inactivity from true user focus.

Multi-Tab BroadcastChannel Sync

Synchronizes session ID and cart changes across tabs in real-time.

Engagement Tiers

Classifies visitors into Low, Medium, High, or Power user segments.

GDPR One-Click Erasure

Endpoint allowing complete purge of a user's telemetry records upon request.

Heatmap & Spatial7 features

Visual on-page radial heatmaps, element click density maps, and spatial interaction overlays.

Live Canvas Heatmap Overlay

Renders smooth radial gradients directly over the active website DOM.

Element Click Leaderboard

Ranked list of top-clicked CSS selectors and button components.

Target Tagging & Filters

Filter click heatmaps by route, date range, or device viewport.

Scroll Depth Gradient

Visual color overlay illustrating the percentage of users reaching each fold.

Dynamic Responsive Scaling

Recalculates click coordinates accurately when elements reflow on resize.

Diagnostics & Performance8 features

Client-side error monitoring, network drops, and performance bottleneck diagnostics.

Unhandled JS Error Logging

Captures window.onerror and unhandled promise rejections with stack traces.

Console Error Interception

Logs console.error events with sanitized context arguments.

Network Offline Detection

Monitors online/offline transitions and queues telemetry for later dispatch.

Slow API Request Flags

Identifies backend calls exceeding configurable latency thresholds (e.g. >1000ms).

Client Memory Diagnostics

Tracks JS heap memory limits on supported browsers to spot memory leaks.

Database & Admin7 features

SQLite WAL persistence, backup automation, zero-config migrations, and data export.

SQLite Write-Ahead Logging

High-concurrency database engine supporting thousands of events/second.

JSON & CSV Bulk Export

Download full historical event logs for offline analysis or spreadsheet import.

Automatic Database Backups

Creates timestamped snapshot copies without stopping the ingestion pipeline.

Admin Key Token Guard

Ensures administrative endpoints are accessible only by authorized team leads.

Automatic Rolling Prune

Automatically trims aged events beyond the configured retention window.

E-Commerce & Revenue8 features

Cart funnels, conversion tracking, checkout stages, revenue metrics, and coupon analytics.

Product Impression Tracking

Records whenever product cards or catalog listings enter the viewport.

Add / Remove from Cart

Tracks item quantities, variations, and catalog drop-offs.

Multi-Step Checkout Funnel

Monitors shipping address, payment method, and confirmation steps.

Purchase & Revenue Attribution

Calculates total order value, average cart size, and product margin trends.

Cart Abandonment Detection

Identifies sessions where items were added to cart but checkout was incomplete.

Coupon & Discount Auditing

Logs promotional voucher redemption rates and discount margin impact.

A/B Testing & Feature Flags4 features

Experiment exposure tracking, variant conversion, and statistical confidence scoring.

Variant Exposure Logging

Records which experiment variant (Control vs Test A/B) each user viewed.

Variant Conversion Funnel

Compares conversion rates between variations across multiple milestones.

Feature Flag Evaluation

Tracks client-side feature toggle checks and roll-out percentages.

Feedback, NPS & CSAT4 features

In-app customer sentiment surveys, Net Promoter Scores, and qualitative notes.

NPS Survey Engine

Scores users from 0-10 and categorizes Promoters, Passives, and Detractors.

CSAT Satisfaction Ratings

Captures 1-to-5 star ratings on key task completion moments.

Customer Feedback Notes

Accepts free-form feedback commentary attached to session timelines.

Resilience & Latency4 features

IndexedDB buffer queues, backpressure handling, and latency benchmarking.

Offline IndexedDB Persistence

Stores pending events in browser IndexedDB if internet connectivity is lost.

Buffer Overflow Backpressure

Safeguards against memory exhaustion under burst traffic by dropping low-priority pings.

Client API Latency Benchmarking

Measures round-trip time between client and ingestion endpoint.

ARCHITECTURAL FOUNDATION // PRIVACY FIRST

Why Local-First Analytics Outperforms Cloud SaaS

Traditional analytics platforms charge per event and route sensitive user interactions across foreign cloud servers. Junglans keeps every byte securely in your local environment.

Traditional Cloud Analytics (Mixpanel, GA4, Hotjar)

  • Heavy recurring SaaS bills based on monthly tracked users (MTUs) and event volumes.
  • Third-party cloud data leakage: sensitive customer behavioral paths leave your infrastructure.
  • Client script bloat: heavy external trackers impact Core Web Vitals and Lighthouse scores.
  • Ad-blocker suppression: up to 40% of visitor telemetry is blocked before reaching servers.

Junglans Local-First Ecosystem (@junglans/trail & jung)

  • Zero tracking fees ($0/mo): stores all data in your own SQLite database using high-throughput WAL mode.
  • Absolute data sovereignty: complies with GDPR, HIPAA, and DPDP laws natively because data never leaves your server.
  • First-party same-origin traffic: routes to /api/jungtrail, bypassing browser ad-blockers naturally.
  • Sub-millisecond execution: SQLite WAL handles thousands of events per second with zero network latency overhead.

Ready to deploy local-first telemetry or AI attribution?

Install any of our 5 packages right now or read their dedicated documentation pages.