A high-performance, modern personal engineering blog and digital portfolio built with Astro 5, Svelte 5, and Tailwind CSS. Customized and maintained by Shishir Pandey (@shishir0x), this platform showcases technical deep-dives, software projects, and system design explorations with instant page loads, offline full-text search, and a rich interactive aesthetic.
Live Website: https://shishir-pandey.com.np
Core Theme Base: Customized from the open-source Firefly theme (derived from Fuwari by saicaca).
- Key Features
- Tech Stack
- Project Structure
- Prerequisites
- Getting Started
- Available Scripts
- Configuration
- Content Management
- Deployment
- License
- Author & Contact
- Blazing Fast Performance: Static Site Generation (SSG) with Astro's Islands Architecture delivers minimal JavaScript to the client.
- Fluid Page Transitions: Integrated with Swup for smooth, SPA-like navigation without full browser refreshes.
- Client-Side Static Search: Powered by Pagefind for fast, zero-server full-text indexing and search directly in the browser.
- Markdown & MDX Support: Comprehensive rendering pipeline featuring:
- Math typesetting via KaTeX (
remark-math&rehype-katex) - Interactive Mermaid.js diagrams
- GitHub-style callouts / admonitions (
note,tip,important,caution,warning) - Automated reading time and word count estimation
- Automatic heading anchors and slug generation
- Math typesetting via KaTeX (
- Expressive Code Highlighting: Syntax highlighting powered by Astro Expressive Code with line numbering, custom copy button, language badges, and collapsible code sections.
- Adaptive Dark & Light Theme: Dynamic theming powered by OKLCH color palettes with interactive hue rotation and system preference detection.
- Integrated Background Audio Player: Svelte 5 powered music widget with YouTube playlist streaming, customizable play modes (list, repeat, shuffle), and lyrics support.
- Interactive UI Components: Responsive layout switchers (list vs. grid view), wallpaper modes (banner with wave animation and typewriter effect, overlay, or clean), and multi-tier Table of Contents (TOC).
- Internationalization (i18n): Multi-language support built for English (
en), Japanese (ja), Russian (ru), Simplified Chinese (zh_CN), and Traditional Chinese (zh_TW). - Waline Comments: Seamless privacy-focused commenting system integration hosted on Vercel.
| Domain | Technology | Description |
|---|---|---|
| Framework | Astro 5.14 | Static site generator utilizing Content Collections & Islands Architecture |
| Interactive UI | Svelte 5 | High-performance reactive widgets for audio, search, and theme controls |
| Styling | Tailwind CSS 3.4 | Utility-first CSS with Typography plugin, PostCSS, and Stylus preprocessing |
| Search Engine | Pagefind 1.4 | Static full-text search indexing generated during build |
| Transitions | Swup | Client-side page transition framework |
| Code Blocks | Expressive Code | Enhanced code highlighting with copy buttons, badges, and line numbers |
| Math & Media | KaTeX / Fancybox | LaTeX formula rendering and lightbox image zoom |
| Linter & Formatter | Biome 2.2 | Modern, fast linter and formatter for JavaScript/TypeScript and web assets |
| Package Manager | pnpm 9 | Fast, disk-efficient package manager strictly enforced across the project |
blog/
βββ docs/ # Internal component documentation and migration notes
βββ public/ # Static assets (favicons, wallpaper images, avatars)
β βββ assets/images/ # Backgrounds, avatars, and article visual assets
β βββ favicon-white.ico # Site favicon
β βββ pio/ # Widget assets
βββ scripts/
β βββ new-post.js # CLI tool for scaffolding new blog posts with frontmatter
βββ src/
β βββ components/ # Modular Astro & Svelte UI components
β β βββ comment/ # Waline comment system wrapper
β β βββ content/ # PostCard, PostMeta, Profile, and StatCard widgets
β β βββ control/ # Pagination, back-to-top, and navigation buttons
β β βββ effects/ # Sakura particle canvas and Fancybox image preview
β β βββ features/ # Audio & music manager components
β β βββ interactive/ # Svelte 5 controls (Search, Theme switch, Wallpaper switch)
β β βββ layout/ # Navbar, Sidebar, Footer, and responsive menus
β β βββ misc/ # AudioPlayer, ImageSetter, License, and VideoPlayer
β β βββ widget/ # Profile, Announcement, TOC, Categories, and Tags widgets
β βββ config/ # Centralized modular TypeScript configurations
β β βββ siteConfig.ts # Primary website metadata, theme hue, and wallpaper
β β βββ profileConfig.ts # Author bio, avatar, and social media handles
β β βββ musicConfig.ts # Music playlist, YouTube track list, and audio settings
β β βββ commentConfig.ts # Waline server URL and visitor metrics
β β βββ navBarConfig.ts # Navigation menu links and dropdown structure
β β βββ sidebarConfig.ts # Sidebar component ordering and responsive breakpoints
β βββ content/
β β βββ posts/ # Blog posts in Markdown (.md) and MDX (.mdx)
β β βββ spec/ # Static spec pages (about.md)
β β βββ config.ts # Content collections schema definition (Zod)
β βββ i18n/ # Localization strings (EN, JA, RU, ZH-CN, ZH-TW)
β βββ layouts/ # Root HTML structure (Layout.astro, MainGridLayout.astro)
β βββ pages/ # File-based routing ([...page].astro, posts, archive, rss, robots)
β βββ plugins/ # Custom Remark and Rehype markdown extensions
β βββ styles/ # Global CSS, Stylus palettes, and animations
β βββ types/ # TypeScript interfaces for configuration and posts
β βββ utils/ # Helper functions (content filtering, dates, settings)
βββ astro.config.mjs # Astro integrations, server port (5173), and Markdown plugins
βββ biome.json # Biome linter and formatter configuration
βββ package.json # Project dependencies and script commands
βββ pagefind.yml # Pagefind indexer exclusion rules
βββ tailwind.config.cjs # Tailwind CSS theme configuration
βββ vercel.json # Production deployment headers and caching configuration
Before installing and running the project locally, ensure you have:
- Node.js:
v18.0.0or higher (Node.js 20+ LTS recommended) - pnpm:
v9.0.0or higher (The project strictly enforcespnpmvianpx only-allow pnpm)
To verify your installation:
node -v
pnpm -vIf you do not have pnpm installed:
npm install -g pnpmgit clone https://github.com/shishir0x/blog.git
cd blogInstall all project dependencies using pnpm:
pnpm installNote
Do not use npm install or yarn install. The repository includes a preinstall check that enforces pnpm.
pnpm devThe Astro development server will start locally:
π astro v5.14.7 started in 1500ms
β Local http://localhost:5173/
β Network use --host to expose
Open http://localhost:5173 in your browser.
To build the static HTML output and generate the client-side search index:
pnpm buildThis compiles all pages into dist/ and automatically executes pagefind --site dist.
pnpm previewInspect the compiled production bundle locally to verify static assets and search functionality.
The following commands are defined in package.json:
| Command | Action | Description |
|---|---|---|
pnpm dev |
astro dev |
Starts the local dev server on port 5173 with Hot Module Replacement |
pnpm start |
astro dev |
Alias for pnpm dev |
pnpm build |
astro build && pagefind --site dist |
Builds the static website and indexes content for Pagefind search |
pnpm preview |
astro preview |
Serves the built dist/ directory locally |
pnpm new-post <name> |
node scripts/new-post.js <name> |
Scaffolds a new post in src/content/posts/ with default frontmatter |
pnpm check |
astro check |
Runs Astro diagnostic type-checks on .astro and content files |
pnpm lint |
biome check --write ./src |
Runs Biome linter across src/ and automatically fixes safe warnings |
pnpm format |
biome format --write ./src |
Formats all source files according to Biome configuration |
All site personalization is managed cleanly through TypeScript files inside src/config/. No .env file is required for local development.
Controls the site title, description, default language, theme color, and wallpaper behavior:
export const siteConfig: SiteConfig = {
title: "shishir0x Blog",
description: "Personal engineering blog by Shishir Pandey...",
lang: "en", // "en" | "zh_CN" | "zh_TW" | "ja" | "ru"
themeColor: {
hue: 245, // OKLCH hue value (245 = Sky Blue)
fixed: false, // If true, disables user theme-color picker
defaultMode: "system", // "light" | "dark" | "system"
},
backgroundWallpaper: {
mode: "banner", // "banner" | "overlay" | "none"
switchable: true,
banner: {
homeText: {
enable: true,
title: "Writing Code, Living LifeοΌ",
typewriter: { enable: true, speed: 100 },
},
waves: {
enable: { desktop: true, mobile: true },
performance: { quality: "high", hardwareAcceleration: true },
},
},
},
};Controls the avatar, bio, and social links rendered in the sidebar:
export const profileConfig: ProfileConfig = {
avatar: "/assets/images/avatar.webp",
name: "Shishir Pandey",
bio: "Hello, I'm Shishir.",
links: [
{ name: "GitHub", icon: "fa6-brands:github", url: "https://github.com/shishir0x" },
{ name: "Email", icon: "fa6-solid:envelope", url: "mailto:shishirpandey085@gmail.com" },
{ name: "YouTube", icon: "fa6-brands:youtube", url: "https://www.youtube.com/@shishir0_x" },
{ name: "Instagram", icon: "fa6-brands:instagram", url: "https://instagram.com/shishir0x" },
{ name: "TikTok", icon: "fa6-brands:tiktok", url: "https://www.tiktok.com/@shishir_0x" },
],
};Configures the background audio player. Supported modes: "youtube", "meting", or "local":
export const musicPlayerConfig: MusicPlayerConfig = {
enable: true,
showInNavbar: true,
mode: "youtube",
volume: 0.7,
playMode: "list", // 'list' | 'one' | 'random'
youtube: {
playlist: [
{ name: "Apocalypse", artist: "Cigarettes After Sex", id: "sElE_BfQ67s" },
// ... additional tracks
],
},
};Configures the Waline comment backend:
export const commentConfig: CommentConfig = {
enable: true,
enableVisitorCount: false,
waline: {
serverURL: "https://blogcomment-ten.vercel.app/",
lang: "en",
},
};Use the included helper script to scaffold a new article:
pnpm new-post my-first-postThis creates src/content/posts/my-first-post.md with pre-populated frontmatter:
---
title: my-first-post
published: 2026-10-27
description: ''
image: ''
tags: []
category: ''
draft: false
lang: ''
---Defined in src/content/config.ts, posts support the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
title |
string |
Yes | Post title displayed in headlines and cards |
published |
date |
Yes | Initial publication date (YYYY-MM-DD) |
updated |
date |
No | Last update timestamp |
description |
string |
No | Short excerpt for preview cards and SEO metadata |
image |
string |
No | Cover image path (e.g. /assets/images/cover.png) |
tags |
string[] |
No | Categorical tags (e.g. ["System Design", "Cloud"]) |
category |
string |
No | Main category name for hierarchical navigation |
draft |
boolean |
No | If true, hides the post from production builds (Default: false) |
pinned |
boolean |
No | If true, pins the post to the top of the homepage list |
author |
string |
No | Custom author name (falls back to site author) |
sourceLink |
string |
No | Link to project source code or external publication |
encrypted |
boolean |
No | Enables client-side password protection for the post |
password |
string |
No | Password required when encrypted: true |
audio |
string |
No | Audio URL for AI podcast or article narration |
series |
string |
No | Groups related articles into a sequential reading list |
In addition to standard Markdown, posts support:
- LaTeX Math Equations:
$$f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi$$
- Admonitions / Callout Boxes:
:::note This is an informative note callout. ::: :::tip Here is a helpful tip for deployment. :::
- Mermaid Diagrams:
```mermaid graph TD; Client-->AstroServer; AstroServer-->Pagefind;
The site generates pure static assets into the dist/ directory and can be deployed to any modern static hosting provider.
The repository includes a ready-to-use vercel.json configured with:
- Build Command:
pnpm build - Output Directory:
dist - Install Command:
pnpm install - Production security headers (
X-Content-Type-Options,X-Frame-Options,X-XSS-Protection) - Immutable caching headers for hashed
_astro/bundles - Clean URLs enabled
Deploy steps:
- Connect your GitHub repository to Vercel.
- Set Framework Preset to Astro.
- Vercel automatically detects
vercel.jsonand builds viapnpm build. - Configure your custom domain (e.g.,
shishir-pandey.com.np).
- Build command:
pnpm build - Build output directory:
dist - Node.js version:
>= 18.0.0 - For GitHub Pages, keep the
CNAMEfile in the root directory to maintain custom domain routing.
This project is open-source software licensed under the MIT License.
The underlying theme architecture is adapted and modified from Firefly by CuteLeaf, based on Fuwari by saicaca.
Shishir Pandey
- Website: shishirpandey085.com.np
- GitHub: @shishir0x
- Email: shishirpandey085@gmail.com
- YouTube: @shishir0_x