How toosign00/my-blog works
This is a Next.js personal blog and portfolio. Visitors browse the home page, explore posts by category or tag, read individual articles, and view projects or the author profile. Content utilities load and shape post and project data; page routes present it, while RSS and sitemap routes publish it for other consumers. Separate features provide link previews, visit counts, and a GitHub contribution heatmap. The source index and excerpts support several connections; unsampled route behavior is represented cautiously, and no README was provided.
Main entry points: (default)/page.tsx Home page · post-util.ts Post content · project-util.ts Project content · categories/page.tsx Category and tag pages
Components 26
Site experience
- Home page
src/app/(default)/page.tsx - Site layout
src/components/layout/Root.tsx
Content discovery
- Post pages
src/app/(default)/posts/[slug]/page.tsx - Post content
src/utils/post-util.ts - Category and tag pages
src/app/(default)/categories/page.tsx - Post lists
src/components/ui/postGrid.tsx - MDX components
src/components/ui/mdx/mdxComponent.tsx
Portfolio profile
- Project pages
src/app/(wide)/projects/[slug]/page.tsx - Project content
src/utils/project-util.ts - Project browsing
src/components/project/ProjectSection.tsx - About page
src/app/(default)/about/page.tsx - Profile and experience
src/constants/about.constants.ts - Contribution heatmap
src/components/ActivityHeatmap/index.tsx
APIs and metrics
- Visit widget
src/components/ViewsWidget/index.tsx - Views client
src/hooks/useViews.ts - Views API
src/app/api/views/route.ts - View counting
src/utils/views-util.ts - D1 database
src/utils/d1-util.ts - Link preview API
src/app/api/link-preview/route.ts - Preview fetching and parsing
src/utils/link-preview-util.ts - Pinned URL request
src/utils/link-preview-request-util.ts
Search and feeds
- RSS feed
src/app/rss.xml/route.ts - Sitemap
src/app/sitemap.xml/route.ts - Metadata generation
src/utils/metadata-util.ts
Other components
- Visitor
- GitHub
Connections 27
- Visitor → Home page: opens
- Visitor → Post pages: reads
- Visitor → Category and tag pages: browses
- Visitor → Project pages: views
- Visitor → About page: views
- Home page → Post content: loads posts
src/app/(default)/page.tsx - Home page → Post lists: renders
src/app/(default)/page.tsx - Home page → Contribution heatmap: renders
src/app/(default)/page.tsx - Category and tag pages → Post content: loads posts
src/app/(default)/categories/page.tsx - Category and tag pages → Post lists: renders
- Post pages → MDX components: renders
- Project pages → Project content: loads projects
- Project browsing → Project content: sorts projects
src/components/project/ProjectSection.tsx - About page → Profile and experience: displays profile
src/app/(default)/about/page.tsx - About page → Metadata generation: generates metadata
src/app/(default)/about/page.tsx - Site layout → Home page: frames pages
- Visit widget → Views client: uses
- Views client → Views API: requests counts
src/hooks/useViews.ts - Views API → View counting: reads and records
src/app/api/views/route.ts - View counting → D1 database: persists counts
src/utils/views-util.ts - Link preview API → Preview fetching and parsing: fetches preview
src/app/api/link-preview/route.ts - Preview fetching and parsing → Pinned URL request: requests URL
src/utils/link-preview-util.ts - RSS feed → Post content: loads posts
src/app/rss.xml/route.ts - RSS feed → Project content: loads projects
src/app/rss.xml/route.ts - Sitemap → Post content: loads posts
src/app/sitemap.xml/route.ts - Sitemap → Project content: loads projects
src/app/sitemap.xml/route.ts - Contribution heatmap → GitHub: loads contributions