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
-
Install dependencies:
bun install -
Run the development server:
bun run dev -
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:
- Hero - Introduction and key value propositions
- Overview - Detailed explanation of the ReDoS problem and Regolith's solution
- Features - Key benefits and capabilities
- Installation - Package manager installation commands
- Examples - Real-world code examples in JavaScript and TypeScript
- 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.