I

I made Macaron – Type-safe CSS-in-JS with zero-runtime and colocation

Hacker News

I made Macaron – Type-safe CSS-in-JS with zero-runtime and colocation

Hey HN, my name is Mokshit and I'm really interested in web-performance and web-development. At the time of writing this, I'm a junior in high school. Macaron is a typesafe CSS-in-JS library with zero runtime, colocation, maximum safety and productivity. The motivation behind it is that runtime CSS-in-JS libraries, that is most of the CSS-in-JS libs, add alot of bloat to web apps and have a considerable performance drop with a bundle size increase. Alot of them also don't support more performant ways of building web apps like streaming markup. Most of the current compile-time CSS-in-JS libraries try to fix this, but have some or the other drawback like not offering colocation, or not being type-safe. Today, Macaron does all this with a compiler that extracts all the style declarations at compile-time and converts them to static css files while also letting you author the type-safe styles in the same file as your application code. It supports both - a vanilla styling API and a styled-component API with support for multiple frameworks like SolidJS and React and build tools like Vite and Esbuild. Macaron is currently missing a webpack plugin, but that will also be published soon, making it compatible with almost all bundlers. There's a ton of room for improvement in this space, and I feel like macaron is a step in that direction. Github - https://github.com/macaron-css/macaron

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports, compatible · Missing: reddit linkedin, podcasting, created
78%78% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, apps, code · Missing: agents, macos, agent
66%66% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
53%53% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: soon · Missing: plus, platform, intuitive
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: apps, way · Missing: mobile apps, ios, personal
38%38% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ba
Bamboo – build-time, Rust/Oxc, type-safe, zero-runtime CSS-in-JS41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bamboo – build-time, Rust/Oxc, type-safe, zero-runtime CSS-in-JS

Hacker News1
CS
CSS-in-JS without messing with Babel/esbuild or hacking JSX runtime47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CSS-in-JS without messing with Babel/esbuild or hacking JSX runtime

Hacker News1
Ru
Rudimentary runtime type system for JS49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rudimentary runtime type system for JS

Hacker News1
St
Styled-vue – zero-runtime CSS-in-JS for Vue.js48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Styled-vue – zero-runtime CSS-in-JS for Vue.js

Hacker News1
Ze
Zero-Runtime, Utility-First CSS-in-JS Library: Kuma UI56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Zero-Runtime, Utility-First CSS-in-JS Library: Kuma UI

Hacker News1
Gu
Guantr - A Type-Safe JS/TS Authorization Library42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Guantr - A Type-Safe JS/TS Authorization Library

Hacker News2
Ti
Tinysandbox-JS-Runtime - JS in WASM in v867%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tinysandbox-JS-Runtime - JS in WASM in v8

Hacker News2
St
Styleframe – Type-Safe, Composable CSS in TypeScript47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Styleframe – Type-Safe, Composable CSS in TypeScript

Hacker News2
Ty
Type-safe RESTful framework for fullstack with zero dependency38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Type-safe RESTful framework for fullstack with zero dependency

Hacker News1
Ne
Newzly-phantom – Asynchronous type-safe Scala DSL for Cassandra49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Newzly-phantom – Asynchronous type-safe Scala DSL for Cassandra

Hacker News16