百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

heimdallr-sdk

> 前端框架
开源

A lightweight front-end monitoring sdk/一款简单易用、轻量化、插件化的前端监控sdk

688 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

A lightweight front-end monitoring sdk/一款简单易用、轻量化、插件化的前端监控sdk

HEIMDALLR-SDK

首创插件化、可插拔的前端埋点 SDK · 简单易用、轻量化、插件化的前端监控利器

The first plug-in, pluggable front-end tracking SDK — easy-to-use, lightweight, and extensible

Documentation

To check out docs, visit heimdallr-sdk.

Env

  • node version: 20.16.0
  • npm script: pnpm

Preparation

Make sure MySQL and RabbitMQ are installed

Dev

Installation Dependency

bash
pnpm i --registry=https://registry.npmmirror.com

Ensure that the local MySQL database service is started

  • host: localhost
  • port: 3306

Initialize the database and automatically create a database named test_base database for debugging

bash
pnpm run prisma

Start Local Service

bash
pnpm run dev

Build

Installation Dependency

bash
pnpm i --registry=https://registry.npmmirror.com

Build a single package

bash
pnpm --filter [packageName] run build

For example, build a browser package

bash
pnpm --filter @heimdallr-sdk/browser run build

Build all packages

bash
pnpm run build

Testing

E2E Tests

Comprehensive end-to-end testing suite with Playwright covering SDK core functionality, all plugins, and manager integration.

Prerequisites

  • MySQL running at localhost:3306 with database test_base
  • Node.js >= 16, pnpm >= 9.7.1

First Time Setup

bash
# Install dependencies
pnpm install

# Setup test environment (Prisma client + Playwright browsers)
pnpm test:setup

# Create test database if not exists
mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS test_base;"

Run Tests

bash
# Run all E2E tests
pnpm test

# Run tests only (skip setup — used by CI)
pnpm test:e2e

# Run with Playwright UI (interactive mode)
pnpm test:e2e:ui

# Run in debug mode
pnpm test:e2e:debug

# Run in headed mode (see browser)
pnpm test:e2e:headed

# View test report
pnpm test:e2e:report

Test Coverage

  • ✅ SDK Core & Manager Integration (9 tests)
  • ✅ Error Capture (5 tests)
  • ✅ Mock App Integration (7 tests)
  • ✅ Console Plugin (4 tests)
  • ✅ Customer Events (6 tests)
  • ✅ DOM Plugin (5 tests)
  • ✅ Fetch Plugin (4 tests)
  • ✅ Page Crash Detection (2 tests)
  • ✅ Performance Metrics (5 tests)
  • ✅ Recording Plugin (3 tests)
  • ✅ Routing Plugin (5 tests)
  • ✅ Vue Plugin (3 tests)
  • ✅ XHR Plugin (3 tests)

For detailed testing documentation, see e2e/README.md

Sponsor

持续优化更新中...

完全开源,绝不收费!!!

如果对您有所帮助,那就小小支持一下吧

Alipay Wechat

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScripterror-monitoringfrontendheimdallr-sdkmonitoring

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架