Skip to content

mblode/blodemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blode.md

Ship beautiful docs from your terminal. Write MDX locally, deploy with one command.

Blode.md is a multi-tenant documentation platform — serve versioned MDX docs per tenant from a shared Next.js frontend backed by a Hono API.

Apps

App Description Port
apps/docs Next.js documentation frontend with dynamic tenant routing and MDX rendering 3001
apps/api Hono REST API for multi-tenant data, content, and Vercel Blob storage 4000
apps/cli CLI tool for deploying docs content via the API

Packages

Package Description
@repo/contracts Zod schemas shared between frontend and API
@repo/db Drizzle ORM setup and PostgreSQL migrations
@repo/models Core data models
@repo/common Shared utilities
@repo/validation Validation logic built on @repo/models
@repo/ui Shared React component library
@repo/api-client HTTP client utilities for consuming the API
@repo/prebuild Pre-build YAML processing
@repo/previewing Preview data handling
@repo/typescript-config Shared tsconfig.json configurations
@repo/deploy-action Deployment automation helpers

Requirements

  • Node >= 18
  • npm 10.9.3

Quick Start

npm install
cp .env.example .env.local   # fill in DATABASE_URL, BLOB_READ_WRITE_TOKEN, etc.
npm run dev                  # docs → http://localhost:3001  api → http://localhost:4000

Development

# All apps
npm run dev

# Single app
npx turbo run dev --filter=docs
npx turbo run dev --filter=api

# Build all
npm run build

Testing

npm run test              # full suite: unit → component → integration → smoke → e2e
npm run test:unit         # Vitest unit tests
npm run test:component    # Vitest component tests
npm run test:integration  # Vitest integration tests
npm run test:smoke        # Vitest smoke tests
npm run test:e2e          # Playwright end-to-end tests

Code Quality

npm run fix           # Ultracite auto-fix (lint + format)
npm run check         # Ultracite check without fixing
npm run check-types   # TypeScript type check across all workspaces
npm run lint          # Oxlint across monorepo
npm run format        # Oxfmt across monorepo

License

MIT