<?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>Forem: Alexandre Desane</title>
    <description>The latest articles on Forem by Alexandre Desane (@adesane).</description>
    <link>https://forem.com/adesane</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%2F3752631%2F9e18a490-d7d7-4281-a910-9c0a4cf45d48.png</url>
      <title>Forem: Alexandre Desane</title>
      <link>https://forem.com/adesane</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/adesane"/>
    <language>en</language>
    <item>
      <title>I got tired of rebuilding the same frontend twice, so I built a tool that does it once</title>
      <dc:creator>Alexandre Desane</dc:creator>
      <pubDate>Wed, 08 Apr 2026 15:03:16 +0000</pubDate>
      <link>https://forem.com/adesane/i-got-tired-of-rebuilding-the-same-frontend-twice-so-i-built-a-tool-that-does-it-once-2d43</link>
      <guid>https://forem.com/adesane/i-got-tired-of-rebuilding-the-same-frontend-twice-so-i-built-a-tool-that-does-it-once-2d43</guid>
      <description>&lt;p&gt;If you've ever built a frontend in Astro and then had to rebuild&lt;br&gt;
the same thing in Twig or PHP for a client's WordPress or Symfony&lt;br&gt;
backend — this is for you.&lt;/p&gt;
&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;The workflow looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You design and build a clean Astro frontend&lt;/li&gt;
&lt;li&gt;Client needs it on WordPress. Or Symfony. Or a custom PHP stack.&lt;/li&gt;
&lt;li&gt;You spend 2–5 days rewriting the same templates in a different language&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Same structure. Same components. Same logic.&lt;br&gt;
Different syntax.&lt;/p&gt;

&lt;p&gt;It's not interesting work. It's translation work.&lt;br&gt;
And it eats margin on every project.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Frontmatter Solo&lt;/strong&gt; is a CLI tool that transforms a constrained&lt;br&gt;
Astro project into explicit Twig or PHP templates.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @withfrontmatter/solo-check  &lt;span class="c"&gt;# validate first (free)&lt;/span&gt;
frontmatter solo:build &lt;span class="nt"&gt;--adapter&lt;/span&gt; twig
frontmatter solo:build &lt;span class="nt"&gt;--adapter&lt;/span&gt; php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get clean, backend-ready output:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Twig templates for Symfony, Drupal, Craft&lt;/li&gt;
&lt;li&gt;PHP templates for WordPress and custom stacks&lt;/li&gt;
&lt;li&gt;A strict data contract: &lt;code&gt;fm.site&lt;/code&gt;, &lt;code&gt;fm.page&lt;/code&gt;, &lt;code&gt;fm.props&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No runtime. No framework lock-in. Just rendering.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Solo operates at build time only. It scans your Astro project&lt;br&gt;
and generates templates from your components — but only if your&lt;br&gt;
project follows a constrained set of rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Literal props only (string, number, boolean, null)&lt;/li&gt;
&lt;li&gt;One layout per page&lt;/li&gt;
&lt;li&gt;Global CSS only&lt;/li&gt;
&lt;li&gt;Static images from &lt;code&gt;public/&lt;/code&gt; only&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;client:*&lt;/code&gt; islands, no dynamic imports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This constraint is intentional. Solo isn't a general-purpose&lt;br&gt;
Astro compiler. It's a handoff tool. The constraint is what makes&lt;br&gt;
the output predictable and safe to deploy.&lt;/p&gt;
&lt;h2&gt;
  
  
  The free validator
&lt;/h2&gt;

&lt;p&gt;Before you buy anything, there's a free OSS CLI to check if your&lt;br&gt;
project is Solo-compatible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @withfrontmatter/solo-check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs the same rules as Solo and tells you exactly what needs&lt;br&gt;
fixing. No account, no signup. Just errors and exit codes.&lt;/p&gt;

&lt;p&gt;It hit 269 downloads in its first two days without any promotion.&lt;br&gt;
Apparently a lot of people have this problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Astro
&lt;/h2&gt;

&lt;p&gt;Astro's component model maps cleanly to Twig and PHP templates.&lt;br&gt;
Props are explicit. There's no runtime state to serialize.&lt;br&gt;
The constraint that makes Astro "static-first" is exactly what&lt;br&gt;
makes it translatable.&lt;/p&gt;

&lt;p&gt;I looked for prior art before building this. There's one abandoned&lt;br&gt;
GitHub repo (simplegr/astro-to-twig, last commit 2022). That's it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;@withfrontmatter/core&lt;/code&gt; — MIT, open source, the JSON IR layer&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@withfrontmatter/solo-check&lt;/code&gt; — free CLI validator&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontmatter Solo&lt;/strong&gt; — the paid generator, CLI + macOS app (Tauri)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The macOS app is a thin wrapper around the CLI with a clean UI&lt;br&gt;
for teams who don't want to touch a terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing
&lt;/h2&gt;

&lt;p&gt;$49 one-time. No subscription.&lt;/p&gt;

&lt;p&gt;If it saves you one day of template work, it's paid for itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the validator first
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @withfrontmatter/solo-check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your project passes, Solo will work.&lt;br&gt;
If it doesn't, the error output tells you exactly why —&lt;br&gt;
and what to fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://frontmatter.tech/solo" rel="noopener noreferrer"&gt;frontmatter.tech/solo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>astro</category>
      <category>php</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
