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

beblob

v2.1.0

Published

This is an open-source widget allowing bloggers to insert comment section to their blogs hosted on GitLab Pages. The comments use GitLab issues underneath.

Downloads

220

Readme

BeBlob

A lightweight, open-source comment widget that adds GitLab-backed discussions to any website. No backend or database required.

Live Demo | npm | GitLab

Quick Start

1. Create a GitLab OAuth app — Go to GitLab > Settings > Applications. Set the redirect URI to your site URL, enable api and read_user scopes, and ensure "Confidential" is unchecked. Copy the Application ID.

2. Add the script and container to your page:

<script
  id="beblob-script"
  src="https://unpkg.com/[email protected]/dist/beblob.js"
  data-client-id="YOUR_GITLAB_APPLICATION_ID"
  data-redirect-uri="https://your-site.com/"
  data-project-name="your-gitlab-project"
  data-issue-mapping-strategy="pageTitle"
  data-dev-mode="false"
  data-beblob-version="1.6.0"
  data-theme="light"
></script>

<div id="beblob_thread"></div>

3. Done! Visitors can authenticate with GitLab and leave comments stored as GitLab issues.

How It Works

BeBlob uses GitLab OAuth (Authorization Code flow) to authenticate users. Comments are stored as notes on GitLab issues, with each page mapped to an issue. This means you get GitLab's built-in moderation, notifications, and markdown support for free.

Features

  • Markdown comments with live preview and syntax highlighting
  • Emoji reactions (thumbsup, thumbsdown, heart, tada, confused)
  • Four built-in themes — dark, white, light (default), classic — matching Hexo Cactus themes
  • Custom themes via CSS variables — override any color without touching source code
  • Mobile responsive — touch-friendly buttons, flexible layouts
  • XSS protection — all user content sanitized with DOMPurify
  • GitLab OAuth — secure authentication with proper token management
  • Zero backend — everything runs client-side with GitLab as the data store

Configuration Options

| Option | Required | Description | |--------|----------|-------------| | clientId | Yes | GitLab OAuth Application ID | | redirectUri | Yes | Your site URL (must match GitLab app setting) | | projectName | Yes | GitLab project name for storing issues | | issueMappingStrategy | Yes | How pages map to issues: url, pageTitle, or issueId | | issueId | Only with issueId strategy | Specific issue ID to use | | devMode | No | "true" loads assets locally; "false" (default) uses CDN | | beblobVersion | No | Version for CDN URLs (e.g., "1.6.0") | | theme | No | Built-in theme: dark, white, light (default), classic | | gitlabUrl | No | GitLab instance URL (default: https://gitlab.com). Use for self-managed GitLab. |

Themes

Built-in Themes

Set via data-theme attribute: dark, white, light, classic. These are designed to match Hexo Cactus theme color schemes.

Custom Themes

BeBlob uses CSS custom properties, so you can create your own theme by overriding variables:

.beblob-widget {
  --beblob-bg: #1a1a2e;
  --beblob-text: #e0e0e0;
  --beblob-accent: #e94560;
  --beblob-border: #e94560;
  --beblob-link: #ff6b81;
  --beblob-comment-bg: #16213e;
  --beblob-comment-border: #e94560;
  --beblob-button-bg: #16213e;
  --beblob-button-text: #e0e0e0;
  --beblob-button-border: #e94560;
  --beblob-button-hover-bg: #e94560;
  --beblob-tab-active-bg: #e94560;
  --beblob-tab-active-text: #fff;
  --beblob-editor-bg: #16213e;
  --beblob-editor-border: #e94560;
  --beblob-editor-text: #e0e0e0;
}

Available CSS variables:

| Variable | Purpose | |----------|---------| | --beblob-bg | Widget background | | --beblob-text | Primary text color | | --beblob-accent | Accent/highlight color | | --beblob-border | Default border color | | --beblob-link | Link color | | --beblob-comment-bg | Comment card background | | --beblob-comment-border | Comment card border | | --beblob-button-bg | Button background | | --beblob-button-text | Button text | | --beblob-button-border | Button border | | --beblob-button-hover-bg | Button hover background | | --beblob-tab-active-bg | Active tab background | | --beblob-tab-active-text | Active tab text | | --beblob-reaction-bg | Reaction button background | | --beblob-popup-bg | Reaction popup background | | --beblob-editor-bg | Markdown editor background | | --beblob-editor-border | Editor border | | --beblob-editor-text | Editor text | | --beblob-font-family | Font stack | | --beblob-radius | Border radius |

Mobile Support

BeBlob is mobile-friendly out of the box:

  • Touch-friendly button sizes (44px minimum tap targets)
  • Responsive comment layout that stacks on narrow screens
  • Full-width action buttons on mobile
  • Horizontal-scrolling editor toolbar

Ensure your page includes the viewport meta tag:

<meta name="viewport" content="width=device-width, initial-scale=1">

Hexo / Cactus Integration

Add to your _config.yml:

beblob:
  enabled: true
  client_id: "<your-gitlab-application-id>"
  redirect_uri: "https://yourwebsite.com"
  project_name: "<your-gitlab-project-name>"
  issue_mapping_strategy: "pageTitle"
  version: "1.6.0"
  theme: "light"

Example comments.ejs:

<% if (page.comments && config.beblob.enabled) { %>
  <div class="blog-post-comments">
    <div id="beblob_thread">
      <noscript>Please enable JavaScript to view comments.</noscript>
    </div>
    <% if (config.beblob.dev_mode) { %>
      <script id="beblob-script" src="/js/beblob.js"
              data-client-id="<%= config.beblob.client_id %>"
              data-redirect-uri="<%= config.beblob.redirect_uri %>"
              data-project-name="<%= config.beblob.project_name %>"
              data-issue-mapping-strategy="<%= config.beblob.issue_mapping_strategy %>"
              data-dev-mode="true"
              data-beblob-version="<%= config.beblob.version %>"
              data-theme="<%= config.beblob.theme %>"
              defer>
      </script>
    <% } else { %>
      <script id="beblob-script" src="https://unpkg.com/beblob@<%= config.beblob.version %>/dist/beblob.js"
              data-client-id="<%= config.beblob.client_id %>"
              data-redirect-uri="<%= config.beblob.redirect_uri %>"
              data-project-name="<%= config.beblob.project_name %>"
              data-issue-mapping-strategy="<%= config.beblob.issue_mapping_strategy %>"
              data-dev-mode="false"
              data-beblob-version="<%= config.beblob.version %>"
              data-theme="<%= config.beblob.theme %>"
              defer>
      </script>
    <% } %>
  </div>
<% } %>

For a working example, see antonbelev.gitlab.io.

Sites Using BeBlob

Inspiration

BeBlob was inspired by giscus and utterances — similar tools for GitHub. This project brings the same experience to GitLab.

Roadmap

  • [ ] Comment management (edit, delete, moderate)
  • [ ] Configurable reactions (opt-in/out)
  • [x] Multiple themes and customizable UI
  • [x] CSS custom properties for custom themes
  • [x] Mobile responsive design
  • [ ] Hexo plugin for direct integration
  • [ ] Threaded/nested replies

Support

Found a bug or have a feature request? Open an issue.

License

MIT — see LICENSE for details.