把网站访客行为轨迹生成动态录像
2019-08-14 10:49:18 Author: github.com(查看原文) 阅读量:799 收藏

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up

TypeScript JavaScript HTML CSS

Permalink

Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Translated design docs to English (#19) Dec 31, 2018
scripts repl: reset events when start and add types to inquirer prompt Jan 13, 2019
src re-add addCustomEvent function via function property Aug 12, 2019
test Revert "temp revert #81" Aug 12, 2019
typings re-add addCustomEvent function via function property Aug 12, 2019
.gitignore new feature: add custom style in replayer (#87) Jul 10, 2019
.prettierrc init the repo and integrate rrweb-snapshot Oct 6, 2018
.release-it.json update dependencies and generate typings (#44) Jan 21, 2019
.travis.yml add travis build Nov 1, 2018
LICENSE add company info Jan 26, 2019
README.md Css parser (#107) Aug 4, 2019
README.zh_CN.md Css parser (#107) Aug 4, 2019
guide.md turn some warning message into debug message Jan 29, 2019
guide.zh_CN.md turn some warning message into debug message Jan 29, 2019
package.json Release 0.7.23 Aug 12, 2019
rollup.config.js add rollup commonjs plugin Dec 25, 2018
test.d.ts update puppeteer to use setContent with wait and housekeeping the dec… Dec 3, 2018
tsconfig.json remove mitt typings namesapce Jun 5, 2019
tslint.json init the repo and integrate rrweb-snapshot Oct 6, 2018

Try rrweb

Build Status Join the chat at https://gitter.im/rrweb-io/rrweb total gzip size recorder gzip size

中文文档

rrweb refers to 'record and replay the web', which is a tool for recording and replaying users' interactions on the web.

Currently, rrweb has already solved many difficult problems in recording and replaying, but the data structure may still be changed before the release of Version 1.0. So please be cautious to use rrweb in the production environment.

Guide

📚 Read the rrweb guide here. 📚

Project Structure

rrweb is mainly composed of 3 parts:

  • rrweb-snapshot, including both snapshot and rebuilding features. The snapshot is used to convert the DOM and its state into a serializable data structure with an unique identifier; the rebuilding feature is to rebuild the snapshot into corresponding DOM.
  • rrweb, including two functions, record and replay. The record function is used to record all the mutations in the DOM; the replay is to replay the recorded mutations one by one according to the corresponding timestamp.
  • rrweb-player, is a player UI for rrweb, providing GUI-based functions like pause, fast-forward, drag and drop to play at any time.

Roadmap

  • rrweb
    • handle cross-domain request errors
    • record in web worker
    • implement transmission data compression
    • verify recording in mobile browser
  • rrweb-player
    • implement efficient progress bar drag and drop control
    • add full screen mode
  • extensions
    • hijack the console API and record corresponding events
    • hijack Ajax/fetch API and record request events
    • use TraceKit to log exception events

Internal Design

Contribute Guide

Since we want the record and replay sides to share a strongly typed data structure, rrweb is developed with typescript which provides stronger type support.

Typescript handbook

  1. Fork the rrweb component repository you want to patch.
  2. Run npm install to install required dependencies.
  3. Patch the code and pass all the tests.
  4. Push the code and create a pull request.

In addition to adding integration tests and unit tests, rrweb also provides a REPL testing tool.

Using the REPL tool

Who's using rrweb


文章来源: https://github.com/rrweb-io/rrweb
如有侵权请联系:admin#unsafe.sh