Skip to content

Gourav2609/light-hooks-doc

Repository files navigation

πŸͺ Light Hooks Documentation

npm version npm downloads bundle size TypeScript License: MIT

The official documentation site for Light Hooks - A collection of lightweight, performant, and type-safe React hooks for modern applications.

πŸ“– Documentation β€’ πŸ“¦ npm Package β€’ πŸ’» GitHub β€’ πŸš€ Examples


🌟 About Light Hooks

Light Hooks is a comprehensive collection of 16+ carefully crafted React hooks designed to solve common development challenges with minimal overhead. Our hooks are:

  • πŸͺΆ Lightweight: Minimal bundle impact with tree-shakable exports
  • ⚑ Performant: Optimized for speed and efficiency
  • πŸ”’ Type-Safe: Full TypeScript support with comprehensive type definitions
  • πŸ§ͺ Well-Tested: Extensively tested across different scenarios
  • πŸ“± Universal: Works seamlessly across web and React Native
  • πŸ”§ Developer-Friendly: Intuitive APIs with excellent documentation

πŸš€ Featured Hooks

🎯 State Management

🌐 Network & Data

πŸ–±οΈ User Interaction

πŸ“± Responsive & Browser

πŸ—οΈ Documentation Site

This repository contains the official documentation website for Light Hooks, built with modern web technologies:

πŸ› οΈ Tech Stack

🎨 Features

  • πŸ“± Responsive Design - Perfect on all devices
  • πŸ” Instant Search - Find hooks and examples quickly
  • 🎨 Syntax Highlighting - Beautiful code examples
  • πŸ“‹ Copy-to-Clipboard - Easy code copying
  • πŸŒ™ Dark Mode - Eye-friendly dark theme
  • ⚑ Fast Loading - Optimized for performance
  • πŸ”— SEO Optimized - Comprehensive meta tags and structured data

🚦 Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, pnpm, or bun

Installation

# Clone the repository
git clone https://github.com/Gourav2609/light-hooks-doc.git
cd light-hooks-doc

# Install dependencies
npm install
# or
yarn install
# or
pnpm install

Development

# Start the development server
npm run dev
# or
yarn dev
# or
pnpm dev

# Open http://localhost:3000 in your browser

Building for Production

# Build the site
npm run build

# Start production server
npm start

πŸ“ Project Structure

light-hooks-doc/
β”œβ”€β”€ app/                    # Next.js app directory
β”‚   β”œβ”€β”€ docs/              # Documentation pages
β”‚   β”œβ”€β”€ blog/              # Blog posts
β”‚   └── globals.css        # Global styles
β”œβ”€β”€ components/            # React components
β”‚   β”œβ”€β”€ ui/                # UI components
β”‚   β”œβ”€β”€ markdown/          # MDX components
β”‚   └── contexts/          # React contexts
β”œβ”€β”€ contents/              # Documentation content
β”‚   β”œβ”€β”€ docs/              # Hook documentation
β”‚   β”‚   β”œβ”€β”€ hooks/         # Individual hook docs
β”‚   β”‚   └── getting-started/
β”‚   └── blogs/             # Blog content
β”œβ”€β”€ lib/                   # Utility functions
β”‚   β”œβ”€β”€ routes-config.ts   # Navigation configuration
β”‚   β”œβ”€β”€ seo.ts            # SEO utilities
β”‚   └── utils.ts          # General utilities
β”œβ”€β”€ public/               # Static assets
└── styles/               # CSS files

πŸ“ Contributing to Documentation

We welcome contributions to improve the documentation! Here's how you can help:

πŸ› Report Issues

  • Found a typo or error? Open an issue
  • Missing examples? Let us know!
  • Broken links? We'll fix them quickly

✨ Contribute Content

  1. Fork the repository
  2. Create a feature branch
    git checkout -b improve-docs
  3. Make your changes
    • Edit MDX files in contents/docs/
    • Add new examples or clarify existing ones
    • Update navigation in lib/routes-config.ts
  4. Test locally
    npm run dev
  5. Submit a pull request

πŸ“‹ Content Guidelines

  • Clear Examples: Provide practical, real-world examples
  • TypeScript First: All examples should include proper typing
  • Consistent Format: Follow the established documentation structure
  • SEO Friendly: Include proper frontmatter and descriptions

πŸ”— Links & Resources

πŸ“– Documentation

πŸ”§ Development

πŸ“Š Analytics & Performance

This documentation site includes:

  • Vercel Analytics - Performance monitoring
  • Core Web Vitals - Loading performance optimization
  • Search Analytics - Documentation usage insights
  • SEO Tracking - Search engine optimization metrics

πŸ“„ License

Documentation site licensed under MIT License.

The Light Hooks library is also licensed under MIT License.


Made with ❀️ by the Light Hooks team

🌟 Star on GitHub β€’ 🐦 Follow Updates β€’ πŸ’¬ Join Discord

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •