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

@latimer-woods-tech/schedule

v0.2.2

Published

Automated video production calendar for the Factory content flywheel.

Readme

@latimer-woods-tech/schedule

Automated video production calendar for the Factory content flywheel.

Overview

@latimer-woods-tech/schedule manages the video_calendar Postgres table and provides the scheduling, queue, and priority-scoring logic that drives the fully automated video pipeline.

Pipeline:
PostHog signals → scorePriorityscheduleVideo → cron queue → GitHub Actions render → updateJobStatus → Cloudflare Stream embed

Installation

npm install @latimer-woods-tech/schedule

Database setup

Run the DDL once during bootstrap or migration:

import { VIDEO_CALENDAR_DDL } from '@latimer-woods-tech/schedule';
await db.execute(VIDEO_CALENDAR_DDL);

The video_calendar table schema:

| Column | Type | Description | | ------------------ | ----------- | ---------------------------------------------------- | | id | UUID | Primary key | | app_id | TEXT | Factory application identifier | | type | TEXT | marketing | training | walkthrough | | topic | TEXT | Short topic for the LLM script generator | | script | TEXT | Full narration script (populated after LLM call) | | narration_url | TEXT | R2 key or URL of the ElevenLabs audio file | | video_url | TEXT | R2 key or URL of the rendered MP4 | | stream_uid | TEXT | Cloudflare Stream UID after registration | | scheduled_at | TIMESTAMPTZ | When the video should go live | | status | TEXT | pendingrenderinguploadingdone | | performance_score| INTEGER | Priority score 0–100 (higher = rebuild sooner) | | trigger_source | TEXT | cron | git_tag | feedback_threshold | manual | | error | TEXT | Failure reason when status = 'failed' |

Usage

Schedule a video

import { scheduleVideo } from '@latimer-woods-tech/schedule';

const job = await scheduleVideo(db, {
  appId: 'prime_self',
  type: 'marketing',
  topic: 'Q4 launch — peak performance challenge',
  triggerSource: 'cron',
});

Process the queue (cron trigger)

import { getPendingJobs, updateJobStatus, toRenderJob } from '@latimer-woods-tech/schedule';

const pending = await getPendingJobs(db, 5);
for (const row of pending) {
  await updateJobStatus(db, row.id, 'rendering');
  const job = toRenderJob(row);
  await triggerGitHubActionsRenderWorkflow(job); // your dispatch function
}

Score videos by engagement

import { scorePriority, setPerformanceScore } from '@latimer-woods-tech/schedule';

const score = scorePriority({
  completionRate: 40,   // % of viewers who finished
  ctaClickRate: 10,     // % who clicked CTA
  uniqueViewers: 5000,
  ageInDays: 90,
});
await setPerformanceScore(db, jobId, score);

Trigger sources

| Source | When used | | -------------------- | ------------------------------------------------------ | | cron | Daily/weekly Cloudflare Workers cron schedule | | git_tag | After a new release is deployed (product demos update) | | feedback_threshold | When PostHog engagement drops below SLO | | manual | API call from an operator |

License

Factory Core — internal use only.