<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: NeosiaNexus</title>
    <description>The latest articles on DEV Community by NeosiaNexus (@neosianexus).</description>
    <link>https://dev.to/neosianexus</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3861606%2F25e5b3e7-3e52-4990-be14-be53e4f8676d.png</url>
      <title>DEV Community: NeosiaNexus</title>
      <link>https://dev.to/neosianexus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neosianexus"/>
    <language>en</language>
    <item>
      <title>I built a self-hosted alternative to Marker.io - here's how it works under the hood</title>
      <dc:creator>NeosiaNexus</dc:creator>
      <pubDate>Sat, 04 Apr 2026 22:53:01 +0000</pubDate>
      <link>https://dev.to/neosianexus/i-built-a-self-hosted-alternative-to-markerio-heres-how-it-works-under-the-hood-2i7k</link>
      <guid>https://dev.to/neosianexus/i-built-a-self-hosted-alternative-to-markerio-heres-how-it-works-under-the-hood-2i7k</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;If you've ever freelanced, you know the feedback loop from hell.&lt;/p&gt;

&lt;p&gt;Your client opens the staging site, takes a screenshot, draws a red circle in WhatsApp, and sends you: &lt;em&gt;"the thing on the left is weird."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You reply: "Which page? Which element? What screen size?"&lt;/p&gt;

&lt;p&gt;Three days of back-and-forth later, you finally understand they wanted 2px more padding on a button.&lt;/p&gt;

&lt;p&gt;Tools like Marker.io and BugHerd solve this — clients annotate directly on the page. But they start at $39-42/month, your feedback data lives on their servers, and annotations are screenshot-based, meaning they break when the layout changes.&lt;/p&gt;

&lt;p&gt;I wanted something self-hosted, open-source, and smarter about how it anchors annotations. So I built &lt;strong&gt;SitePing&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is SitePing?
&lt;/h2&gt;

&lt;p&gt;A drop-in feedback widget (~23KB gzipped) that your clients use to draw rectangles on the live site, categorize their feedback (bug, change request, question), and submit it. Everything goes to &lt;strong&gt;your own database&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbryx0d59ac903vqtilyk.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbryx0d59ac903vqtilyk.gif" alt="Demo" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://siteping.dev/demo" rel="noopener noreferrer"&gt;Try the live demo&lt;/a&gt;&lt;/strong&gt; — draw annotations right now, no signup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup in 60 seconds
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @siteping/widget @siteping/adapter-prisma @siteping/cli
npx @siteping/cli init    &lt;span class="c"&gt;# scaffolds Prisma schema + API route&lt;/span&gt;
npx prisma db push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then in your layout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;initSiteping&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@siteping/widget&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;destroy&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;initSiteping&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/api/siteping&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;projectName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;my-project&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Works with React, Next.js, Vue, Svelte, Astro, or vanilla HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  The interesting part: how annotations survive layout changes
&lt;/h2&gt;

&lt;p&gt;Most feedback tools take a screenshot or pin coordinates in pixels. Resize the window, redeploy with new CSS, and the annotation points to the wrong place.&lt;/p&gt;

&lt;p&gt;SitePing takes a different approach. For each annotation, it stores &lt;strong&gt;three anchors&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;CSS selector&lt;/strong&gt; — generated by &lt;a href="https://github.com/antonmedv/finder" rel="noopener noreferrer"&gt;@medv/finder&lt;/a&gt;, which produces the shortest unique selector&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;XPath&lt;/strong&gt; — a structural path through the DOM&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text snippet&lt;/strong&gt; — surrounding text content of the element&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When re-displaying an annotation, the resolver tries all three in order with fuzzy matching, inspired by &lt;a href="https://web.hypothes.is/blog/fuzzy-anchoring/" rel="noopener noreferrer"&gt;Hypothesis&lt;/a&gt;. If the CSS selector fails (element was restructured), it falls back to XPath. If that fails too, it searches for the text snippet.&lt;/p&gt;

&lt;p&gt;On top of that, rectangle positions are stored as &lt;strong&gt;percentages of the anchor element's bounding box&lt;/strong&gt;, not as pixel coordinates. So if the element grows on a wider viewport, the annotation rectangle scales with it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Stored as:&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;xPct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;yPct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.34&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;wPct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;hPct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.20&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Not as:&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;w&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;h&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;  &lt;span class="c1"&gt;// ← breaks on resize&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Shadow DOM isolation
&lt;/h2&gt;

&lt;p&gt;The widget renders inside a &lt;strong&gt;closed Shadow DOM&lt;/strong&gt;. This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your site's CSS can't break the widget&lt;/li&gt;
&lt;li&gt;The widget's CSS can't leak into your site&lt;/li&gt;
&lt;li&gt;No class name conflicts, no &lt;code&gt;!important&lt;/code&gt; wars&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But there's a catch — if the widget's overlay lived inside the Shadow DOM, any parent with &lt;code&gt;overflow: hidden&lt;/code&gt; would clip it. So the annotation overlay and markers live &lt;strong&gt;outside&lt;/strong&gt; the Shadow DOM, in the main document. The widget manages both layers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;packages/
├── @siteping/widget             # Browser widget (Shadow DOM)
├── @siteping/adapter-prisma     # Server-side Prisma handlers
├── @siteping/adapter-memory     # In-memory store (testing)
├── @siteping/adapter-localstorage  # Client-side store (demos)
├── @siteping/cli                # CLI scaffold tool
└── @siteping/core               # Shared types, schemas, errors
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All adapters implement a &lt;code&gt;SitepingStore&lt;/code&gt; interface. A shared conformance test suite (22 tests) validates any adapter. Want to build a Drizzle adapter? Implement the interface, pass the conformance tests, done.&lt;/p&gt;

&lt;p&gt;The widget bundle never includes Prisma or Zod. The adapter never includes DOM code. Each package is independently published and tree-shakeable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like in practice
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;SitePing&lt;/th&gt;
&lt;th&gt;Marker.io / BugHerd&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hosting&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Self-hosted — your DB&lt;/td&gt;
&lt;td&gt;SaaS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Price&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free, MIT license&lt;/td&gt;
&lt;td&gt;$39-42+/month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Annotations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;DOM-anchored (CSS + XPath + text)&lt;/td&gt;
&lt;td&gt;Screenshot / pin-based&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Layout resilience&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Percentage-relative, survives responsive&lt;/td&gt;
&lt;td&gt;Breaks on layout shifts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Integration&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm install&lt;/code&gt; + one function call&lt;/td&gt;
&lt;td&gt;Script tags + dashboards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bundle size&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~23KB gzipped&lt;/td&gt;
&lt;td&gt;N/A (external script)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Current state — honest take
&lt;/h2&gt;

&lt;p&gt;This is &lt;strong&gt;v0.9.3, pre-1.0&lt;/strong&gt;. The test suite is solid (780+ unit tests, 29 Playwright E2E tests across Chromium, Firefox, WebKit), CI runs on every push, and I use it on my own client projects.&lt;/p&gt;

&lt;p&gt;But it's not battle-tested at scale. There are rough edges. The dashboard UI doesn't exist yet. Webhook notifications are on the roadmap but not built.&lt;/p&gt;

&lt;p&gt;I'm sharing it now because I'd rather get real feedback early than polish in a vacuum.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's on the roadmap
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Drizzle ORM adapter&lt;/li&gt;
&lt;li&gt;[ ] Dashboard UI for reviewing feedback&lt;/li&gt;
&lt;li&gt;[ ] Discord/Slack webhook notifications&lt;/li&gt;
&lt;li&gt;[ ] MutationObserver for SPA re-anchoring&lt;/li&gt;
&lt;li&gt;[ ] Nuxt / Astro / SvelteKit integrations&lt;/li&gt;
&lt;li&gt;[ ] Screenshot fallback when re-anchoring fails&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  I'd love your help
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Try it&lt;/strong&gt; — the &lt;a href="https://siteping.dev/demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt; takes 5 seconds. Break things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Give feedback&lt;/strong&gt; — is the API intuitive? Is the UX clear for non-technical clients? What's missing?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Contribute&lt;/strong&gt; — the &lt;a href="https://github.com/NeosiaNexus/SitePing/blob/main/CONTRIBUTING.md" rel="noopener noreferrer"&gt;contributing guide&lt;/a&gt; has a step-by-step for building new adapters. Good first issues are labeled on GitHub.&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/NeosiaNexus/SitePing" rel="noopener noreferrer"&gt;NeosiaNexus/SitePing&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://siteping.dev/demo" rel="noopener noreferrer"&gt;siteping.dev/demo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;npm:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/@siteping/widget" rel="noopener noreferrer"&gt;@siteping/widget&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://siteping.dev" rel="noopener noreferrer"&gt;siteping.dev&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for reading. If something feels off, that's exactly what I need to hear.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
