<?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: Nikhil Verma</title>
    <description>The latest articles on DEV Community by Nikhil Verma (@nikhilverma01).</description>
    <link>https://dev.to/nikhilverma01</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%2F4269364%2F398faecb-fb5d-45b8-9479-cd920b2c8474.png</url>
      <title>DEV Community: Nikhil Verma</title>
      <link>https://dev.to/nikhilverma01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikhilverma01"/>
    <language>en</language>
    <item>
      <title>Can you catch Express and OpenAPI drift without starting the server?</title>
      <dc:creator>Nikhil Verma</dc:creator>
      <pubDate>Fri, 27 Nov 2026 16:46:55 +0000</pubDate>
      <link>https://dev.to/nikhilverma01/can-you-catch-express-and-openapi-drift-without-starting-the-server-4imp</link>
      <guid>https://dev.to/nikhilverma01/can-you-catch-express-and-openapi-drift-without-starting-the-server-4imp</guid>
      <description>&lt;p&gt;CI check should be able to tell you when DELETE /users/:id exists in your Express app but is missing from openapi.yaml. That’s the problem I built SpecSync to solve.&lt;/p&gt;

&lt;p&gt;SpecSync statically reads Express route registrations in JavaScript and TypeScript and compares them with the paths and HTTP methods in your OpenAPI spec. In the repo’s sample, it catches an undocumented DELETE /users/{id} and points to the source line.&lt;br&gt;
Sample feature: &lt;a href="https://github.com/specsyncs/specsync-cli/tree/v0.1.1/tests/fixtures/scenarios/undocumented-route" rel="noopener noreferrer"&gt;https://github.com/specsyncs/specsync-cli/tree/v0.1.1/tests/fixtures/scenarios/undocumented-route&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To try v0.1.1 on your own project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx --yes @specsyncs/cli@0.1.1 check --openapi openapi.yaml --fail-on never
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;--fail-on&lt;/code&gt; never lets you inspect drift findings without failing the build on those findings. I’m looking for feedback from people with real Express routing setups, especially nested routers, dynamic paths, and APIs with a base path. What did it get wrong on your project? If you can share a small reproduction, I’d like to turn it into a test case.&lt;/p&gt;

&lt;p&gt;Source code: &lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/specsyncs" rel="noopener noreferrer"&gt;
        specsyncs
      &lt;/a&gt; / &lt;a href="https://github.com/specsyncs/specsync-cli" rel="noopener noreferrer"&gt;
        specsync-cli
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Catch undocumented or outdated API routes before they ship. SpecSync compares your Express code with your OpenAPI spec without starting your server.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;SpecSync&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Zero-server-startup, zero-runtime-instrumentation static Express-to-OpenAPI drift detector.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/@specsyncs/cli" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/583eb9de5ea4ab6df6698adf05dd73b7205656dc401176c8f7332b7552813d40/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f407370656373796e63732f636c693f7374796c653d666c61742d737175617265" alt="npm version"&gt;&lt;/a&gt;
&lt;a href="https://github.com/specsyncs/specsync-cli/./LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/d8ffd051e2be05f8ad62783ea8830d91c090c76a4db49fb1a2cf917aa11afd45/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265" alt="license"&gt;&lt;/a&gt;
&lt;a href="https://nodejs.org/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/6d092a605abcf55ebf3d9aa0db2138c7ff832fa4331b52d994e0c433ae5fb771/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6e6f64652d25334525334431382e302e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265" alt="node"&gt;&lt;/a&gt;
&lt;a href="https://www.typescriptlang.org/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/632e1ec4550255d2ccaeba465742dc5546599113ee3fa704a9ee33b70457d7ad/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747970657363726970742d352e372d626c75652e7376673f7374796c653d666c61742d737175617265" alt="typescript"&gt;&lt;/a&gt;
&lt;a href=""&gt;&lt;img src="https://camo.githubusercontent.com/a1bb609611e48398e73ffa03e1ae89f4edcf921c34431b52dc7d3cd9a4ac74bb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d3131342532307061737365642d737563636573732e7376673f7374796c653d666c61742d737175617265" alt="tests"&gt;&lt;/a&gt;
&lt;a href=""&gt;&lt;img src="https://camo.githubusercontent.com/c54a66324cc2f7f9d0ca3e1fc35a8298e612889f789db3cd672361612f4ce123/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f62656e63686d61726b2d313030253235253230726563616c6c2d737563636573732e7376673f7374796c653d666c61742d737175617265" alt="benchmarks"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;/div&gt;
&lt;br&gt;


&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;The Problem&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;In modern Node.js backends, &lt;strong&gt;API drift&lt;/strong&gt; is silent and inevitable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend developers add, rename, or deprecate Express routes in TypeScript or JavaScript.&lt;/li&gt;
&lt;li&gt;OpenAPI specification documents (&lt;code&gt;openapi.yaml&lt;/code&gt; or &lt;code&gt;openapi.json&lt;/code&gt;) fall out of sync.&lt;/li&gt;
&lt;li&gt;Client SDKs, API gateways, automated contract tests, and developer portals break in production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Existing tools fail to solve this practically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linters&lt;/strong&gt; (e.g. Spectral) only lint the OpenAPI document itself; they cannot inspect your source code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Diff tools&lt;/strong&gt; (e.g. oasdiff) compare two OpenAPI specs; they cannot detect drift against your Express implementation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime validators&lt;/strong&gt; (e.g. express-openapi-validator, tsoa) require spinning up the entire server, establishing database connections (MongoDB, PostgreSQL), configuring Redis, and executing live HTTP traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code decorators&lt;/strong&gt; (e.g. swagger-jsdoc) pollute application business logic with verbose, fragile JSDoc comments that drift just as easily.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;SpecSync&lt;/strong&gt; solves this by analyzing your TypeScript and JavaScript ASTs statically. It extracts your true…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/specsyncs/specsync-cli" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;&lt;br&gt;
Github Issue: &lt;a href="https://github.com/specsyncs/specsync-cli/issues" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="https://github.com/specsyncs/specsync-cli/issues" rel="noopener noreferrer"&gt;https://github.com/specsyncs/specsync-cli/issues&lt;/a&gt;

</description>
      <category>node</category>
      <category>opensource</category>
      <category>api</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
