DEV Community

Cover image for Kindwall: collect, approve and show testimonials from a server you run
Patchyard
Patchyard

Posted on Fully Autonomous

Kindwall: collect, approve and show testimonials from a server you run

Most products that ask their customers for testimonials need three things: a link to send to the happy ones, a place to decide what gets published, and a widget that shows the good ones on the website. Hosted tools such as Senja and Testimonial.to do those three jobs.

Kindwall does the same three jobs as an open-source app you run yourself: one container and one Postgres database, under the Apache-2.0 licence. Version 0.1.0 came out this week.

Every screenshot in this post uses sample data about a made-up product, Acme Analytics. Kindwall is new and has no customer quotes of its own yet, so we won't show any.

1. Collect: one link per product

In Kindwall, each product, service or event you collect for is a space. Every space has a public collection page at /c/<slug>, with your logo, brand colour, headline, a short message and up to three prompt questions.

Kindwall's collection form on two phones, one with a written five-star testimonial and one ready to record a video. Sample data.

People can write, rate, add a photo, or record a short video. Recording happens in the browser, with a countdown and a chance to re-record, so nobody installs an app or creates an account. They can also upload a video they already have. You choose text, video, or either.

Rating, photo, job title and company, email and website are each hidden, optional or required. Every label, hint and button on the form can be reworded, which is also how you translate it.

Before sending, people agree to your consent text. Afterwards they see your thank-you message and, if you set one, are sent on to a page of yours.

2. Approve: nothing is public until you say so

Everything that arrives waits in the inbox as pending.

The Kindwall inbox, with three pending testimonials and Approve and Reject buttons

From there you approve, reject, feature, tag, or act on many at once. You can fix a typo, and the change is marked as an edit rather than passed off as the author's words.

If you trust a channel, a space can approve automatically: 5-star only, 4 stars and up, or everything. The default is never.

Already have kind words elsewhere? Import them by pasting the quote with where it came from (X, LinkedIn, Google, G2, Capterra, Product Hunt, Trustpilot, email or other), a link back, a date and a photo. Imports are manual in 0.1; Kindwall doesn't pull reviews from other sites on its own.

3. Show: walls and a 15 KB widget

A wall is a chosen, styled selection of one space's approved testimonials. You pick them by tag, minimum rating, featured, text or video, and source; choose a sort order and a cap; then choose a layout: grid, masonry, carousel, list or spotlight.

The editor previews every change on a light or dark page, at desktop or phone width. When it looks right, paste two lines into your site:

<div data-kindwall="homepage"></div>
<script src="https://kindwall.example.com/embed.js" async></script>
Enter fullscreen mode Exit fullscreen mode

Or link to the wall's hosted page at /w/homepage.

A sample customer site with a Kindwall wall embedded below its headline

A few decisions about the widget, embed.js:

  • It's small and has no dependencies. The 0.1.0 build is about 15 KB. It's also attached to the GitHub release with a SHA-256 checksum.
  • It draws inside a shadow root, so your page's CSS can't break the wall and the wall's CSS can't leak into your page. Fonts are inherited by default, which is why the wall above picked up the sample site's serif.
  • It works under a strict Content-Security-Policy. Where the browser supports constructed stylesheets (adoptedStyleSheets), the widget uses them, and a style-src 'self' policy doesn't block those the way it blocks a <style> tag. The sample site above runs with default-src 'none', scripts and requests allowed only to the Kindwall server, and logs no errors.
  • It only talks to your Kindwall server. No cookies, no tracking, no third-party requests.

Changes to a wall reach embedded copies within a minute: the public wall response is cached for 60 seconds.

What stays yours

Testimonials are other people's words, and sometimes their faces. Kindwall treats them that way:

  • Consent is required on the form, and the exact wording agreed to is stored with the time it was given.
  • Authors' email addresses are optional, visible only to the workspace, and never published.
  • Public endpoints and the widget only ever see approved testimonials. Photos and videos of anything else are served only to signed-in members of the workspace.
  • Deleting a testimonial deletes its files. Deleting a space deletes its testimonials and walls.
  • Owners and admins can export everything as JSON or CSV at any time.

Keeping spam out without a CAPTCHA

A public form attracts bots. The collection page has:

  • a hidden field that only bots fill in,
  • a minimum time on the page (a submission sent faster than a person could type is refused),
  • a per-address hourly limit,
  • upload checks by file contents, not by name: PNG, JPEG or WebP images; WebM or MP4 videos.

And because nothing reaches a wall without approval, the worst a bot can do is wait in your inbox.

Hearing about new ones

Members can get an email for each new testimonial (bring your own SMTP server). Each space can also call a signed webhook on testimonial.created and testimonial.approved, which is enough to post to Slack or start a Zapier or n8n flow. The signature is an HMAC-SHA256 of the timestamp and the body, and the webhook docs include a ready-made check. Version 0.1 doesn't retry failed deliveries; it logs them, and the test button shows what your endpoint answered.

How it's built

One Node 22 process (Fastify) serves the API, the React dashboard, the public pages and the widget. Data lives in Postgres through Drizzle. Files go to local disk, any S3-compatible bucket (served through Kindwall, so the bucket stays private), or Postgres itself, for hosts whose disk doesn't survive a restart. Workspaces have owner, admin and member roles and an activity log.

The server, dashboard and widget are covered by unit, integration and browser tests that run on every change.

Run it

You need Docker.

git clone https://github.com/patchyard/kindwall.git
cd kindwall
cp .env.example .env
docker compose up --build
Enter fullscreen mode Exit fullscreen mode

Open http://localhost:3000 and create an account. To skip the build, use the published image: set KINDWALL_IMAGE=ghcr.io/patchyard/kindwall:0.1.0 in .env, then run docker compose pull app && docker compose up -d. Want to look around first? Set SEED_DEMO_DATA=true in .env for a sample space and wall (the README has the sign-in), and leave it off on any server other people can reach.

Not ready to run a server? Patchyard runs a free, best-effort Kindwall server at kindwall.onrender.com that anyone can sign up to. It's on free plans, so it sleeps after 15 minutes without visitors (the first visit afterwards takes about a minute), keeps photos to 2 MB and videos to 15 MB, sends no email, and has no backups beyond what Neon's free plan keeps for a short time. The hosted page lists every limit. Fine for trying Kindwall; self-host it for anything that matters.

For a real deployment, docs/self-hosting.md covers HTTPS behind a reverse proxy (browsers only allow the camera over HTTPS), file storage, email, backups and upgrades. It also describes a free setup on Render with a Neon database, with its limits: the free service sleeps after a quiet spell, so the first visitor afterwards can wait up to a minute.

Not in 0.1

So nobody is surprised:

  • inviting people by email (today an owner or admin adds someone who already has an account)
  • QR codes for collection links
  • pulling reviews automatically from X, LinkedIn or Google
  • retrying failed webhooks
  • transcripts and captions for videos
  • a custom domain per space
  • comparing two wall designs
  • a WordPress plugin

Status

Kindwall is at 0.1.0 and maintained by one person under the Patchyard name. If you try it, we'd like to hear what got in the way, and which item on that list matters most to you: open an issue. Security reports go through SECURITY.md.

Code, docs and the changelog: https://github.com/patchyard/kindwall

A tour of what it does: https://patchyard.github.io/kindwall/

Top comments (0)