<?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: Ahmed Yasin</title>
    <description>The latest articles on DEV Community by Ahmed Yasin (@koculu).</description>
    <link>https://dev.to/koculu</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%2F4156587%2Fecca1a2c-d1dd-4276-87dc-27c31006df46.png</url>
      <title>DEV Community: Ahmed Yasin</title>
      <link>https://dev.to/koculu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/koculu"/>
    <language>en</language>
    <item>
      <title>I Built PureStack: A TypeScript-Native Frontend Stack</title>
      <dc:creator>Ahmed Yasin</dc:creator>
      <pubDate>Fri, 02 Oct 2026 06:52:21 +0000</pubDate>
      <link>https://dev.to/koculu/i-built-purestack-a-typescript-native-frontend-stack-15g3</link>
      <guid>https://dev.to/koculu/i-built-purestack-a-typescript-native-frontend-stack-15g3</guid>
      <description>&lt;p&gt;I’ve just released the first public version of &lt;strong&gt;PureStack&lt;/strong&gt;, an MIT-licensed frontend stack built around one idea:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;content, components, styles, and browser interactivity should be able to live in one coherent TypeScript-oriented system.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I built it because modern frontend projects often end up combining an SSG, MDX processor, component library, styling system, theme layer, browser bundler, search tooling, and editor plugins from separate projects.&lt;/p&gt;

&lt;p&gt;PureStack takes a more integrated approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  Static by default
&lt;/h2&gt;

&lt;p&gt;A project starts with a content directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;content/
  siteConfig.json
  index.mdx
  docs/
    getting-started.md
  dashboard.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install it with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;purestack
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx purestack serve &lt;span class="nt"&gt;--content&lt;/span&gt; ./content
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PureStack discovers Markdown/MDX files, creates routes and navigation, renders HTML, generates theme CSS, copies assets, builds search indexes when enabled, and bundles browser-side TypeScript where required.&lt;/p&gt;

&lt;p&gt;Production output is ordinary static HTML, CSS, JavaScript and assets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx purestack build &lt;span class="nt"&gt;--content&lt;/span&gt; ./content
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no required backend or hosting platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build-time components, browser apps when needed
&lt;/h2&gt;

&lt;p&gt;PureStack uses &lt;strong&gt;Regor&lt;/strong&gt; as its native component framework.&lt;/p&gt;

&lt;p&gt;Components inside MDX are rendered during the build:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Panel tone="info"&amp;gt;
  &amp;lt;Badge tone="success"&amp;gt;Ready&amp;lt;/Badge&amp;gt;
  Everything here becomes static HTML.
&amp;lt;/Panel&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That page does not need a client-side framework just to display the component.&lt;/p&gt;

&lt;p&gt;When interaction is required, it is explicit.&lt;/p&gt;

&lt;p&gt;A page can load ordinary TypeScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;PageScript src="./dashboard.ts" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or mount a Regor application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;RegorApp id="counter" src="./counter.ts" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A browser app can then use reactive state normally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&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;createApp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ref&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;regor&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;createApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;#counter&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="s2"&gt;`
      &amp;lt;button @click="count(count + 1)"&amp;gt;
        Clicked {{ count }} times
      &amp;lt;/button&amp;gt;
    `&lt;/span&gt;&lt;span class="p"&gt;,&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;So the model is essentially:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Markdown / MDX
      ↓
static HTML
      +
optional TypeScript apps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Components, themes and typed CSS
&lt;/h2&gt;

&lt;p&gt;PureStack currently includes &lt;strong&gt;67 public components and browser entry points&lt;/strong&gt;, covering forms, buttons, tabs, modals, charts, virtual lists/tables, navigation, search, landing-page components and more.&lt;/p&gt;

&lt;p&gt;Styling is also part of the stack.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;@purestack/ts-css&lt;/code&gt; provides a typed CSS builder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&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;s&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;@purestack/ts-css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="nf"&gt;s&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.card&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;css&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;1rem&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;borderRadius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;12px&lt;/span&gt;&lt;span class="dl"&gt;'&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;The output is still standard CSS.&lt;/p&gt;

&lt;p&gt;Above that, &lt;code&gt;@purestack/ts-style&lt;/code&gt; provides light/dark themes, semantic tones, typography, breakpoints and shared design tokens used by the component library.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tooling is part of the architecture
&lt;/h2&gt;

&lt;p&gt;PureStack also has a VS Code extension that understands its source model.&lt;/p&gt;

&lt;p&gt;It provides things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;component and prop completion&lt;/li&gt;
&lt;li&gt;Go to Definition&lt;/li&gt;
&lt;li&gt;frontmatter completion&lt;/li&gt;
&lt;li&gt;Regor template highlighting&lt;/li&gt;
&lt;li&gt;markup diagnostics&lt;/li&gt;
&lt;li&gt;formatting inside TypeScript &lt;code&gt;html&lt;/code&gt; templates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;view&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="s2"&gt;`
  &amp;lt;Panel tone="success"&amp;gt;
    &amp;lt;Btn size="sm"&amp;gt;{{ title }}&amp;lt;/Btn&amp;gt;
  &amp;lt;/Panel&amp;gt;
`&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;is treated as real markup rather than an opaque string.&lt;/p&gt;

&lt;h2&gt;
  
  
  The project uses itself
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;purestack.studio&lt;/code&gt; is built with PureStack itself.&lt;/p&gt;

&lt;p&gt;The website uses the SSG, MDX, Regor, the component library, typed styles, themes and browser TypeScript. The component documentation also runs real interactive examples.&lt;/p&gt;

&lt;p&gt;That has been useful because the framework has to support its own production website rather than only synthetic demos.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why another frontend stack?
&lt;/h2&gt;

&lt;p&gt;PureStack isn't based on the idea that existing frontend tools are bad.&lt;/p&gt;

&lt;p&gt;The experiment is about &lt;strong&gt;integration&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of selecting an independent solution for every frontend concern, I wanted to see what happens when the content pipeline, components, styling, static rendering, browser apps and editor tooling are designed to work together.&lt;/p&gt;

&lt;p&gt;The first public version is now available:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://purestack.studio/" rel="noopener noreferrer"&gt;https://purestack.studio/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/PureStackStudio/PureStack" rel="noopener noreferrer"&gt;https://github.com/PureStackStudio/PureStack&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;npm:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/purestack" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/purestack&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d be interested in feedback on the architecture—especially the decision to keep pages static by default and mount browser applications only where interaction is actually needed.&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
