MCPcopy
hub / github.com/NUKnightLab/TimelineJS3

github.com/NUKnightLab/TimelineJS3 @3.9.11 sqlite

repository ↗ · DeepWiki ↗ · release 3.9.11 ↗
818 symbols 1,848 edges 88 files 46 documented · 6%
README

TimelineJS3

TimelineJS v3: A Storytelling Timeline built in JavaScript. https://timeline.knightlab.com

Overview

TimelineJS is a tool designed to help people with minimal technical skill tell rich, dynamic stories on the web. Most people will create timelines using the official authoring tool and embed their creations using a snip of HTML code offered at the end of that process.

For users of these content management systems (CMSes), there are plugins to facilitate the embedding process:

Getting Started

General users of TimelineJS should consult timeline.knightlab.com for instructions and documentation. Information on GitHub is primarily directed at those who are interested in working with the TimelineJS source code.

The authoritative documentation list is also on the main website, but here are some direct links which may be useful:

Contributing to TimelineJS

Are you trying to contribute to or develop TimelineJS3? Here's where you should start.

API

For users who instantiate a timeline in a page (as opposed to using the iframe embed model), this page roughly documents TimelineJS's JavaScript API, but note that because TimelineJS's primary use case is the embedded iframe, some of these methods have not been thoroughly tested.

Use via ES6 modules/webpack

To use in a project that uses ES6 modules and webpack, import the Timeline class and the CSS as follows

import { Timeline } from '@knight-lab/timelinejs';
import '@knight-lab/timelinejs/dist/css/timeline.css';

Core symbols most depended-on inside this repo

fire
called by 64
src/js/core/Events.js
domCreate
called by 57
src/js/media/Media.js
_
called by 45
src/js/language/Language.js
on
called by 40
src/js/core/Events.js
onLoaded
called by 30
src/js/media/types/Text.js
getTime
called by 30
src/js/timenav/TimeEra.js
trace
called by 30
src/js/core/Util.js
mergeData
called by 29
src/js/core/Util.js

Shape

Method 491
Function 225
Class 102

Languages

TypeScript100%
Python1%

Modules by API surface

src/js/timenav/TimeNav.js58 symbols
src/js/timeline/Timeline.js58 symbols
src/js/net/Net.js51 symbols
src/js/animation/Ease.js41 symbols
src/js/slider/StorySlider.js36 symbols
src/js/core/Util.js35 symbols
src/js/media/Media.js31 symbols
src/js/timenav/TimeMarker.js26 symbols
src/js/timenav/TimeEra.js20 symbols
src/js/ui/MenuBar.js19 symbols
src/js/timenav/TimeScale.js19 symbols
src/js/timenav/TimeAxis.js19 symbols

Dependencies from manifests, versioned

@11ty/eleventy3.1.0 · 1×
@babel/cli7.28.6 · 1×
@babel/core7.29.0 · 1×
@babel/preset-env7.29.0 · 1×
adm-zip0.4.14 · 1×
babel-jest29.7.0 · 1×
clean-webpack-plugin4.0.0 · 1×
copy-webpack-plugin14.0.0 · 1×
css-loader7.1.2 · 1×
dompurify3.1.7 · 1×
file-loader6.0.0 · 1×
fs-extra9.0.1 · 1×

For agents

$ claude mcp add TimelineJS3 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact