A modern, TypeScript-first framework for building static Next.js sites with GitHub Pages deployment
NextJS-HTK is a comprehensive framework that provides everything you need to build, manage, and deploy static websites. Built on Next.js and React, it offers:
- π¦ Reusable components and utilities
- π¨ Pre-built templates for common site types
- π Optimized static site generation
- π Multiple content source adapters (Markdown, JSON, APIs)
- π οΈ CLI tools for scaffolding and deployment
- β TypeScript-first with best practices built-in
π§ In Development - Phase 1: Foundation
Currently building the core framework infrastructure. See nextjs_plan.md for the complete roadmap.
- @nextjs-htk/core - Core components, hooks, and utilities
- @nextjs-htk/content - Content source adapters (Markdown, JSON, APIs)
- @nextjs-htk/templates - Pre-built site templates
- @nextjs-htk/cli - Command-line tools
- @nextjs-htk/build-tools - Build and deployment utilities
# Create a new site (coming soon)
npx create-nextjs-htk my-site --template=minimal
# Or clone and develop the framework
git clone <repository-url>
cd nextjs-htk
pnpm install
pnpm dev- Node.js >= 20.0.0
- pnpm >= 8.0.0
# Install dependencies
pnpm install
# Run development mode (watches all packages)
pnpm dev
# Build all packages
pnpm build
# Run linting
pnpm lint
# Format code
pnpm format
# Clean all build artifacts
pnpm cleanThis is a pnpm workspace monorepo with the following structure:
nextjs-htk/
βββ packages/ # Framework packages
β βββ core/ # Core components and utilities
β βββ content/ # Content adapters
β βββ templates/ # Site templates
β βββ cli/ # CLI tools
β βββ build-tools/ # Build utilities
βββ templates/ # Starter templates
βββ docs/ # Documentation
βββ examples/ # Example sites
βββ scripts/ # Development scripts
- minimal - Basic static site
- business - Corporate/service business site
- restaurant - Restaurant/cafe with menu
- blog - Markdown blog with categories
- TypeScript-first - Full type safety and IntelliSense support
- Static Site Generation - Optimized for performance and SEO
- GitHub Pages Ready - Deploy with zero configuration
- Modular Architecture - Use only what you need
- Extensible - Plugin system for content sources and features
- Markdown Support - Write content in markdown with frontmatter
- JSON Data Sources - Structured data from JSON files
- External APIs - Integrate with GitHub, Airtable, or custom APIs
- Type-Safe Configuration - TypeScript-based configuration system
- React Bootstrap - Production-ready UI components
- Responsive Design - Mobile-first, accessible components
- Customizable Themes - Easy color and typography customization
- SEO Optimized - Built-in meta tags and OpenGraph support
- Fast Builds - Optimized build process with pnpm workspaces
- Hot Reload - Instant feedback during development
- Code Quality - ESLint, Prettier, and TypeScript built-in
- CLI Tools - Scaffold projects and automate deployments
NextJS-HTK is perfect for:
- π± Personal blogs and portfolios
- π’ Business and marketing websites
- π½οΈ Restaurant and cafe sites with menus
- π Documentation sites
- π¨ Creative portfolios
- π° News and content sites
- Integration Guide - How to use nextjs-htk in your project
- Publishing Guide - For framework maintainers
- Contributing Guidelines - How to contribute
Check out the /examples directory for working examples:
- Minimal static site
- Blog with markdown posts
- Restaurant site with menu
- Business/corporate site
We welcome contributions! NextJS-HTK is an open-source project and we'd love your help making it better.
How to contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes and commit (
git commit -m 'Add amazing feature') - Push to your branch (
git push origin feature/amazing-feature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
- GitHub Issues - Bug reports and feature requests
- Discussions - Questions and community support
- Pull Requests - Code contributions welcome
Phase 1: Foundation (In Progress)
- β Core framework setup
- β Package configuration
- π§ Core components (BaseLayout, Header, Footer, SEO)
- π§ Content adapters (Markdown, JSON, API)
Phase 2: Content System
- Content source adapters
- Blog template with markdown
- Restaurant template with JSON menu
Phase 3: Templates & CLI
- Pre-built templates
- CLI scaffolding tool
- Configuration wizard
MIT