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

@opentechevents/export-ics

v0.1.0

Published

Converts an OTE Feed into an iCalendar (.ics) document

Readme

@opentechevents/export-ics

Converts a valid OTE Feed (v0.2) into an iCalendar document (RFC 5545).

import { feedToIcs } from "@opentechevents/export-ics";

const ics = feedToIcs(feed); // string, ready to serve as text/calendar

feedToIcs is a pure function: no network, no filesystem, no clock. Output is deterministic — the same feed always produces byte-identical ICS. It assumes the feed is valid; validate first with @opentechevents/validate.

CLI

ote-export-ics <feed.json> [output.ics]

Reads the feed, validates it, writes the ICS to output.ics (or stdout when omitted). Exit codes: 0 exported · 1 invalid JSON or invalid feed · 2 usage or I/O error.

Mapping (OTE v0.2 → VEVENT)

| OTE | iCal | | --- | --- | | id | UID | | name | SUMMARY | | description | DESCRIPTION | | startDate / endDate + timezone | DTSTART / DTEND (see below) | | url (else location.onlineUrl) | URL | | location.venue | LOCATION | | location.geo | GEO | | tags | CATEGORIES | | status | STATUS (scheduledCONFIRMED, cancelledCANCELLED, postponed/rescheduledTENTATIVE) | | updatedAt | LAST-MODIFIED | | feed updatedAt | DTSTAMP on every VEVENT (keeps the function pure) | | feed title / description | X-WR-CALNAME / X-WR-CALDESC |

Decisions worth knowing:

  • Dates. Timed events emit wall-clock values with TZID=<IANA zone> (UTC uses the Z form). No VTIMEZONE is emitted: generating one requires a timezone database, and mainstream clients resolve IANA TZIDs on their own.
  • All-day events use VALUE=DATE. OTE endDate is inclusive; iCal DTEND is exclusive, so the export adds one day. Without endDate, DTEND is omitted (RFC default: one day).
  • Hybrid events. url and location.onlineUrl both map to URL; the canonical page wins and the attend link is appended to DESCRIPTION as Online: <url> so it is never lost.
  • Dropped, not approximated: attendanceMode, languages, license, source have no iCal equivalent and are omitted. Absent fields stay absent (e.g. no STATUS is invented when status is missing).