<?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: Brian Palmer</title>
    <description>The latest articles on DEV Community by Brian Palmer (@codewithbrian).</description>
    <link>https://dev.to/codewithbrian</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1352805%2F3589c061-db12-4201-8b4d-b742f31fa815.jpeg</url>
      <title>DEV Community: Brian Palmer</title>
      <link>https://dev.to/codewithbrian</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codewithbrian"/>
    <language>en</language>
    <item>
      <title>Building Vettly: A Developer-First API for Multi-Modal Content Moderation</title>
      <dc:creator>Brian Palmer</dc:creator>
      <pubDate>Sat, 19 Sep 2026 20:38:31 +0000</pubDate>
      <link>https://dev.to/codewithbrian/building-vettly-a-developer-first-api-for-multi-modal-content-moderation-3pog</link>
      <guid>https://dev.to/codewithbrian/building-vettly-a-developer-first-api-for-multi-modal-content-moderation-3pog</guid>
      <description>&lt;p&gt;If your product accepts posts, messages, reviews, profiles, or marketplace listings, moderation usually starts as a small feature and turns into infrastructure.&lt;/p&gt;

&lt;p&gt;You add a text check. Then images arrive. Then video. Then you need consistent policy decisions, provider fallbacks, audit logs, a review workflow, and a way to explain why something was blocked.&lt;/p&gt;

&lt;p&gt;That is the problem I’m building Vettly to solve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Vettly does
&lt;/h2&gt;

&lt;p&gt;Vettly is a TypeScript-first API and SDK for moderating text, images, and video through one integration. A simple text check looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&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;ModerationClient&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;@vettly/sdk&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;vettly&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ModerationClient&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;VETTLY_API_KEY&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;vettly&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;userPost&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;policyId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;moderate&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;action&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;block&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;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Content violates community guidelines&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;The result is an explicit decision — allow, flag, or block — rather than a raw provider response that every application has to interpret differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why multi-modal matters
&lt;/h2&gt;

&lt;p&gt;A clean caption can still accompany an unsafe image. A harmless thumbnail can still lead to a problematic video. Treating each content type as a separate integration makes policy behavior inconsistent and creates more edge cases for product teams to own.&lt;/p&gt;

&lt;p&gt;Vettly gives text, image, and video checks a common decision model while keeping the individual item results available for debugging and review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Policies without starting from YAML
&lt;/h2&gt;

&lt;p&gt;Most teams need a useful default before they need a policy language. Vettly includes strict, moderate, and permissive policies for common product contexts. When those are not enough, custom YAML policies can be managed through the dashboard.&lt;/p&gt;

&lt;p&gt;That gives a team a short path from “I need a check before publishing” to “I need rules specific to my community.”&lt;/p&gt;

&lt;h2&gt;
  
  
  The API is only part of the system
&lt;/h2&gt;

&lt;p&gt;Moderation decisions become operational data quickly. Vettly is designed around the surrounding workflow too:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a dashboard for decision logs, search, filtering, and usage analytics&lt;/li&gt;
&lt;li&gt;webhooks for flagged and blocked events&lt;/li&gt;
&lt;li&gt;audit trails with the policy and provider context&lt;/li&gt;
&lt;li&gt;an appeals workflow for decisions that need human review&lt;/li&gt;
&lt;li&gt;provider flexibility so application code does not have to change when the underlying provider changes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to make moderation observable and explainable, not just synchronous.&lt;/p&gt;

&lt;h2&gt;
  
  
  A few design questions I’m still working through
&lt;/h2&gt;

&lt;p&gt;There are no universal answers for moderation infrastructure. Different communities have different tolerance for false positives, different review capacity, and different failure policies.&lt;/p&gt;

&lt;p&gt;The questions I’m most interested in are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When moderation is temporarily unavailable, do you fail open, fail closed, or queue the content?&lt;/li&gt;
&lt;li&gt;What evidence do moderators need to understand and overturn a decision?&lt;/li&gt;
&lt;li&gt;How much policy customization do teams actually want to own?&lt;/li&gt;
&lt;li&gt;When does a hosted moderation service stop being attractive compared with self-hosting?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Install the SDK with:&lt;br&gt;
&lt;/p&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; @vettly/sdk
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The project is at &lt;a href="https://vettly.dev" rel="noopener noreferrer"&gt;vettly.dev&lt;/a&gt;, with the dashboard and documentation linked from there. I’d love feedback from anyone who has built moderation for a social app, marketplace, forum, game, or AI-generated content product — especially on the failure modes and review workflows that are easy to underestimate.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>ai</category>
      <category>webdev</category>
      <category>api</category>
    </item>
  </channel>
</rss>
