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

alap-gather

v1.0.1

Published

Drag-and-collect UI for Alap menus — build ad-hoc link collections

Readme

Alap Gather

Built on Alap (GitHub) — dynamic menus for links.

Drag menu items into a side tray to build ad-hoc collections from multiple Alap menus. Mix static config entries with live protocol feeds (:atproto:, etc.), organize into folders, then export or view in Lightbox/Lens.

Features

  • Grab from menus — pointer-drag any menu item sideways into the collection tray
  • External drops — drag regular links from the page (or other tabs) onto the tray
  • Folders — create, rename, reorder, and collapse folders; drag items between them
  • HighNotes — double-click a collected item (or drag it out of the tray) to materialize a floating card on the page, with pin/unpin, drag-to-reposition, collapse, and z-stacking
  • Lightbox / Lens — open the entire collection in Alap's lightbox or lens viewer
  • Export — copy as JSON config, Markdown (Obsidian-friendly with #tags), or Netscape bookmark HTML
  • Save / Import — full round-trip JSON with folder structure; drop a .json file onto the tray to import
  • Enrichment — external drops auto-enrich via client-side oEmbed (Vimeo, Spotify) with sanitized metadata
  • Persistence — collected items, folders, and HighNotes cards survive page reloads via localStorage

Quick start

pnpm install
pnpm dev

Open http://localhost:5173/ in a browser. This is currently a single-page demo with more examples to come.

Project structure

index.html        Demo page with static, dynamic, mixed, and external link sections
styles.css        Shared example theme

src/
  gather.ts       Main module: tray UI, drag interactions, export, import
  highnotes.ts    Floating cards materialized from collected items
  state.ts        Shared mutable state and localStorage persistence
  types.ts        CollectedItem, GatherFolder, HighNoteCard interfaces
  config.ts       Demo link library (bridges, coffee, landmarks, :atproto: feeds)
  meta-utils.ts   Metadata extraction, sanitization, oEmbed parsing
  gather.css      Tray, folders, drag ghost, drop zone styles
  highnotes.css   Floating card styles and z-index layering

tests/            137 tests across 4 files (vitest + happy-dom)

How it works

  1. AlapUI initializes menus from demoConfig (including :atproto: protocol feeds)
  2. pointerdown/pointermove on menu items detects a sideways drag past an 8px threshold
  3. On drop into the tray zone, the engine resolves the full ResolvedLink with tags, description, thumbnail, and metadata
  4. Items render in a folder-aware tray with drag-to-reorder between items and folders
  5. Double-click or drag-out materializes a HighNotes card (floating, draggable, z-stacked)
  6. Tag chips on HighNotes cards open a filtered lightbox scoped to that tag across all collected items

Relationship to Alap

Gather is a standalone application built on top of the Alap library. It imports AlapUI, AlapLightbox, AlapLens, and the engine/type system from the alap package. Gather owns the collection UX; Alap owns expression resolution, menu rendering, and viewer components.

License

Apache-2.0