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

@jitaspace/tiptap-eve

v0.1.6

Published

TipTap editor for EVE Online

Downloads

875

Readme

@jitaspace/tiptap-eve

npm version npm downloads license

Tiptap rich-text editor configured for EVE Online in-game HTML — EVE mails, corporation bulletins, and similar formatted content.

Installation

npm install @jitaspace/tiptap-eve
# or
pnpm add @jitaspace/tiptap-eve

Requires react as a peer dependency.

Overview

EVE Online uses a non-standard subset of HTML for rich text (bold, italic, underline, font color, hyperlinks with showinfo: and other custom protocols). This package provides:

  • useEveEditor — a React hook wrapping Tiptap's useEditor, pre-configured with all EVE-compatible extensions
  • EveLink / EveFontColor — individual Tiptap extensions for EVE link protocols and <font color> tags
  • htmlToEveMail — serializes Tiptap's HTML output back to EVE's wire format
  • Parsing utilities — convert EVE's raw format to standard HTML before loading into the editor

Usage

Basic editor

import { useEveEditor } from "@jitaspace/tiptap-eve";

function EveMailComposer({ content }: { content: string }) {
  const editor = useEveEditor({ content });
  // Pass `editor` to any Tiptap-compatible UI, e.g. @mantine/tiptap or tiptap-react-ui
  return <YourRichTextEditor editor={editor} />;
}

Parsing EVE mail body for display

EVE mail bodies need a few transformations before Tiptap can parse them:

import {
  convertEveMailLineBreaks,
  convertEveColorTags,
  convertEveUrlTags,
} from "@jitaspace/tiptap-eve";

const html = convertEveUrlTags(
  convertEveColorTags(
    convertEveMailLineBreaks(eveMailBody)
  )
);

const editor = useEveEditor({ content: html });

Serializing back to EVE format

import { htmlToEveMail } from "@jitaspace/tiptap-eve";

const eveBody = htmlToEveMail(editor.getHTML());
// Send `eveBody` to the ESI mail endpoint

Rendering EVE hrefs as app routes

import { renderEveHref } from "@jitaspace/tiptap-eve";

// "showinfo:5//30000142" → "/system/30000142"
// "warReport:123"        → "/war/123"
const appHref = renderEveHref(href);

API

useEveEditor(options, deps?)

A thin wrapper around Tiptap's useEditor with EVE extensions pre-loaded:

| Extension | Purpose | |---|---| | StarterKit | Core editing (bold, italic, lists, etc.) | | HardBreak | Maps Enter to <br> (EVE uses \r\n, not <p>) | | TextStyle | Base for font color marks | | Underline | <u> support | | EveLink | EVE custom link protocols (showinfo:, warReport:, etc.) | | EveFontColor | EVE <font color="0xAARRGGBB"> tags |

htmlToEveMail(html)

Converts Tiptap's HTML output to EVE's wire format. Maps <p>\r\n, <a href><url=…>, <span color><color=…>, etc.

convertEveMailLineBreaks(body) / convertEveColorTags(body) / convertEveUrlTags(body)

Pre-processing utilities to normalize EVE mail HTML into standard HTML that Tiptap can parse.

sanitizeFormattedEveString(str)

Handles EVE's legacy Python unicode string format (u'...') and unicode escape sequences.

renderEveHref(href)

Maps EVE's custom showinfo:, warReport:, killReport:, recruitmentAd:, and contract: link schemes to application routes.

fromEveColor(eveColor)

Converts EVE's 0xAARRGGBB color format to a CSS #RRGGBB hex string.

Dependencies

License

MIT