I don't want to write HTML or fight global CSS, so I built a TypeScript DSL A developer who grew tired of writing HTML and managing global CSS has open-sourced DraftOle, a TypeScript-native View DSL that compiles to plain static HTML and scoped CSS with zero runtime JavaScript. The tool, currently at version 0.9.0, allows developers to build pages using the same declarative tree and modifier chains used in app frameworks like SwiftUI, with TypeScript catching attribute typos at compile time. The creator is holding back the 1.0 release to gather feedback from real users. I got tired of writing HTML and chasing global CSS rules. I had a hunch: what if you could write a page the same way you write an app — same declarative tree, same modifier chains, scoped style per node? I spent a year quietly testing the bet on my own side projects. It... seems okay? I've open-sourced it as DraftOle page writes plain static HTML + scoped CSS — zero runtime JavaScript shipped. app adds reactive state and event handlers — TypeScript arrow functions get serialized into a minimal runtime at build time. pnpm add draft-ole or npm install draft-ole or yarn add draft-ole This is the 0.9.0 pre-1.0 release. The API surface is essentially settled and 1.0 is the next tag, but I'm intentionally holding back the 1.0 promise until I hear from real users. If you try it and it feels great or terrible, please tell me — both signals are useful. Yes, AI can generate HTML/CSS now. I'm not making a claim about how DraftOle compares — that's a separate experiment I haven't run. This article is just about what I built and why. Honestly? I just don't want to write HTML or global CSS anymore Let me be candid about the motivation. It's not a refined "type safety extends to the leaves" pitch. It's two embarrassingly small frustrations I kept hitting on every side project. I'm building logic in TypeScript — typed values, typed functions, typed data flow — and then at the last mile I have to drop into stringly-typed HTML. Attribute names are strings. Class names are strings. Five levels of nesting and I can't tell which element carries which style anymore. The logical layer is type-safe, and then the presentation layer reverts to "paste these strings together carefully." That mismatch grates every time. CSS-in-JS, CSS Modules, Tailwind — pick your weapon, eventually you write a rule against body or , and now your scoping assumptions are gone. For a one-page LP I'd spend more time chasing "where is this style coming from" in DevTools than writing the page itself. After enough projects you just sigh and accept it. When I build apps in React or SwiftUI, none of this bothers me. You drop a Text inside a VStack , you call .padding , the style attaches to that node. Structure and style coexist in a tree and stay local to it. What if I could write a page the same way? Would the HTML problem and the CSS problem both just dissolve? That was the bet. I wrote a private View DSL for a year, dogfooded it on my own landing pages and small apps, and eventually thought "you know, this might actually be okay to release." So I cleaned it up and pushed draft-ole@0.9.0 . A pleasant side effect of basing the whole thing on a typed view tree: HTML attribute typos become compile errors . The TypeScript checker reaches all the way to your