<?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: kafk</title>
    <description>The latest articles on DEV Community by kafk (@kafk).</description>
    <link>https://dev.to/kafk</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%2F3921873%2F63f735cb-4cec-41e5-b4fe-ecb62b4c566b.jpg</url>
      <title>DEV Community: kafk</title>
      <link>https://dev.to/kafk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kafk"/>
    <language>en</language>
    <item>
      <title>I turned a joke product generator into a real API (and a CLI, and a faker.js plugin)</title>
      <dc:creator>kafk</dc:creator>
      <pubDate>Sat, 09 May 2026 13:22:42 +0000</pubDate>
      <link>https://dev.to/kafk/i-turned-a-joke-product-generator-into-a-real-api-and-a-cli-and-a-fakerjs-plugin-g42</link>
      <guid>https://dev.to/kafk/i-turned-a-joke-product-generator-into-a-real-api-and-a-cli-and-a-fakerjs-plugin-g42</guid>
      <description>&lt;p&gt;A while back I built &lt;a href="https://anycrap.shop" rel="noopener noreferrer"&gt;Anycrap&lt;/a&gt; — a fake store full of absurdist AI-generated products. It hit #1 on Hacker News, got way more traffic than expected.&lt;/p&gt;

&lt;p&gt;Here's what exists now.&lt;/p&gt;

&lt;h2&gt;
  
  
  REST API
&lt;/h2&gt;

&lt;p&gt;35,000+ products with names, descriptions, AI images, and 23 categories. Free key, no credit card.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://anycrap.shop/api/v1/products/random &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer YOUR_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;60 req/min, CORS included, OpenAPI spec available at &lt;code&gt;/api/v1/docs&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  CLI
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx anycrap random
npx anycrap random &lt;span class="nt"&gt;-c&lt;/span&gt; food
npx anycrap search &lt;span class="s2"&gt;"underwater"&lt;/span&gt;
npx anycrap categories
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  faker.js plugin
&lt;/h2&gt;

&lt;p&gt;Drop-in replacement for &lt;code&gt;faker.commerce.productName()&lt;/code&gt; — no API call, bundled data, works offline.&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;faker&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;@faker-js/faker&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createAnycrapFaker&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;anycrap-faker&lt;/span&gt;&lt;span class="dl"&gt;'&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;anycrap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createAnycrapFaker&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;faker&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;anycrap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;productName&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;        &lt;span class="c1"&gt;// "Thought-Cancelling Headphones"&lt;/span&gt;
&lt;span class="nx"&gt;anycrap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;productDescription&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;// "Headphones that don't just block sound — they block thoughts."&lt;/span&gt;
&lt;span class="nx"&gt;anycrap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;product&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;            &lt;span class="c1"&gt;// { name, slug, description, category }&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Useful for seeding databases, test fixtures, anywhere you'd use Lorem Ipsum but want something less boring.&lt;/p&gt;

&lt;h2&gt;
  
  
  HuggingFace dataset
&lt;/h2&gt;

&lt;p&gt;Full 35k rows available at &lt;a href="https://huggingface.co/datasets/kafked/anycrap" rel="noopener noreferrer"&gt;huggingface.co/datasets/kafked/anycrap&lt;/a&gt; if you want to train something cursed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can actually build with it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Party/trivia game item generator&lt;/li&gt;
&lt;li&gt;Absurdist placeholder data&lt;/li&gt;
&lt;li&gt;Game shop inventory names&lt;/li&gt;
&lt;li&gt;Creative writing / brainstorming tool&lt;/li&gt;
&lt;li&gt;"Product of the day" widget&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Full docs: &lt;a href="https://anycrap.shop/developers" rel="noopener noreferrer"&gt;anycrap.shop/developers&lt;/a&gt;&lt;/p&gt;

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