Essasys, Opinions and Ideas on Philosophy, Leadership, AI, Tech and whatever I am building...
Tip
Please feel free to reuse the source code to create your own Personal Page / Blog.
The source code is available under the Apache License 2.0. You are free to use, modify, and distribute it — see LICENSE for full terms.
The blog content is Kunal Suri's intellectual property, released under Creative Commons Attribution 4.0 International (CC BY 4.0). You are welcome to share and adapt it, but proper attribution is required.
Suggested Citation Format (IF Needed):
Suri, K. "Post Title." Kunal Suri's Blog. Available at:
https://kunalsuri.github.io/DOI: to be assigned via Zenodo
A persistent DOI for the full archive will be made available via Zenodo in the future. Once assigned, please prefer the DOI link for long-term citation stability (if needed).
🛠️ CLICK HERE: Details on Technical Stack & How to Use the Codebase 🔽
| Layer | Technology |
|---|---|
| Framework | Astro 7 — static output, zero JS by default |
| Styling | Tailwind CSS v4 — CSS-first config via src/styles/global.css |
| Language | TypeScript (strict) + astro check |
| Islands | Preact (compat) — ready for interactivity when needed |
| Search | Pagefind — static search index, built post-build |
| Feeds & AI | RSS (/rss.xml), Sitemap (/sitemap-index.xml), AI discoverability (/llms.txt, /llms-full.txt) |
| CMS Environment | Studio local interactive CMS (/studio dev route via Vite middleware plugin) |
| Deployment | GitHub Actions → GitHub Pages (automatic on push to main) |
Prerequisites: Node.js 20+ (24 recommended)
# Install dependencies
npm install
# Start dev server → http://localhost:4321
npm run dev
# Production build → dist/
npm run build
# Preview the production build locally
npm run preview
# Type-check with astro check
npm run checkThe project includes an extensive Vitest test suite covering unit tests, content validation, build output, reader experience, AI discoverability, and SEO integrity.
# Run the full test suite (unit + integration)
npm test
# Run only unit tests (fast, no build needed)
npm run test:unit
# Run only integration tests (triggers a build if dist/ is missing)
npm run test:integration
# Run tests in watch mode during development
npm run test:watchtests/
├── unit/ # Fast, pure-function & module tests (no Astro runtime)
│ ├── consts.test.ts # Site constants — shape and value guards
│ ├── markdown-preview.test.ts# Live markdown preview & asset URL rewrites
│ ├── reading-time.test.ts # readingTime() — word count and edge cases
│ ├── studio-fs.test.ts # Studio local filesystem operations & post file handling
│ ├── studio.test.ts # Studio state & management utilities
│ └── taxonomy.test.ts # slugify() — URL-safe slug generation
└── integration/ # File-system, reader-experience, and build-output tests
├── ai-discoverability.test.ts# llms.txt & llms-full.txt feeds validation
├── blog-posts.test.ts # Validates actual .md/.mdx files on disk
├── build.test.ts # Build output — pages, SEO tags, links
├── content-schema.test.ts # Zod schema for blog front-matter
├── ensure-build.ts # Concurrency-safe build lock helper
├── reader-experience.test.ts # Layout, reading experience, and theme toggle guards
└── rss.test.ts # RSS feed structure and content
| Layer | What it tests | Speed |
|---|---|---|
| Unit | Utility functions, constants, configuration | ⚡ < 1 s |
| Integration (content) | Blog post files, Zod schema | ⚡ < 1 s |
| Integration (build) | HTML output, SEO, RSS, links | 🐢 ~10-20 s (runs astro build) |
- Create a
.test.tsfile in the appropriate directory (tests/unit/ortests/integration/). - Import from
vitest:import { describe, it, expect } from 'vitest'; - Source code lives in
src/— import utilities directly (e.g.,import { slugify } from '../../src/utils/taxonomy';). - Run
npm testto verify.
Drop a Markdown (.md) or MDX (.mdx) file into src/content/blog/:
---
title: "Your title"
description: "One-line summary, used for SEO and the post list."
pubDate: 2026-07-09
tags: ["astro"]
draft: false # true → hidden in production, visible in dev
---
Your content here.The filename becomes the URL slug — my-post.md → /blog/my-post/.
Every push to main triggers the CI/CD pipeline:
.github/workflows/deploy.ymlruns on GitHub Actions- Builds via the official
withastro/action - Publishes to GitHub Pages automatically
No local build required.
One-time setup: GitHub → Settings → Pages → Build and deployment → Source → "GitHub Actions"
This project uses a dual-license model:
| What | License | File |
|---|---|---|
| Source code — templates, components, config, styles, scripts | Apache License 2.0 | LICENSE |
Blog content — posts, articles, and essays in src/content/blog/ |
CC BY 4.0 | CONTENT_LICENSE |
Built with ☕ and curiosity by Kunal Suri