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

@dateline/core

v0.3.0

Published

Foundational sandboxed EmDash plugin for Dateline: events, venues, organizers, calendar feeds (JSON + iCal), schema.org JSON-LD, and Block Kit admin.

Readme

@dateline/core

The foundational sandboxed plugin for Dateline. Defines the canonical event content type (dateline_events), manages venues and organizers, provides calendar feeds (JSON + iCal), generates schema.org JSON-LD for search engines, and exposes Block Kit admin UIs. All other Dateline packages build on this core.

Install

pnpm add @dateline/core emdash@^0.18.0

Peer dependencies

  • emdash@^0.18.0 — EmDash CMS runtime

Capabilities required

This sandboxed plugin declares these capabilities:

  • content:read — fetch events, venues, organizers
  • content:write — create, update, delete events and metadata

Sandboxed?

✅ Yes. Runs in Cloudflare Workers Dynamic Worker sandbox (Paid plan required; Free plan runs as trusted).

Budget: 50ms CPU + 10 subrequests per invocation. Core handlers stay well under this by using fast KV caches and edge-cached feeds.

Usage

import datelineCorePlugin from "@dateline/core/sandbox";

export default {
  sandboxed: [datelineCorePlugin],
};

The package root exposes utility helpers such as adminHandlers, calendarFeed, iCalFeed, and eventToJsonLd for tests and build-time integrations. The sandboxed plugin descriptor is the default export from @dateline/core/sandbox.

Routes

Core exposes these routes at /_emdash/api/plugins/dateline-core/{route}:

  • calendar-feed — JSON list of events (supports filtering by date range)
  • ical — iCalendar feed (consumable by any calendar app)
  • admin/events, admin/venues, admin/organizers, admin/settings — Block Kit admin UIs
  • privacy/export, privacy/erase — GDPR compliance helpers

Collections

Core defines the canonical collections via seed migrations:

  • dateline_events — events with title, description, time, location, capacity, organizer refs
  • dateline_venues — physical locations with address, geo, capacity
  • dateline_organizers — event organizers with contact info and bio

All stored in UTC; display times are computed per viewer's IANA timezone.

Key gotchas

Timezone trap: All datetime fields are stored UTC. The event's declared timezone (e.g., "America/Los_Angeles") is used only for display and RRULE computations. Time math is always UTC-first.

GDPR compliance: When an event or attendee is deleted, content:beforeDelete and content:afterDelete hooks trigger. Core implements /privacy/export and /privacy/erase routes. If you integrate other Dateline plugins, ensure they handle deletions gracefully.

Schema.org SEO: Event detail pages auto-generate JSON-LD markup. Ensure featuredImage and organizers are populated for best search visibility.

See also