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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@object-ui/plugin-timeline

v18.3.0

Published

Timeline component plugin for ObjectUI

Readme

@object-ui/plugin-timeline

Timeline component plugin for Object UI with support for vertical, horizontal, and Gantt-style timelines.

Installation

npm install @object-ui/plugin-timeline

Usage

Vertical Timeline

import {
  Timeline,
  TimelineItem,
  TimelineMarker,
  TimelineContent,
  TimelineTitle,
  TimelineTime,
  TimelineDescription
} from '@object-ui/plugin-timeline';

function App() {
  return (
    <Timeline>
      <TimelineItem>
        <TimelineMarker variant="success" />
        <TimelineContent>
          <TimelineTime>2024-01-15</TimelineTime>
          <TimelineTitle>Project Started</TimelineTitle>
          <TimelineDescription>
            Kickoff meeting and initial planning
          </TimelineDescription>
        </TimelineContent>
      </TimelineItem>
    </Timeline>
  );
}

Gantt Timeline

import {
  TimelineGantt,
  TimelineGanttHeader,
  TimelineGanttRow,
  TimelineGanttBar
} from '@object-ui/plugin-timeline';

// See examples in the source code for Gantt usage

Schema-Driven Usage

This plugin automatically registers with ObjectUI's component registry when imported:

import '@object-ui/plugin-timeline';

const schema = {
  type: 'timeline',
  variant: 'vertical',
  items: [
    {
      time: '2024-01-15',
      title: 'Project Started',
      description: 'Kickoff meeting',
      variant: 'success'
    }
  ]
};

Object-bound timeline (object-timeline)

object-timeline fetches records from objectName and draws one entry per record, from the fields its timeline config names. An authored node takes its props in the properties bag, where @objectstack/spec's ComponentPropsMap['object-timeline'] row declares them:

{
  "type": "object-timeline",
  "properties": {
    "objectName": "project_task",
    "timeline": { "startDateField": "start_date", "titleField": "name" },
    "navigation": { "mode": "drawer" }
  }
}

The first record source present wins: items (authored entries, drawn as written), then data (pre-fetched records), then a bind path, then the query on objectName. So objectName is optional: a timeline drawn from items, data or a bind path needs none to draw (entry-click navigation still reads it, below), and a node-level dataSource binding can supply the object instead. Records are composed into entries through the timeline block's field bindings (startDateField, endDateField, titleField, groupByField, colorField), each of which outranks the flat key of the same binding; mapping ({ title, date, description, variant }) is read where the block leaves a binding unset, and descriptionField names the description field (mapping.description outranks it). limit caps the query ($top, default 100), and filter / sort lower to $filter / $orderby on it; the rail still draws composed entries by start date. dateFormat is short, long or iso. Without a groupByField, entries group into date buckets (Earlier, Today, Tomorrow, This week, Next week, Later, No date), and "This week" starts on the first day of the week of the display locale: Sunday under en-US, Monday under en-GB or zh-CN. rowLabel, minDate, maxDate and timeline.scale are read by the gantt branch only, which on this block draws authored items.

navigation is what an entry click opens — the spec's NavigationConfig by reference, ViewNavigationConfig in @object-ui/types: mode (drawer, page, new_window or none) with size, openNewTab and preventNavigation. drawer, and a block written without mode (it takes the spec's drawer default), open the entry's record in the drawer, new_window and openNewTab: true open the record page in a new tab, preventNavigation: true opens nothing, and size sets the overlay width. page opens the record page of the timeline's objectName through the record navigator the host publishes (the console publishes one on its custom pages, record pages and list views); under a host that publishes none, such as an embedded renderer, or on a timeline that names no objectName, the click opens nothing. On a timeline that names no objectName, new_window and openNewTab: true open no record page either: the tab opens at a slash and the entry's id alone (its _id when it has no id, undefined when it has neither). A click handler from a parent view outranks the whole key. ⚠️ With the key absent a click opens nothing: this renderer supplies no drawer default.

Links

License

MIT © ObjectStack Inc.