<?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: Nayan Rathod</title>
    <description>The latest articles on DEV Community by Nayan Rathod (@nynrathod).</description>
    <link>https://dev.to/nynrathod</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%2F3881690%2Fbfc7276b-4dc3-4990-bee2-5119a0903978.png</url>
      <title>DEV Community: Nayan Rathod</title>
      <link>https://dev.to/nynrathod</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nynrathod"/>
    <language>en</language>
    <item>
      <title>I got tired of writing the same 200 lines of boilerplate for every API, so I built a compiled language to eliminate it</title>
      <dc:creator>Nayan Rathod</dc:creator>
      <pubDate>Thu, 16 Apr 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/nynrathod/i-got-tired-of-writing-the-same-200-lines-of-boilerplate-for-every-api-so-i-built-a-compiled-ie5</link>
      <guid>https://dev.to/nynrathod/i-got-tired-of-writing-the-same-200-lines-of-boilerplate-for-every-api-so-i-built-a-compiled-ie5</guid>
      <description>&lt;p&gt;Every side project I start does the same thing to me. New idea. Open editor. Spend 2-3 days on things that had nothing to do with the idea itself. Setting up auth, writing CRUD handlers I'd written a hundred times, configuring Docker, wiring up CORS, writing validation logic, setting environment variables, pushing to a repo, figuring out deployment.&lt;/p&gt;

&lt;p&gt;By the time I was done with the setup, I'd lost momentum on the actual product.&lt;/p&gt;

&lt;p&gt;I tried every shortcut. Supabase. Firebase. Express boilerplates. They either locked me into someone else's decisions, added runtime overhead I couldn't control, or still required too much manual wiring.&lt;/p&gt;

&lt;p&gt;So I did the unreasonable thing.&lt;/p&gt;

&lt;p&gt;I spent 7 months building a compiled, statically typed programming language from scratch. Specifically designed so that your data schema is your API definition. There were at least three weekends where I was convinced I'd built the wrong abstraction entirely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I built and why&lt;/strong&gt;&lt;br&gt;
The language is called &lt;strong&gt;Doolang&lt;/strong&gt;. I built the compiler in Rust using LLVM (via Inkwell). The core idea: if the type system understands your data model at compile time, the entire API layer, endpoints, validation, auth, rate limiting can be generated automatically. No runtime reflection. No magic strings. Just a compiler that knows what your API should look like before you do.&lt;/p&gt;

&lt;p&gt;Here's the entire definition for a production-ready User API:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;struct&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Int&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;That generates:&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="err"&gt;POST /tasks
GET /tasks
GET /tasks/:id
PUT /tasks/:id
DELETE /tasks/:id
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With JWT authentication, CORS handling, and rate limiting already wired in. No config needed.&lt;/p&gt;

&lt;p&gt;The compiled binary benchmarks at &lt;strong&gt;1.3+M RPS for plain text and 1.2+M RPS for JSON&lt;/strong&gt; responses. That's not a toy. &lt;a href="https://github.com/nynrathod/doo-benchmark" rel="noopener noreferrer"&gt;Benchmark repo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Then I built the deployment layer&lt;/strong&gt;&lt;br&gt;
A fast language that still requires you to manage Docker, DNS, Git, and cloud infrastructure isn't solving the real problem. So I built &lt;strong&gt;DooCloud&lt;/strong&gt; on top of Doolang.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Push to DooCloud

=== Deploy started: my-api ===
Generating code...
Provisioning database...
Building...
Deploying service...
Domain live: my-api-abc123.doocloud.dev

✓ Deployed to https://my-api-abc123.doocloud.dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That deployment handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git commit and push&lt;/li&gt;
&lt;li&gt;Docker build&lt;/li&gt;
&lt;li&gt;Container deployment on Cloud&lt;/li&gt;
&lt;li&gt;SSL certificate&lt;/li&gt;
&lt;li&gt;Custom domain routing&lt;/li&gt;
&lt;li&gt;Environment variables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The whole flow schema definition to live production API takes under 5 minutes. I've timed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What this actually looks like&lt;/strong&gt;&lt;br&gt;
There's a live interactive playground on &lt;a href="https://www.doocloud.dev/#playground" rel="noopener noreferrer"&gt;doocloud.dev&lt;/a&gt; where you can define structs and see the generated Doolang code and API endpoints in real time. No signup needed. If you want to actually deploy it, there's a free tier.&lt;br&gt;
The Doolang compiler is fully &lt;a href="https://github.com/nynrathod/doolang" rel="noopener noreferrer"&gt;open source on GitHub&lt;/a&gt;. 7+ months of active development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I learned building a language to solve a deployment problem&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1. The language design forces good API design.&lt;/strong&gt; Because your schema is your contract, you can't accidentally build inconsistent endpoints. The compiler rejects ambiguity.&lt;br&gt;
&lt;strong&gt;2. Native binaries solve a class of problems people have accepted as normal.&lt;/strong&gt; Most API frameworks are interpreted or JIT-compiled. The performance ceiling is set by the runtime. With a compiled binary, you're talking to the OS directly. 1.3+M RPS on my local machine. No special optimization. That's just what you get when there's no runtime in the way.&lt;br&gt;
&lt;strong&gt;3. The hardest part wasn't the compiler. It was resisting scope creep.&lt;/strong&gt; I caught myself planning a query language, a graph layer, and realtime sync. Then I stopped and shipped instead. Building a language makes you want to solve every problem with the language. The MVP discipline had to be applied to the language itself, not just the product.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I genuinely want feedback on&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm one person. This is live.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the schema → auto-generated API abstraction feel right, or does it feel like too much magic?&lt;/li&gt;
&lt;li&gt;What's the first thing you'd try to break about this approach?&lt;/li&gt;
&lt;li&gt;What's missing that would stop you from trying it for a real project?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Be mean, I can take it. That's actually why I'm posting here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://doocloud.dev/" rel="noopener noreferrer"&gt;doocloud.dev&lt;/a&gt; - playground works without signup&lt;br&gt;
&lt;a href="https://github.com/nynrathod/doolang" rel="noopener noreferrer"&gt;github.com/nynrathod/doolang&lt;/a&gt; - compiler source&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>api</category>
      <category>devops</category>
      <category>rust</category>
    </item>
  </channel>
</rss>
