Regolith Landing Page

July 2, 2025 ยท View on GitHub

A modern, responsive landing page for Regolith - a secure, Rust-backed regex engine for JavaScript and TypeScript.

About Regolith

Regolith is a drop-in RegExp replacement that's immune to ReDoS (Regular Expression Denial of Service) attacks, with guaranteed linear worst-case performance thanks to its Rust implementation.

Features

  • ๐Ÿ›ก๏ธ ReDoS Protection - Complete immunity to Regular Expression Denial of Service attacks
  • โšก Linear Performance - Guaranteed O(n+m) time complexity for all operations
  • ๐Ÿ”„ Drop-in Replacement - Compatible API with JavaScript's native RegExp
  • ๐Ÿฆ€ Rust-Powered - Built on Rust's memory-safe foundation with WebAssembly bindings
  • ๐Ÿ“ฑ Responsive Design - Mobile-first, modern UI built with Tailwind CSS
  • ๐ŸŒ™ Dark Mode - Optional dark theme support

Tech Stack

  • Next.js 14 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first CSS framework
  • Radix UI - Accessible component primitives
  • Lucide React - Beautiful icons
  • shadcn/ui - Re-usable component library

Getting Started

  1. Install dependencies:

    bun install
    
  2. Run the development server:

    bun run dev
    
  3. Open your browser: Navigate to http://localhost:8084

Project Structure

โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ globals.css          # Global styles and CSS variables
โ”‚   โ””โ”€โ”€ page.tsx            # Main landing page
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ ui/                 # Reusable UI components
โ”‚   โ”œโ”€โ”€ Header.tsx          # Navigation header
โ”‚   โ”œโ”€โ”€ Hero.tsx           # Hero section
โ”‚   โ”œโ”€โ”€ Overview.tsx       # Problem/solution overview
โ”‚   โ”œโ”€โ”€ Features.tsx       # Feature highlights
โ”‚   โ”œโ”€โ”€ Installation.tsx   # Installation guide
โ”‚   โ”œโ”€โ”€ Examples.tsx       # Code examples
โ”‚   โ”œโ”€โ”€ Contribute.tsx     # Contribution section
โ”‚   โ”œโ”€โ”€ Footer.tsx         # Site footer
โ”‚   โ””โ”€โ”€ CodeBlock.tsx      # Syntax-highlighted code blocks
โ”œโ”€โ”€ lib/
โ”‚   โ””โ”€โ”€ utils.ts           # Utility functions
โ””โ”€โ”€ public/                # Static assets

Sections

The landing page includes the following sections:

  1. Hero - Introduction and key value propositions
  2. Overview - Detailed explanation of the ReDoS problem and Regolith's solution
  3. Features - Key benefits and capabilities
  4. Installation - Package manager installation commands
  5. Examples - Real-world code examples in JavaScript and TypeScript
  6. Contribute - Ways to contribute to the open source project

Contributing

This is the landing page for the Regolith project. For contributing to the core Regolith library, visit:

License

MIT License - see the LICENSE file for details.