Playground

HobeNakiCoffee Playground

Next.js documentation site built with Fumadocs for the হবে নাকি Coffee? project.

This is a Next.js 16.1.6 documentation site built with Fumadocs for the হবে নাকি Coffee? project.

Features

  • Next.js 16.1.6 with App Router
  • Fumadocs for MDX-based documentation
  • Tailwind CSS 4 for styling
  • Biome for linting and formatting
  • TypeScript with strict mode
  • Radix UI components
  • @hugeicons/react for icons
  • lucide-react for icons
  • recharts for charts
  • mermaid for diagrams
  • class-variance-authority for component variants
  • @hobenakicoffee/libraries - Internal library with UI components, utilities, and constants
  • next-themes for dark/light mode theming
  • shadcn for UI components
  • sonner for toast notifications
  • tw-animate-css for animations
  • vaul for drawer components

Getting Started

Install dependencies:

npm install

Run the development server:

npm run dev
# or
pnpm dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Available Scripts

CommandDescription
npm run devStart development server
npm run buildBuild for production
npm run startStart production server
npm run lintRun Biome linter
npm run formatFormat code with Biome
npm run types:checkRun TypeScript type checking

Project Structure

src/
├── app/                    # Next.js App Router pages
│   ├── (home)/             # Landing page route group
│   ├── docs/               # Documentation layout and pages
│   ├── api/                # API routes
│   ├── llms.txt/           # LLMs routes
│   ├── og/                 # Open Graph image generation
│   └── *.tsx               # Page components
├── components/             # React components
│   ├── ai/                 # AI-related components
│   └── mdx/                # MDX custom components
├── lib/                    # Utility functions
│   ├── cn.ts              # Class name merging
│   ├── source.ts          # Fumadocs source config
│   ├── utils.ts           # Utility functions
│   └── layout.shared.tsx  # Shared layout components
├── constants/              # Global constants
│   └── index.ts
├── mdx-components.tsx     # MDX component mappings
└── app/
    └── global.css         # Global styles
content/
└── docs/                   # MDX documentation files
    ├── components/         # Component documentation
    ├── schemas/            # Schema documentation
    └── supabase/           # Supabase documentation
reference/
├── schemas/                # SQL schema files
└── ui/                     # UI component reference
source.config.ts            # Fumadocs configuration

Documentation

Documentation is written in MDX and stored in content/docs/. The site uses Fumadocs to render MDX content with support for:

  • Custom components
  • Syntax highlighting
  • Navigation
  • Search
  • Mermaid diagrams

@hobenakicoffee/libraries

This project uses @hobenakicoffee/libraries (v1.17.1) which provides:

Entry Points

EntrypointDescription
@hobenakicoffee/librariesMain entry (constants)
@hobenakicoffee/libraries/constantsConstants and types
@hobenakicoffee/libraries/utilsUtility functions
@hobenakicoffee/libraries/typesTypeScript types
@hobenakicoffee/libraries/moderationContent moderation
@hobenakicoffee/libraries/providers/theme-providerTheme provider
@hobenakicoffee/libraries/lib/utilsClass merging utilities
@hobenakicoffee/libraries/components/*UI components

UI Components

Accessible components built on Radix UI: alert, alert-dialog, avatar, badge, breadcrumb, button, button-group, calendar, card, chart, checkbox, dialog, drawer, dropdown-menu, empty, empty-minimal, field, input, input-group, input-otp, item, label, popover, radio-group, select, separator, sheet, sidebar, skeleton, sonner, spinner, table, tabs, textarea, toggle, toggle-group, tooltip.

Constants

Visibility, productInfo, companyInfo, PaymentTypes, PaymentStatuses, PaymentProviders, PaymentDirections, SupporterPlatforms, ServiceTypes

Utilities

checkModeration, formatAmount, formatSignedAmount, formatDate, formatNumber, formatToPlainText, getSocialHandle, getSocialUrl, getUserNameInitials, getUserPageLink, openInNewWindow, shareToFacebook, shareToInstagram, shareToLinkedIn, shareToX, printQrSvg, toHumanReadable, validatePhoneNumber

Learn More

On this page