wtrd

0.0.10 • Public • Published

Window to Remote Datasource

  • a middle layer between a data source and frontend - a disposable infinite-scroll handler

Handles the boilerplate of

  • left and right data scrolls using only .next() and .previous() functions
  • scaling buffer and demands according to scaled dataset (start with 10 wide and go to 100 wide)
  • in-browser buffer of data
  • demanding only data not already available
  • handling edge cases - start of data/end of data

Use cases:

  • Quickly changing underlying datasource without changing mid and front(e.g. searches)
  • Same data, multiple representations(e.g. one WtRD for view finder, one for a chart)

API: See tests.js

Package Sidebar

Install

npm i wtrd

Weekly Downloads

2

Version

0.0.10

License

MIT

Last publish

Collaborators

  • hgill