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

@pressmark/astro

v0.2.2

Published

Astro components and layouts for the Pressmark editorial design system.

Readme

@pressmark/astro

Astro components and layouts that render the @pressmark/theme classes. Drop them into any Astro v5+ project.

Install

npm install @pressmark/astro @pressmark/theme tailwindcss

@pressmark/theme is declared as a peer dependency: install it alongside this package. (The theme is published separately so non-Astro consumers can use it standalone — see @pressmark/theme.)

In your Tailwind v4 entry CSS, import the theme and tell Tailwind to scan this package's components so the .badge, .card, .nav-item, .panel-label, .section-label, and .prose-pressmark utilities get emitted:

@import "tailwindcss";
@import "@pressmark/theme";

@source "../../node_modules/@pressmark/astro/src/**/*.astro";

(Adjust the relative path to match where your entry CSS lives. From apps/<project>/src/styles/main.css, two levels up reaches node_modules/.)

Use

---
import { BaseLayout, Sidebar, Button, Card } from "@pressmark/astro";

const items = [
  { href: "/", label: "Home" },
  { href: "/notes", label: "Notes" },
  { href: "/about", label: "About" },
];
---

<BaseLayout title="Hello">
  <Sidebar slot="sidebar" brand="/yourname." items={items} currentPath={Astro.url.pathname} />

  <main class="ml-[260px] px-12 py-10">
    <Card>
      <h2>A note</h2>
      <Button variant="primary">Read</Button>
    </Card>
  </main>
</BaseLayout>

Components

  • Buttonvariant?: "primary" | "secondary" | "link", as?: "button" | "a", href?. Compose with class="btn-sm" for a 32 px height variant.
  • Badgevariant?: "default" | "mono"
  • Card — slotted surface
  • NavItemhref, active?, icon slot + default slot
  • PanelLabel — tiny mono caption
  • SectionLabel — accent display heading
  • Hairline — single-pixel divider
  • Prose — long-form article wrapper, dropcap?: boolean
  • Checkbox — styled checkbox input
  • Progressvalue: number (0–100)

Layouts

  • BaseLayout<html> shell with font links and two named slots: sidebar and the default slot for main content. No baked-in chrome.
  • Sidebar — Editorial-style fixed left sidebar. Takes items: SidebarItem[], optional brand, and a default slot for extras (search, theme toggle, image, quote, etc.). SidebarItem shape: { href, label, icon? }, where icon is raw SVG inner content (paths/rects/circles).

Content collections

// src/content/config.ts
import { defineCollection } from "astro:content";
import { postSchema } from "@pressmark/astro/content/schema";

export const collections = {
  posts: defineCollection({ type: "content", schema: postSchema }),
};

License

MIT