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

bearblog

v0.1.0

Published

CLI that syncs a directory of markdown files to Bear Blog

Readme

bearblog

CLI that syncs a directory of markdown files to Bear Blog. The local directory IS your blog — bearblog sync creates, updates, and deletes posts to match local state.

Install

npm install -g bearblog

Or run ad-hoc with npx bearblog.

Quick start

cd ~/my-blog
bearblog init            # prompts for email, password, subdomain
echo "# Hello" > hello.md
bearblog sync            # pushes hello.md to your blog

Commands

bearblog init — interactive setup. Creates .bear.json, .bear-password, .bear-session.json, and updates .gitignore. Run once per blog directory.

bearblog sync — make the remote blog match the local directory:

  • Local .md files not yet synced → created
  • Local .md files already synced → updated
  • Files that were synced but no longer exist locally → deleted remotely

Add --dry-run to preview actions without making changes.

Post format

Markdown with YAML frontmatter:

---
title: My Post
slug: my-post
tags: tag1, tag2
published: true
---

Markdown body.
  • title — post title (defaults to filename without .md)
  • slug — URL slug (maps to Bear Blog's link field)
  • tags — comma-separated string or YAML array
  • publishedtrue (default) or false (draft)
  • Any other keys pass through to Bear Blog's header (e.g. canonical_url, meta_description, is_page)

Files

| File | Contents | Git | |---|---|---| | .bear.json | email + subdomain | commit | | .bear-password | plaintext password | gitignore | | .bear-sync.json | filename → post ID map | commit | | .bear-session.json | Bear Blog session cookies | gitignore |

bearblog init writes all four and appends the gitignored files to .gitignore.

Ownership

bearblog sync only touches posts it created. Posts made via Bear Blog's web UI or by other tools are never updated, never deleted, never read. The sync map (.bear-sync.json) is the ownership record: if a remote post ID isn't in the map, it's not ours.

How it works

Bear Blog has no API. This CLI authenticates via Django's login form, scrapes CSRF tokens, and submits posts as form data — like a browser would. Session cookies are cached so you don't re-login every run.

License

MIT