Skip to content

Repository files navigation

🚀 behindTheTechz

behindTheTechz is a modern, high-performance blog platform designed for interlinked content. It combines the simplicity of Markdown with the power of a digital garden, featuring an interactive graph visualization of your knowledge base.

behindTheTechz Banner

✨ Features

  • 🕸️ Interactive Graph View: Visualize connections between posts in a 2D force-directed graph.
  • 📝 DB-Backed Content: Posts are served directly from PostgreSQL via Prisma.
  • 📓 Notion-Style Sidebar: A clean, collapsible sidebar for easy navigation through categories and favorite posts.
  • 🔍 Smart Search: Instant search and filtering to find exactly what you're looking for.
  • 🎨 Stunning Aesthetics: Modern design with glassmorphism, smooth animations, and a focus on readability.
  • 🔢 Math & Code: First-class support for KaTeX math blocks and Shiki-powered syntax highlighting.
  • 🇧🇩 Bengali Support: Optimized typography and interlinking specifically for Bengali language content.
  • ⭐ Post Favorites & Interactions: Save favorite articles locally, clap for posts, and track post views seamlessly.
  • 📚 Post Series: Read and manage posts as a curated series or collection.
  • 📱 Fully Responsive: Thoughtfully adjusted layouts to ensure a seamless experience across mobile and desktop.
  • ☁️ Scalable Media: Integrated Supabase storage for fast and reliable image/file hosting.
  • 🚀 Analytics & Monitoring: Deployed on Vercel with integrated Speed Insights and Analytics.
  • 💻 CLI Content Management: A standalone techz CLI tool to create, manage, sync markdown files, and upload images directly to the blog.

🛠️ Tech Stack

🚀 Getting Started

Prerequisites

  • Node.js 20+
  • npm / pnpm / yarn

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/behindthetechz.git
    cd behindthetechz
  2. Install dependencies:

    pnpm install
  3. Run the development server:

    pnpm run dev
  4. Open http://localhost:3000 in your browser.

📂 Project Structure

  • /app: Next.js App Router pages and layouts.
  • /components: Reusable UI components (Sidebar, Graph, Blog cards, etc.).
  • /scripts/backup-db-posts.mjs: DB JSON backup script.
  • /lib: Utility functions and shared logic.
  • /hooks: Custom React hooks.

Database Operations

  • Export DB snapshot: pnpm run db:backup:json

Cache Revalidation

  • Endpoint: POST /api/revalidate
  • Protect with REVALIDATE_SECRET (optional)

🤝 Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.


Built with ❤️ for the Bangladeshi developer community.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages