<?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: Rommel Angelo Goza</title>
    <description>The latest articles on DEV Community by Rommel Angelo Goza (@gozajpeg).</description>
    <link>https://dev.to/gozajpeg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Rommel Angelo Goza</title>
      <link>https://dev.to/gozajpeg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gozajpeg"/>
    <language>en</language>
    <item>
      <title>Barstile: Self-hosted non-interactive bot protection for JS/TS</title>
      <dc:creator>Rommel Angelo Goza</dc:creator>
      <pubDate>Mon, 30 Nov 2026 02:18:16 +0000</pubDate>
      <link>https://dev.to/gozajpeg/barstile-self-hosted-non-interactive-for-jsts-2579</link>
      <guid>https://dev.to/gozajpeg/barstile-self-hosted-non-interactive-for-jsts-2579</guid>
      <description>&lt;p&gt;I built &lt;strong&gt;Barstile&lt;/strong&gt; a self-hosted, zero-dependency alternative to visual CAPTCHAs and third-party widgets for JavaScript and TypeScript apps.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://barstile.pages.dev/" rel="noopener noreferrer"&gt;https://barstile.pages.dev/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/gozajpeg/barstile" rel="noopener noreferrer"&gt;https://github.com/gozajpeg/barstile&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/barstile" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/barstile&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of making real users click crosswalks or sending visitor data to Cloudflare/Google, Barstile sits in front of your routes or forms and makes automated clients pay a small CPU cost (SHA-256 Proof-of-Work) in the background so humans never see a puzzle and no third party ever tracks your traffic.&lt;/p&gt;

&lt;p&gt;No third-party services, no analytics, no dependencies, no tracking cookies, and completely open-source.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Server returns &lt;code&gt;449 Retry With&lt;/code&gt; and a stateless HMAC-SHA256 challenge (&lt;code&gt;salt.difficulty.expiresAt.signature&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;barstileFetch()&lt;/code&gt; (or &lt;code&gt;&amp;lt;barstile-widget&amp;gt;&lt;/code&gt; / &lt;code&gt;BarstileWidget&lt;/code&gt;) solves &lt;code&gt;SHA-256(salt + ":" + nonce)&lt;/code&gt; inside an inline Web Worker and retries automatically.&lt;/li&gt;
&lt;li&gt;Server verifies in a single SHA-256 hash, blocks replays (&lt;code&gt;ReplayCache&lt;/code&gt; or &lt;code&gt;RedisReplayStore&lt;/code&gt;), and issues a time-limited clearance token with a request quota (&lt;code&gt;AllowanceCache&lt;/code&gt;) + sliding-window IP tarpit (&lt;code&gt;TarpitTracker&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Runs on Node 18+, Cloudflare Workers, Vercel Edge, Deno, Bun, and browsers (&lt;code&gt;dist/barstile.min.js&lt;/code&gt; for plain HTML).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Honest tradeoffs
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;JS/TS-only right now (no Python/Go/PHP SDKs yet).&lt;/li&gt;
&lt;li&gt;PoW adds compute cost to mass scraping and form spam, not L3/L4 DDoS or slow human-paced bots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would love any technical feedback or edge cases I missed!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>security</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
