KnowX Knowledge Base banner

KnowX Knowledge Base

A searchable knowledge base for EmDash: categories, article feedback, and a report of what readers search for.

View source
Public name@vapvarun.bsky.social/knowx

Or open Registry in your EmDash admin and search for this name.

Overview

KnowX turns an EmDash site into a help center. Visitors search for an answer, browse topics, and say whether an article helped. You see which searches find nothing and which articles get more No votes than Yes.

What you get

  • Help home. A search box and topic cards. When you have more than one top-level category, each card shows a name, a short description and an icon you pick.
  • Articles. Table of contents, copy-link on headings, copy on code, previous and next, last updated date, optional version badge.
  • Search. EmDash's own search, limited to the content types you tick. Instant results as you type, plus a results page. Each result says what kind of content it is.
  • FAQ. Its own page, with FAQ data for search engines.
  • Was this helpful. Yes or No on each article. After a No you can ask for a short comment.
  • Still need help. A contact button after an empty search and after a No vote. You set one link. Hidden when that setting is empty.
  • Insights and Searches. Weak articles by name, comments as plain text, top searches, searches that found nothing.
  • Dashboard card. Empty searches this week, and the least helpful article.

How it fits together

KnowX is the engine: routes, storage and the admin screens. An EmDash plugin cannot add pages to your site, so the public pages ship as a site kit you copy in once. See Installation.

Guests search, read, and vote when the host gives EmDash the visitor's address (Cloudflare, or trustedProxyHeaders). Elsewhere guests see a sign-in link to vote, and members vote as usual.

Screenshots

Permissions

Plugins get only the capabilities they declare and you approve. Your EmDash admin lists these again before anything installs.

  • Read content

    Read entries from your site’s content collections.

  • Read content structure

    Read the collections and fields defined on your site.

  • Read taxonomies

    Read taxonomy definitions, terms, and content assignments.

FAQ

Why is /docs/ a 404 after install? The plugin cannot create pages. Run the two kit lines from the Installation tab, then restart the dev server.

Votes or search log fail after a registry install? Copy the current site kit. Older kits called /plugins/knowx/ only. A registry install uses a generated id. The current kit tries that id, then the name.

Can guests vote and search? Search and reading, always. Voting, when the host gives EmDash the visitor's address (Cloudflare, or trustedProxyHeaders); elsewhere guests see a sign-in link and members vote.

Does search look through posts and pages? Only the content types you tick on Settings. Help articles are on by default. A type with search turned off in its collection will not return results.

Does it send email? No. The contact button is a link you set: a page, an http(s) address, or a mailto address.

Does it work in dark mode? Yes. The kit colours follow your site theme.

Is there a paid version? No. Everything here is free.

Can I put a search box inside an article? Not from the registry install. That needs a trusted install, and it is not part of this release.

Changelog

0.2.3

No new permission. Copy the kit again.

  • Fix - Members below admin see a plain "Only site admins" page, not a raw error.
  • Fix - The help home lists every article, ten at a time with More articles.
  • Fix - Search results go on past 20 with More results.
  • Fix - On a phone, On this page comes before the article.
  • Fix - Yes or No stays marked after a reload.
  • Fix - Copy link buttons name their heading.

0.2.2

No new permission. The site kit did not change.

  • Improve - The registry checks the site runs EmDash 1.2.0 or later before installing.
  • Fix - A single FAQ page no longer carries incomplete FAQ structured data.

0.2.1

After updating from 0.1.x, Insights shows its upgrade progress until it is done.

  • Fix - Insights no longer shows "None yet" while votes from 0.1.x are still being brought over.
  • Fix - A Yes or No click before the page script loads is kept and sent. Copy the kit again.

Older versions: https://github.com/wbcomdesigns/emdash-knowx/blob/main/CHANGELOG.md

To copy the kit for this version, from your site's root folder:

kit="$(mktemp -d)" &&
  git -c advice.detachedHead=false \
    clone --depth 1 --branch v0.2.3 \
    https://github.com/wbcomdesigns/emdash-knowx \
    "$kit/emdash-knowx" &&
  "$kit/emdash-knowx/scripts/add-to-site.sh" .

Installation

Before you install

1. Your site needs a sandbox runner. Registry plugins run in a sandbox. Until the site has one, Admin, Plugins shows "No plugins configured" and there is no Registry in the menu.

  • Node: in your site, run npm install @emdash-cms/sandbox-workerd workerd, then add sandboxRunner: "@emdash-cms/sandbox-workerd/sandbox", inside emdash({ ... }) in astro.config.mjs.
  • Cloudflare: add import { sandbox } from "@emdash-cms/cloudflare"; and sandboxRunner: sandbox(),. It needs the Workers Paid plan, the worker_loaders binding named LOADER (uncomment it in your Wrangler config) and an R2 bucket as storage: r2(...), or the install stops with "Storage error while installing plugin". Then run npm run deploy, and deploy again after every registry install or update (emdash-cms/emdash#4865).

Restart the dev server. Registry now shows in the admin menu.

2. The plugin is the engine. Visitor pages come from its site kit. A registry plugin cannot add pages to your site. Until you copy the kit, its addresses (for example /docs/) show your site's 404 page. That is expected. The kit copy below takes one command.

3. You need Node 22.16 or later for the npx emdash seed step.

Checked on EmDash 1.5 with the blog template, on Node and Cloudflare Workers.

Install

  1. Admin, Registry, search KnowX, Install, then accept the permissions.

  2. From your site's root folder:

    kit="$(mktemp -d)" &&
      git -c advice.detachedHead=false \
        clone --depth 1 --branch v0.2.3 \
        https://github.com/wbcomdesigns/emdash-knowx \
        "$kit/emdash-knowx" &&
      "$kit/emdash-knowx/scripts/add-to-site.sh" .
    
  3. Restart the dev server.

  4. In Admin, Menus, add /docs/ and /docs/faq/.

  5. Open KnowX, Insights, then add articles in Content, Help articles.

Run step 2 again after every update. Guide: https://github.com/wbcomdesigns/emdash-knowx/blob/v0.2.3/docs/website/getting-started/install.md

Keep exploring

More plugins like KnowX Knowledge Base

Browse by keyword, or see everything @vapvarun.bsky.social publishes.

Install on your site

Open in EmDash

KnowX Knowledge Base

@vapvarun.bsky.social/knowx

Choose the EmDash site where you want to review this plugin. Nothing is installed until you confirm its permissions in that site's admin.

This browser will remember the site. You can change it next time.