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

obelus

v0.0.14

Published

A modular, type-safe animation domain-specific language (DSL) written in TypeScript. This library defines a declarative format for building, composing, and executing animations using a shared object model.

Readme

Obelus

A modular, type-safe animation domain-specific language (DSL) written in TypeScript. This library defines a declarative format for building, composing, and executing animations using a shared object model.

✨ Key Features

  • 💡 Builder-style DSL (at(0).animate(...), sequence([...]))
  • 🕒 Timeline-based and step-based animation modes
  • 🎯 Lifecycle callbacks (onStart, onComplete)
  • 📞 Call events for arbitrary code execution
  • 📦 Pure TypeScript — framework-agnostic

📦 Installation

npm install obelus

🔧 Timeline DSL

Schedule animations at absolute times:

import { animatable, at, TimelineScene } from 'obelus';

const scene: TimelineScene = {
  objects: [
    animatable('box', { x: 0, y: 0 }),
    animatable('circle', { x: 0, y: 0 }),
  ],
  timeline: [
    at(0).animate('box', { x: 100 }, { duration: 1 }),
    at(0.5).call(() => playSound('whoosh')),
    at(1).animate('circle', { y: 50 }, { duration: 0.5 }, {
      onComplete: () => console.log('Circle done!')
    }),
  ]
};

🪜 Step DSL

Compose animations sequentially and in parallel:

import { animatable, animate, wait, call, sequence, parallel, StepScene } from 'obelus';

const scene: StepScene = {
  objects: [
    animatable('box', { x: 0 }),
    animatable('circle', { y: 0 }),
  ],
  steps: [
    // Step 1: Animate box with callbacks
    animate('box', { x: 100 }, { duration: 1 }, {
      onStart: () => console.log('Started!'),
      onComplete: () => playSound('ding')
    }),
    
    // Step 2: Wait then call a function
    wait(0.5),
    call(() => updateScore(10)),
    
    // Step 3: Run two sequences in parallel
    parallel([
      sequence([
        animate('box', { x: 200 }, { duration: 0.5 }),
        wait(0.2),
        animate('box', { x: 300 }, { duration: 0.5 }),
      ]),
      sequence([
        animate('circle', { y: 100 }, { duration: 0.5 }),
        wait(0.2),
        animate('circle', { y: 200 }, { duration: 0.5 }),
      ])
    ])
  ]
};

📚 API Reference

Step Events

| Function | Description | |----------|-------------| | animate(targetId, targetProps, animateProps, callbacks?) | Animate a target's properties | | wait(duration) | Pause the timeline | | call(fn) | Execute arbitrary code | | sequence(steps) | Run steps one after another | | parallel(steps) | Run steps simultaneously |

Timeline Events

| Function | Description | |----------|-------------| | at(time).animate(targetId, targetProps, animateProps, callbacks?) | Animate at absolute time | | at(time).call(fn) | Execute code at absolute time |

Callbacks

{
  onStart?: () => void;    // Called when animation begins
  onComplete?: () => void; // Called when animation ends
}

🎯 What is Obelus?

Obelus is a framework-agnostic animation DSL that lets you:

  • Define animations declaratively
  • Use any rendering framework (Three.js, Canvas, React, etc.)
  • Use any animation library (GSAP, Framer Motion, etc.)
  • Compose complex animations from simple primitives
  • Add lifecycle hooks for sounds, state updates, and more