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

@elite-dangerous-plugin-framework/journal

v0.20260214.1

Published

Autogenerated Elite: Dangerous Journal Event definitions as TypeScript Types

Readme

edpf-journal

This module contains autogenerated Type definitions for the Elite: Dangerous Journal. This uses https://jixxed.github.io/ed-journal-schemas/ as its source of Schemas.

Besides the Type definitions, this module contains 2 helper functions which will parse the Journal Entry with either BigInts or regular IEEE 754 64-bit floats for integers.

Installation

npm install @elite-dangerous-plugin-framework/journal
pnpm install @elite-dangerous-plugin-framework/journal
bun install @elite-dangerous-plugin-framework/journal
# or your preferred package manager

Usage

import {
  parseWithBigInt,
  parseWithLossyIntegers,
} from "@elite-dangerous-plugin-framework/journal";
// if you need type tree-shaking, you can directly import the events individually using their default export.
// This works for regular and "bi" (bigint) event variant.
import type SendText from "@elite-dangerous-plugin-framework/journal/events/SendText";
import type SendTextBI from "@elite-dangerous-plugin-framework/journal/events/bi/SendText";

const input = `
{ "timestamp":"2026-02-01T01:08:59Z", "event":"RefuelAll", "Cost":79, "Amount":1.557032 }
{ "timestamp":"2026-02-01T01:08:59Z", "event":"RepairAll", "Cost":23485 }
{ "timestamp":"2026-02-01T01:09:12Z", "event":"Market", "MarketID":3701213952, "StationName":"V8V-86F", "StationType":"FleetCarrier", "CarrierDockingAccess":"all", "StarSystem":"Lysoorb NH-M d7-26" }
{ "timestamp":"2026-02-01T01:12:50Z", "event":"Music", "MusicTrack":"SystemMap" }
{ "timestamp":"2026-02-01T01:13:40Z", "event":"Music", "MusicTrack":"Exploration" }
{ "timestamp":"2026-02-01T01:13:42Z", "event":"Music", "MusicTrack":"GalaxyMap" }
{ "timestamp":"2026-02-01T01:14:05Z", "event":"Music", "MusicTrack":"Exploration" }
{ "timestamp":"2026-02-01T01:14:19Z", "event":"Shutdown" }
`
  .split("\n")
  .map((e) => e.trim())
  // removing empty lines
  .filter(Boolean)

// All non-float numbers are converted to BigInts. Use this if
// you rely on IDs, as the regular number type is not precise enough
const parsedWithBigIntSupport = input.map((e) => parseWithBigInt(e)).forEach(e => {
    switch(e.event) {
        // parseWithBigInt / parseWithLossyIntegers returns a JournalEvent_BI / JournalEvent
        // it's event property can be switched on, which will give you strong typing for the relevant event.
        case "WingJoin": ...
        case "WingLeave": ...
        case "WingAdd": ...
        case ...
        ...
    }
})
const parsedWithRegularNumbers = input.map((e) => parseWithLossyIntegers(e));

function someFunctionThatWantsAMessageSent(msg: SendText | SendTextBI) {
  console.log(
    `You wrote in channel ${msg.To} at ${msg.timestamp}: ${msg.Message} `,
  );
}

JournalEvent and JournalEvent_BI combine all events into one. It is essentially a huge Type union. All events have two shared properties: timestamp and event. You can filter on the event field to expose the other properties. Example image showing strong typing Second example detailling that you do get the event's structure

BigInt Handling

If you are using the _BI events and need to pass them to another consumer, you can make sure of stringifyBigIntJSON function on the default export.

import { stringifyBigIntJSON } from "@elite-dangerous-plugin-framework/journal";

const value = {
  hello: "world",
  someFloat: 42.3,
  someBigInt: 123n,
};

console.log(stringifyBigIntJSON(value));
//  {
//    "hello": "world",
//    "someFloat": 42.3,
//    "someBigInt": 123
//  }
//  (without minification)

Importing events

The default import contains all names events, both "simple" events and big-int events. Alternatively, the following imports are scoped to either simple or bigint events:

  • @elite-dangerous-plugin-framework/journal/generated/events
  • @elite-dangerous-plugin-framework/journal/generated/events.bi
import { type UndockedEvent_BI } from "@elite-dangerous-plugin-framework/journal/generated/events.bi";
import { type UndockedEvent } from "@elite-dangerous-plugin-framework/journal/generated/events";
// or
import {
  type UndockedEvent_BI,
  type UndockedEvent,
} from "@elite-dangerous-plugin-framework/journal";

function doSomethingWithUndockedEvent(ev: UndockedEvent_BI | UndockedEvent) {
  // ...
}

Versioning

Other than the other packages that reside in the @elite-dangerous-plugin-framework namespace, this package uses calendar-versioning.

The Version has the format 0.YYYYMMDD.X where X is a counter starting at 0 for that specific day in UTC time.

Contributing

Are some journal items incorrect? Then please contribute upstream. Else, PRs are always welcome.

If you have any questions, please don't hesitate to get into contact. Do note you will get a quicker response by contacting via Discord. Ping wdx in the EDCD Discord for support.