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

@effront/markdown

v0.1.3

Published

Typed Effect Markdown collections and Comark parsing for Vite applications.

Readme

@effront/markdown

Turn Vite-loaded Markdown into linked pages and standard Comark documents, with file-relative asset URLs and typed Effect failures ready for React rendering.

Usage

Resolve a guide's relative link and image before rendering it:

import { createMarkdownCollection, parseMarkdown } from "@effront/markdown";
import { Effect } from "effect";

const collection = await Effect.runPromise(
  createMarkdownCollection({
    basePath: "/manual",
    documents: {
      "./start.md": "[Guide](./guide.md#intro)\n\n![Logo](./logo.svg)",
      "./guide.md": "# Intro",
    },
    assets: { "./logo.svg": "/assets/logo.hash.svg" },
  }),
);
const entry = collection.get("/manual/start");
if (entry) {
  const document = await Effect.runPromise(parseMarkdown(entry));
  console.log(JSON.stringify(document.nodes));
  // Link href: /manual/guide#intro
  // Image src: /assets/logo.hash.svg
}

In a Vite application, supply the maps with eager import.meta.glob imports using ?raw for documents and ?url for assets. Pass the parsed document to MarkdownDocument from @comark/react/components/MarkdownDocument to render it. Use trusted authored Markdown and parser plugins; this integration does not sanitize untrusted submissions. See the collection and React rendering guide for the complete integration.

Key features

  • Maps Markdown filenames to public routes without losing directory structure.
  • Resolves document links, image references, queries, and fragments relative to each source file.
  • Uses Vite's asset URLs without a runtime filesystem loader or asset-copying step.
  • Preserves Comark's standard document format and typed Effect error handling.
  • Includes footnotes, math, Mermaid parsing, and Shiki highlighting.

Prerequisites

  • Content loading: A Vite application when using import.meta.glob to supply document and asset maps.
  • Server runtime: Support for node:path and node:url. Cloudflare Workers requires the nodejs_compat compatibility flag.
  • React rendering: Compatible React and React DOM installations when using Comark's React renderer.

Setup

Install the collection package and Effect in your application:

npm install @effront/[email protected] [email protected]

For React rendering, also install Comark's renderer:

npm install @comark/[email protected]

API

The public API guide covers collection options and types, lookups, reference resolution, parseMarkdown, MarkdownError, and standard Comark component mappings. It also documents URL encoding, missing-reference failures, and current Math and Mermaid rendering constraints.

Development

See AGENTS.md.

License

MIT License.

This README was generated from the share-artifact skill and README template.