<?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: Sarah Simmons</title>
    <description>The latest articles on DEV Community by Sarah Simmons (@sarahsimmons167).</description>
    <link>https://dev.to/sarahsimmons167</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%2F4266710%2F52f4dcf6-7997-472c-ba05-ae4833093d41.png</url>
      <title>DEV Community: Sarah Simmons</title>
      <link>https://dev.to/sarahsimmons167</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sarahsimmons167"/>
    <language>en</language>
    <item>
      <title>llms.txt, OpenAPI and an RFC 9727 API catalog: a small site's machine-readable stack, file by file</title>
      <dc:creator>Sarah Simmons</dc:creator>
      <pubDate>Thu, 26 Nov 2026 11:01:39 +0000</pubDate>
      <link>https://dev.to/sarahsimmons167/llmstxt-openapi-and-an-rfc-9727-api-catalog-a-small-sites-machine-readable-stack-file-by-file-57mi</link>
      <guid>https://dev.to/sarahsimmons167/llmstxt-openapi-and-an-rfc-9727-api-catalog-a-small-sites-machine-readable-stack-file-by-file-57mi</guid>
      <description>&lt;p&gt;Most sites that offer data do it in one of two ways: a "contact us for API access" form, or nothing at all. I recently read through the setup on ainsfw.tools, a review directory of AI chat platforms for adults (18+). It's a compact example of the opposite: four static files that together describe the whole data offering. None of them needs a server-side framework.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The data itself
&lt;/h3&gt;

&lt;p&gt;Two endpoints, both plain GETs with no authentication:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;platforms&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;csv&lt;/span&gt;      &lt;span class="c1"&gt;# table ∈ prices | features | payments | tested&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;platforms.json&lt;/code&gt; returns an envelope with &lt;code&gt;source&lt;/code&gt;, &lt;code&gt;license&lt;/code&gt;, &lt;code&gt;updated&lt;/code&gt; and &lt;code&gt;count&lt;/code&gt;, then an array of platform objects (&lt;code&gt;rank&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;slug&lt;/code&gt;, &lt;code&gt;score&lt;/code&gt;, &lt;code&gt;free_plan&lt;/code&gt;, &lt;code&gt;paid_from&lt;/code&gt;, &lt;code&gt;lowest_price&lt;/code&gt;, &lt;code&gt;billing&lt;/code&gt;, &lt;code&gt;features[]&lt;/code&gt;, &lt;code&gt;tags[]&lt;/code&gt;, &lt;code&gt;tested&lt;/code&gt;, &lt;code&gt;website&lt;/code&gt;, &lt;code&gt;review_url&lt;/code&gt;). Putting the licence and update date in the payload is a nice touch, because they travel with every copy.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The contract: &lt;code&gt;/data/openapi.json&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;An OpenAPI 3.1 document titled "ainsfw.tools data". It is short. The CSV route declares &lt;code&gt;table&lt;/code&gt; as a path parameter with an &lt;code&gt;enum&lt;/code&gt;, so a client generator knows the four valid values and that anything else is a 404. The &lt;code&gt;info.license&lt;/code&gt; block points to CC BY 4.0.&lt;/p&gt;

&lt;p&gt;What I'd add: a JSON Schema for the platform object. Right now the response is documented as &lt;code&gt;application/json&lt;/code&gt; with no schema, so consumers infer the fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Discovery: &lt;code&gt;/.well-known/api-catalog&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;This is the part most sites skip. RFC 9727 defines a well-known URI that returns a linkset (&lt;code&gt;application/linkset+json&lt;/code&gt;) describing a publisher's APIs. Here it has a single entry: the anchor is &lt;code&gt;platforms.json&lt;/code&gt;, &lt;code&gt;service-desc&lt;/code&gt; points to the OpenAPI file, and &lt;code&gt;service-doc&lt;/code&gt; points to the human documentation page. An agent that knows only the domain can find the spec with one request, and no HTML parsing.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Context for language models: &lt;code&gt;/llms.txt&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;A Markdown file with a one-paragraph summary, key pages, the data links with their licence, and a ranked list of reviews with one-line facts. It's what an assistant would otherwise piece together from a dozen pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  The human layer
&lt;/h3&gt;

&lt;p&gt;All four files are tied together by a &lt;code&gt;/developers&lt;/code&gt; page that states the terms in plain language: free, read-only, no key; "cache it and fetch it no more than once an hour"; link to the platform's review page when quoting; mention affiliate links when showing them; 18+ only. That page is &lt;code&gt;noindex, follow&lt;/code&gt;, so it exists for people who need it, not for search traffic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Takeaways for your own project
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Ship the catalog. A 200-byte &lt;code&gt;api-catalog&lt;/code&gt; file makes your spec discoverable by tooling that already follows RFC 9727.&lt;/li&gt;
&lt;li&gt;Put licence and timestamp in the payload, not only in the docs.&lt;/li&gt;
&lt;li&gt;Write the rate guidance as a request, with the refresh interval stated, so consumers can choose a sensible cache time.&lt;/li&gt;
&lt;li&gt;Keep llms.txt factual and current. It goes stale faster than anything else in the set.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full write-up of the terms is on the site's &lt;a href="https://ainsfw.tools/developers" rel="noopener noreferrer"&gt;developer page&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>opendata</category>
      <category>seo</category>
    </item>
  </channel>
</rss>
