How this site is built
A small, fast site that I can update from my phone. Here's every part.
The short version
The pages are made by Astro and hosted on Vercel. Posts, photos and the reading nook live in Sanity, which I write in from my phone.
What does what
| Job | Tool |
|---|---|
| Building the pages | AstroPages are built on request and cached for a minute, so new posts appear on their own. |
| Hosting and deploys | VercelEvery push to the main branch goes live in about a minute. |
| Keeping the code | GitHubA private repository for the site's code. |
| Storing posts, photos and the reading list | SanityA hosted content store that holds every post, photo and book. |
| Writing from my phone | Sanity StudioSanity's editor, open in my phone's browser. |
| Resizing and watermarking photos | Astro images + sharpEach size is made the first time someone views it, then cached for a year. |
| Newsletter and contact form | ResendCalled from the server, which keeps the key private. |
| Tip jar checkout | StripeYou pay on Stripe's own secure page. |
| Long videos | YouTubeLoaded only when you press play. |
| The weather line | Open-MeteoA free weather service, checked at most once a minute. |
| Visitor counts | Vercel Web AnalyticsAnonymous, privacy-friendly stats. |
| Typeface | CambriaWith Caladea as the stand-in where Cambria is missing. |
Your privacy
- Visitor counts are anonymous.
- Your email is kept only if you sign up for Trail Mail, and you can leave any time.
- Card details go straight to Stripe.