redux-vcr

? Record and replay user sessions

Github星跟蹤圖

ReduxVCR

A Redux devtool that lets you replay user sessions in real-time.

build status
npm version
npm monthly downloads

NOTE: This project is in early alpha. I've been using it in production in Key&Pad, but it has not been tested in larger/more complex applications.


Demo

You can see a live demo of real, in-production data at Key&Pad. Click on the VCR screen, select a cassette, and hear some dynamically-recreated music!

Blog Post

Check out the Medium post that details how and why this is being built.

Features

Insights

By re-watching a recorded session in real-time, you learn tons about how users use your application. Great for gauging UX, spotting bugs, etc.

Developer Experience

Features quality-of-life configuration:

  • Max delay between actions: Set a maximum wait time, to remove long gaps when users go idle.
  • Speed controls: play your cassettes in 0.5x or 2x speed.
  • More to come!

Serverless Security

The goal for ReduxVCR was to not need any server-side integration for developers creating front-end-only applications, while still being secure. Using Firebase, we're able to automatically authenticate all users, assuring that they can only edit their own slice of the state, and not read from or write to any other users' sessions.

For replaying the sessions, GitHub OAuth is used. You set which GitHub email you want to have read access within Firebase.

Modular Architecture

Rather than create one monolithic package, ReduxVCR consists of 4 individual packages:

  • Capture
    The capture layer is responsible for watching the stream of actions, selecting the ones that you'd like to record, and augmenting them with timestamps and metadata.

  • Persist
    The persist layer receives the data from Capture and persists it to Firebase. It handles all anonymous authentication concerns.

  • Retrieve
    The retrieve layer, meant to be used in development only, fetches the data from Firebase, and handles all admin authentication concerns.

  • Replay
    Finally, the replay layer is your interface to navigating and watching the recorded cassettes.

An effort has been made to ensure that packages can be swapped out. For example, you may wish to use custom database storage, in which case you'd build your own Persist and Retrieve modules. You may wish to have a different UX, in which case you'd build your own Replay module.

Straightforward Integration

A fair amount of work has been put into making the integration as simple as possible. For simple apps, the process shouldn't take more than a couple of minutes.


Getting Started

There are two parts to integrating Redux VCR into your application.

Troubleshooting

As common issues arise, their solutions will be shared here.

Roadmap

There are a few pretty blatant things missing from ReduxVCR.

  • Event Recording

    Right now, we're only recording the series of Redux actions. Ideally, we'd want our scroll position to mirror the user's, and it would be nice to know where their cursor is.

  • Scrubbing and Navigation

    When replaying cassettes, there is currently no way to "jump" to a specific portion in the cassette, to see how far along you are in the sequence, etc. A media-player-style scrubber would help quickly analyze and replay crucial moments in a cassette.

  • Support for common tools and environments

    Immutable.js and React Native are both currently untested/unsupported.

I have limited free time at the moment, so if anybody would like to contribute to this project, these would be great places to start :)

主要指標

概覽
名稱與所有者joshwcomeau/redux-vcr
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證
所有者活动
創建於2016-08-10 23:34:38
推送於2016-10-14 12:15:58
最后一次提交2016-10-14 08:14:52
發布數27
最新版本名稱v0.3.3 (發布於 )
第一版名稱v0.0.35 (發布於 )
用户参与
星數584
關注者數12
派生數14
提交數215
已啟用問題?
問題數2
打開的問題數1
拉請求數4
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?