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

local-bookmark-dash

v1.0.8

Published

Local web service for showing bookmarks

Downloads

40

Readme

Dashboard

Local web service to show bookmarks

Live demo: https://afrontend.github.io/dashboard/

How to run

npx (recommended)

Run instantly without installing:

npx local-bookmark-dash

On first run, json/dashboard.json is created automatically in the current directory. Edit json/dashboard.json to add your bookmarks.

Open http://localhost:1234 in your browser.

To use an existing JSON file, specify the path with --config:

npx local-bookmark-dash --config ./my-bookmarks.json
npx local-bookmark-dash --config /home/user/bookmarks.json

Local file mode

Loads bookmarks from a local JSON file.

git clone https://github.com/afrontend/dashboard.git
cd dashboard
npm install
mkdir -p json
echo '{"urls":[{"emoji":"🍑","label":"Google","url":"https://google.com"}]}' > json/dashboard.json
npm run serve

Docker

Run the local file mode in a Docker container. The container automatically sets up dependencies and creates a default bookmark JSON file.

Build locally

Build the image:

docker build -t dashboard .

Run the container:

# Basic usage (uses default bookmarks: Google, GitHub)
# Without a volume mount, the container uses the default json/dashboard.json created during build
docker run -p 1234:1234 dashboard

# With custom bookmarks (mount local json file)
docker run -p 1234:1234 -v $(pwd)/json:/app/json dashboard

# Run in background
docker run -d -p 1234:1234 --name dashboard dashboard

Then open http://localhost:1234 in your browser.

Use pre-built image from GHCR

Docker images are automatically built and published to GitHub Container Registry on every push to main and for tagged releases.

Pull and run the latest image:

docker run -p 1234:1234 ghcr.io/afrontend/dashboard:latest

Use a specific version:

docker run -p 1234:1234 ghcr.io/afrontend/dashboard:v1.0.2

With custom bookmarks:

docker run -p 1234:1234 -v $(pwd)/json:/app/json ghcr.io/afrontend/dashboard:latest

Custom bookmarks

Create a json/dashboard.json file:

{
  "urls": [
    { "emoji": "🍑", "label": "Google", "url": "https://google.com" },
    { "emoji": "📚", "label": "GitHub", "url": "https://github.com" }
  ]
}

Then mount it when running:

docker run -p 1234:1234 -v $(pwd)/json:/app/json dashboard

Setup and Automation

This repository uses GitHub Actions for automatic Docker image building and publishing to GHCR.

How it works:

  • Every push to main automatically builds and publishes a latest image
  • Every git tag (e.g., v1.0.0) automatically creates a versioned image
  • Pull requests trigger a build test (without publishing)

Check build status:

  1. Go to GitHub Actions to monitor automated builds
  2. After the first successful build, make the package public (optional):
    • Go to your package settings on GitHub
    • Set visibility to "Public" for public access
  3. Release a new version:
    npm run release
    This bumps the patch version in package.json, creates a git commit and tag, and pushes everything to origin. GitHub Actions will automatically build and publish the new image to GHCR.

Editor mode

Edit bookmark JSON directly in a CodeMirror editor with live preview. Deployable to GitHub Pages.

npm run serve:editor

No backend required — your data lives in the URL. When you click Save (💾), the entire bookmark dataset is encoded into the page URL. Bookmark that URL or share it, and you get your full dashboard back anywhere — no database, no account, no server-side storage.

Commands

npm run serve          # Local file mode development server
npm run serve:editor   # Editor mode development server
npm run dev            # Build then serve (local file mode)
npm run build          # Production build (editor mode) to dist/
npm run build:npm      # Production build for npm publish (bundles React, no source maps)
npm run watch          # Watch mode without serving
npm run typecheck      # Run TypeScript type checking
npm run lint           # Run ESLint
npm run lint:fix       # Auto-fix ESLint issues
npm run test           # Run unit tests
npm run test:smoke     # Run smoke test against local build
npm run deploy         # Deploy editor mode to GitHub Pages

Publishing to npm

# 1. Bump version
npm version patch   # or minor / major

# 2. Build for npm
npm run build:npm

# 3. Smoke test — verify the build artifact actually works
npm run test:smoke

# 4. Publish
npm publish

Smoke test checklist

npm run test:smoke verifies the following before publish:

  • Server starts correctly (HTTP 200)
  • local.html and the JS bundle are served correctly
  • React is bundled (no bare specifiers — prevents blank screen in browser)
  • json/dashboard.json is auto-created
  • JSON file is served over HTTP

Bookmark data format

{
  "urls": [
    { "emoji": "🍑", "label": "Google", "url": "https://google.com" },
    { "emoji": "🌤", "label": "Daily", "url": "" }
  ]
}

Each bookmark has optional emoji, label, and url fields. Entries without a url are displayed as plain text.

Keyboard shortcuts

  • S — Open search filter
  • Escape — Close search filter

Editor mode features

  • Editor toggle — iOS-style toggle switch to show/hide the CodeMirror editor
  • Import (📂) — Load bookmarks from a JSON file
  • Export (↧) — Download bookmarks as a JSON file
  • Save (💾) — Encodes the entire bookmark dataset into the URL. The URL becomes your storage: bookmark it in your browser or share it to restore the full dashboard anywhere, with no backend needed.
  • Clear (✕) — Resets to default state

Architecture

Development server

The app uses a custom Node.js HTTP server (server.js) that:

  • Serves JSON files (.json) directly from the filesystem
  • Proxies all other requests to Parcel (on port 1235)

This approach bypasses Parcel's SPA routing for static JSON files while maintaining full support for hot reloading and bundling.

Entry points

  • Local file mode (local.htmlsrc/local.tsx) — Loads bookmarks from json/dashboard.json
  • Editor mode (index.htmlsrc/index.tsx) — Editable bookmarks with CodeMirror, deployable to GitHub Pages

Tech stack

  • React 18 with TypeScript
  • Parcel 2.8 — Bundler and dev server
  • CodeMirror — JSON editor with syntax highlighting and validation
  • Pico CSS + Tailwind CSS — Styling
  • GitHub Pages — Deployment via gh-pages
  • GitHub Actions — Automated Docker image building to GHCR

Project structure

.
├── src/                          # React application code
│   ├── index.tsx                # Editor mode entry point
│   └── local.tsx                # Local file mode entry point
├── components/                   # React components
│   ├── EditorApp.tsx            # Editor mode app
│   ├── LocalApp.tsx             # Local file mode app
│   ├── BookmarksInFile.tsx      # Loads bookmarks from JSON file
│   ├── BookmarksInURL.tsx       # CodeMirror JSON editor
│   ├── SearchableBookmarkList.tsx
│   ├── BookmarkJsonData.tsx     # Bookmark rendering
│   └── ErrorBoundary.tsx        # Error handling
├── hooks/                        # Custom React hooks
│   └── useEditorVisible.tsx     # Visibility toggle state
├── js/                           # Utilities
│   └── utils.ts                 # JSON parsing and validation
├── json/                         # Bookmark data directory (local development)
├── server.js                     # Custom HTTP server (dev mode)
├── Dockerfile                    # Docker image definition
├── index.html                    # Editor mode HTML template
├── local.html                    # Local file mode HTML template
└── package.json                  # Project dependencies and scripts