fontaine
astro
fontaine | astro | |
---|---|---|
5 | 514 | |
1,344 | 43,805 | |
- | 1.5% | |
10.0 | 10.0 | |
7 months ago | 7 days ago | |
TypeScript | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fontaine
- Watch Out for Layout Shifts with ‘ch’ Units
-
Astro Font Fallbacks with Capsize: reduce CLS
An alternative to Capsize for reducing font swap layout shift is Fontaine. It has a Vite plugin, and is able automatically to update font face CSS (like we will do, using Capsize metrics). We do something a little more manual here with Capsize, just to help get a grounding in the issue and solution approach.
-
You don't need zero JS website for a perfect Lighthouse score
Fonts are one of the biggest pain points in the context of performance optimization. I have decided to not use any CDN like Google Fonts but instead, I'm serving them myself. Also, I have used a cool package called Fontaine which reduces CLS by using local font fallbacks with crafted font metrics.
-
How I ruined my SEO
I started using fontaine on my blog. If you haven't tried it out, you can find it here. It helps reduce Cumulative Layout Shift. The flash of unstyled content jank that you can see when you first land on a site, before fonts have loaded. I can't see why that would be an issue. It should improve my blogs Core Web Vitals and help stuff rank better, not worse. I think this is a red herring.
-
Docusaurus: Using fontaine to reduce custom font cumulative layout shift
Custom font usage can introduce cumulative layout shift (or "jank") to your website. This post shows how to use fontaine to reduce this with Docusaurus sites.
astro
-
Created My Portfolio
This component leverages Astro to dynamically generate a resume in HTML format based on the user's information. A subsequent automated process within GitHub Actions converts the HTML to PDF and ensures its deployment to both GitHub artifacts and Cloudflare.
-
Ask HN: Should I use React for a personal portfolio?
If you are using this project for learning you may want to consider something like Astro: https://astro.build/
It will enable you to dabble in building different pages/routes in different frameworks very easily.
-
Writing HTML by hand is easier than debugging your static site generator
Astro [0] a relatively new static site generator. It solves all of the issues I've had with SSG's that feel heavy, like Gatsby.
Astro only as complex as you make it. It lets you write JSX-like syntax that compiles to static HTML. I use it for my personal site.
[0]: https://astro.build/
-
Microfeatures I Love in Blogs and Personal Websites
> Links to Other Sites
I used openring-rs for my Astro [1] site, but eventually replaced it with a TypeScript-native solution [0].
If you're looking for an easy way to pull RSS feeds from TypeScript and show the N most recent posts, take a look at my library.
PS: I'm currently unemployed, so if you have any feature requests I will quickly oblige :)
PPS: if you haven't heard of Astro [1], do yourself a favor and check it out. You write JSX syntax and get static HTML/CSS out, with the option for JS only as needed.
[0]: https://github.com/shepherdjerred/webring
[1]: https://astro.build/
-
One does not simply delete cookies
I'm currently building a project using Astro, to which I've added basic authentication via Twitch so users can log in to view their inventory for my new stream game by calling an API on the back end (my Twitch bot). I'm using Astro in SSR mode, and authentication is provided by Auth.js via auth-astro. When using Auth.js to authenticate, it saves three cookies in the browser to remember that you've logged in to this website via Twitch.
-
Ask HN: If you are starting in 2024, what is the most productive solo dev stack?
I rebuilt my personal website[1] (static site) using Astro[2], and it was a pleasant experience.
[1]: https://ivylee.github.io/
[2]: https://astro.build/
-
How to deploy your own website on AWS
or Astro; if you’d like to integrate React, VueJS etc. code as well. use their themes page here to get a starting point.
-
Astro vs Visual Studio 2022 as Static Site Generators
I have spent today learning the new Astro SSG. You can read about it at https://astro.build/ or better yet you can get started with it at https://docs.astro.build/en/install/auto/. While Visual Studio isn't exactly a SSG, they way you code with it can make static web pages. VS has so much more power than that.
-
Website Optimization Using Strapi, Astro.js and OpenAI
We'll use several interesting technologies to achieve this: Strapi CMS to take care of the content management and backend, Astro which is a great new technology for quickly creating blazing fast frontend apps, and ChatGPT to provide the article summaries.
-
Composable architecture example: Go headless (best practices)
Astro
What are some alternatives?
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
qwik - Instant-loading web apps, without effort
moment - Parse, validate, manipulate, and display dates in javascript.
vite - Next generation frontend tooling. It's fast!
fontaine - Automatic font fallback based on font metrics [Moved to: https://github.com/danielroe/fontaine]
eleventy 🕚⚡️ - A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
Docusaurus - Easy to maintain open source documentation websites.
Hugo - The world’s fastest framework for building websites.
blog.johnnyreilly.com - This is the source code for https://johnnyreilly.com
SvelteKit - web development, streamlined
capsize - Flipping how we define typography in CSS.
fresh - The next-gen web framework.