npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eon-timeline

v0.1.0

Published

> 👷🏼‍♂️ **Work in progres, in a very alpha version. Use it in your own terms or contribute [here](https://github.com/enriquebv/virtual-headless-timeline).**

Downloads

4

Readme

👷🏼‍♂️ Work in progres, in a very alpha version. Use it in your own terms or contribute here.

Key Features

  • Headless timeline renderer.
    • Library only provides positions to create your own timeline.
    • You can use React, Vue, Svelte, or others libraries/frameworks to create timeline components.
  • Performant.
    • You can create timelines with a large quantity of items, only those which are in current timeline will be provided to be rendered.
  • Update timelines in real-time:
    • Remove items.
    • Add new items.
    • Update items.
  • Responsive by default.
  • Scrollable.
  • Simple API built with TypeScript.
  • Pre-built components to most used UI libraries/frameworks:
    • React
    • Vue
  • Cluster mode.

Coming soon features:

  • Nested timelines.
  • SSR support.
  • Pre-built components to most used UI libraries/frameworks:
    • Svelte
  • Pre-built canvas timeline render.

Philosophy

// TODO: Explain why library

  • Only accepts timestamps in milliseconds format.
  • Layer implementation to allow fine-grain control over the timeline.

How To Use

  1. Install library:

    # With yarn
    yarn add virtual-headless-timeline
    
    # or with npm
    npm i virtual-headless-timeline

// TODO: When library have version 1.0.0, create basic example.

Roadmap

v1.0.0

  • [x] Implement timeline manager:
    • [x] Basic range and calc orchestration.
    • [x] Add unit tests.
    • [x] Update item.
    • [x] Add item.
    • [x] Remove item.
  • [x] Create timeline item entity
    • [x] Added basic range offets calculation
    • [x] Added unit tests
  • [x] Implement DOM layer:
    • [x] ResizeObserver to support responsive.
    • [x] Pan gesture support; will move to future or past using current timeline range.
    • [x] Add unit tests to DOM layer.
  • [ ] Events
    • [ ] On scroll event
    • [ ] On scroll end event
  • [ ] Refactor code to simplify API.
  • [ ] Create pre-built React component.
  • [ ] Create pre-built Vue component.
  • [ ] Create pre-built Svelte component.
  • [ ] Create demo pages.
  • [ ] Enhance current README with basic examples.
  • [ ] Create API.md file with explained library API.

v1.1.0

  • [ ] Scroll gesture support; will modify current timeline range.
  • [ ] Create canvas implementation.
  • [ ] SSR support.

Credits

This library uses the following open source modules:

  • Hammer.JS: Allows to control gestures in timeline (pan, scroll, etc).

Support

// TODO: Add buymeacoffe link.

License

MIT


GitHub @enriquebv  ·  Twitter @enriquedev_