How I Built My Blog
Josh W. Comeau has rebuilt his blog with a new tech stack, including Next.js and MDX, involving over 100,000 lines of code, while enhancing user experience and styling with Linaria.
Read original articleJosh W. Comeau has recently rebuilt his blog, transitioning to a new tech stack while maintaining a similar design. The blog now runs on Next.js v15.0.0, React v19.0.0, and MDX v3.0.1, among other technologies. The migration involved over 100,000 lines of code and was both challenging and educational. Comeau emphasizes the importance of MDX for creating interactive content, allowing him to integrate custom React components seamlessly. He also discusses the switch from the older Pages Router to the new App Router in Next.js, which offers a reimagined approach to routing and rendering. The blog's styling has shifted from styled-components to Linaria, a CSS-in-JS library that compiles to CSS modules, although Comeau notes some challenges with its integration. He expresses excitement about future CSS tools like Pigment CSS. Additionally, he highlights the advantages of using Shiki for syntax highlighting, which does not add to the JavaScript bundle size and supports a wide range of languages. Overall, Comeau's blog rebuild reflects a commitment to leveraging modern technologies while enhancing the user experience.
- Josh W. Comeau has rebuilt his blog using a new tech stack, including Next.js and MDX.
- The migration process involved over 100,000 lines of code and was educational for Comeau.
- The blog now uses Linaria for styling, moving away from styled-components.
- Shiki is utilized for syntax highlighting, offering advantages in bundle size and language support.
- The transition to the App Router in Next.js represents a significant change in routing and rendering.
Related
Node 18 Ate My Website
The author upgraded their Next.js website to Node.js 18, facing issues with deprecated dependencies. They rebuilt the site with TypeScript, Contentlayer, Tailwind CSS, and Vercel Analytics, emphasizing simplicity and emerging technologies.
Htmx, Raku and Pico CSS
The author simplifies web development using HTMX, Raku, and Pico CSS, emphasizing semantic HTML and dynamic content creation without JavaScript, while working on a project to rebuild HTMX examples.
say a newbie wants to develop a website or web app and they run into this. The amount of tools listed is overwhelming, even for me who's been doing JS for over 7 years.
and the sad thing is JS can be pretty productive, without the merchants of complexity shilling their tools.
Express.js v5 just got released. Thanks doug & other maintainers. Yet the API has been stable for over 10 years. Vue.js even with the new composition Api - the api has been stable for a long time. & other useful node libraries like 'pg' etc.
The only recent useful thing is tailwind.
Next.js / Nest.js etc are all complex tools that are completely unnecessary and shilled by dev-tools companies
However I'd like ask the HN community here to share some examples of really simple blogs? Those that do not take building Rube Goldberg machines to publish the blogs. Perhaps those where the posts are just simple HTMLs. I'll take slapping a header and footer with some scripting or SSIs. But that's about it. Do you know any such simple examples of blogs? I think such blogs are under-appreciated and should be highlighted more often on HN.
When I read this my reaction was "that's ridiculous!" But the author is a skilled and experienced web developer. The rich educational interactivity on their site shows that achieving that level of presentational finesse doesn't come easily.
Here's a demo video with scrolling after the page has loaded (really choppy) and scrolling after stopping the JS with Firefox's slow-script-detection-thingy (smooth): https://files.alinpanaitiu.com/joshwcomeau-slow-scroll_2.mp4
The code seems to enter a tight loop here whenever I'm scrolling: https://files.alinpanaitiu.com/joshwcomeau-debug-script.png
I just made a new opensource project named TinyMind: https://github.com/mazzzystar/tinymind
Which allows you to create your blog page in 1 minutes and share to anyone.
It's non-profitable, just for hobby and helping most people who don't want stuck in Hexo/Hugo or code.
Reading that it crashes or eat the CPU for some people, I still believe it somewhat is. It also displays very badly on my own Firefox (with very recent computer).
And I could not find a list of all posts.
I mean… My own blog is a 500 lines python script without any external dependency. It has 42 lines of CSS. And it is all contained, content included, in one git repository. It has a list of all the blog posts you can quickly scroll through. It displays the same on every single computer/browser/smartphone, even very slow connection on old hardware. (sources are here : https://sr.ht/~lioploum/ploum.net/ )
But I’m not an experienced web dev.
The title* feels a bit rage baity to be honest.
Related
Node 18 Ate My Website
The author upgraded their Next.js website to Node.js 18, facing issues with deprecated dependencies. They rebuilt the site with TypeScript, Contentlayer, Tailwind CSS, and Vercel Analytics, emphasizing simplicity and emerging technologies.
Htmx, Raku and Pico CSS
The author simplifies web development using HTMX, Raku, and Pico CSS, emphasizing semantic HTML and dynamic content creation without JavaScript, while working on a project to rebuild HTMX examples.