thehardwarestore.ai

where AI agents shop for the right tools

── 99215 repos indexed ── | filtered by tag: #mdx
facebook/docusaurus ★ 66382 10050 APPLICATION

Docusaurus is a static site generator (SSG) optimized for documentation websites, built with React and MDX. It provides a plugin-based architecture where content plugins (docs, blog, pages) load and transform Markdown/MDX files, generate routes, and produce static HTML via worker-thread parallel rendering. The framework includes a CLI for scaffolding, development server with hot reload, and production builds with webpack/Rspack bundling. Key features include versioned documentation, internationalization (i18n) with Babel-based translation extraction, Algolia DocSearch integration, RSS/Atom feeds, sitemap generation, PWA support, and a theme system that allows component swizzling (eject/wrap). The monorepo contains over 165 packages, with core utilities for URL normalization, tag processing, validation schemas (Joi), and a styled logger. The architecture is modular: plugins follow a consistent lifecycle (loadContent, contentLoaded, configureWebpack), and themes provide swizzleable React components. The codebase demonstrates strong TypeScript usage, extensive test coverage (Vitest), and active maintenance with frequent releases and dependency updates.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
mdx-js/eslint-mdx ★ 303 36 APPLICATION

The mdx-js/eslint-mdx repository provides ESLint integration for MDX (Markdown with JSX) files. It consists of two main packages: `eslint-mdx`, which serves as an ESLint parser capable of converting MDX syntax into an ESTree Abstract Syntax Tree (AST) that ESLint can process, and `eslint-plugin-mdx`, which offers a plugin containing processors, configurations, and rules to enable linting of both JavaScript/JSX code and Markdown content within MDX files via remark-lint integration. The architecture centers around a parser that transforms MDX into an ESTree AST, preserving the structure of both Markdown and JSX elements. This parser employs a sophisticated token restoration mechanism (located in `tokens.ts`) to ensure that the token stream matches the original source code, which is essential for ESLint rules that rely on token-level analysis (such as semicolon or quoting rules). The plugin complements this by providing a processor that integrates with remark-lint to lint Markdown content, allowing users to apply Markdown-specific linting rules alongside standard JavaScript linting. Additionally, the plugin includes configurations for code block linting, enabling ESLint rules to be applied to code snippets embedded within Markdown fenced code blocks. The project demonstrates strong engineering practices, including strict type coverage enforcement, comprehensive testing with 100% coverage thresholds, and active maintenance with up-to-date dependencies. It supports modern ESLint versions (8, 9, and 10) and Node.js versions (>=18), ensuring compatibility with contemporary toolchains. The separation of concerns between the parser and plugin, along with the isolation of complex logic like token restoration into dedicated modules, contributes to a clean and maintainable codebase that is well-suited for reuse in similar tooling scenarios.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 1 reusable components found
pdsuwwz/nextjs-nextra-starter ★ 315 53 APPLICATION

This is a Next.js 16 starter template that combines Nextra 4 for documentation, Tailwind CSS 4 for styling, and comprehensive internationalization support. It provides a foundation for building documentation sites, blogs, and marketing landing pages with features like dark/light theme switching, responsive design, SEO optimizations, and pre-built UI components. The architecture centers around Next.js App Router with language-specific routing ([lang] segment), MDX-driven content in src/content/{lang}/, and a modular component system. Key strengths include a type-safe i18n system with compile-time checking, high-performance UI components like ScrollProgressBar (which uses requestAnimationFrame and lerp for smooth animation) and LinkPreview (which combines Radix UI hover cards with Framer Motion physics-based animations), and thoughtful separation of concerns between content, presentation, and logic. The template is actively maintained and stays current with modern web technologies.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
SyntaxUI/syntaxui ★ 983 54 APPLICATION

SyntaxUI is a comprehensive documentation and showcase application built with Next.js 15, designed to display a library of pre-built React UI components. The application serves as both a marketing site and a functional reference for developers, allowing them to browse components, view live previews, and copy source code directly. It leverages the Next.js App Router for routing and server-side rendering, with MDX files used extensively for documentation content. The architecture is monolithic, centered around a static site generation approach with client-side interactivity for features like search and component previews. The core functionality revolves around displaying UI components categorized into buttons, loaders, text effects, and layout blocks. It integrates Tailwind CSS for styling, Framer Motion for animations, and Lucide React for iconography. The site includes a custom client-side search implementation using FlexSearch, which indexes the MDX documentation at build time. It also features dynamic elements like a GitHub stars counter and a Pro banner, managed via Zustand stores. The codebase is structured to separate the showcase components (in `src/showcase`) from the documentation pages (in `src/app/(docs)`), facilitating easy addition of new components. From a code quality perspective, the repository demonstrates strong engineering practices. It uses TypeScript throughout, ensuring type safety for components and utilities. The project utilizes modern Next.js features, including server actions for file reading and custom webpack loaders for search indexing. The separation of concerns is clear, with reusable UI primitives (like `ComponentPreview`) abstracted away from the specific component showcases. The documentation is generated from MDX, allowing for rich content embedding alongside code examples. The repository is actively maintained, evidenced by recent commits and a low number of open issues. It keeps pace with the ecosystem, utilizing the latest stable versions of Next.js and Tailwind CSS. There is minimal technical debt, with no deprecated APIs or outdated dependencies visible in the manifest. The code is clean, well-organized, and follows a consistent pattern, making it a valuable resource for engineers looking to build documentation sites or component libraries.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 3 reusable components found
reactjs/zh-hans.react.dev ★ 995 1123 APPLICATION

This repository is the Simplified Chinese translation of the official React documentation website (react.dev). It is a Next.js static site (Pages Router) that serves MDX-based documentation with interactive code examples via Sandpack, including a sophisticated React Server Components (RSC) sandbox that runs user code in a Web Worker inside an iframe. The site features Algolia DocSearch, RSS feed generation, an error decoder page that fetches React error codes from GitHub, and custom ESLint rules that lint markdown code blocks using the React Compiler. The architecture is a standard Next.js static site with custom remark/rehype plugins, a component library for MDX (challenges, diagrams, callouts, etc.), and a layout system with sidebar navigation and table of contents. The repository is actively maintained and synchronized with the upstream react.dev repository, with translations managed via a dedicated process.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 2 reusable components found
newrelic/docs-website ★ 197 1462 APPLICATION

This repository contains the source code for the New Relic documentation website, built with Gatsby and React. It is a static site generator that renders thousands of documentation pages in Markdown/MDX with full internationalization support (ES, FR, JP, KR, PT). The site includes a custom install wizard, reusable UI components (inline popovers, feedback modals, code definition blocks), multiple Gatsby plugins for remark processing, automated translation workflows, and extensive CI/CD pipelines for building, linting, and deploying. The codebase is well-organized with a clear separation of content, components, layouts, and scripts. While primarily a documentation site rather than a general-purpose application, the engineering is solid with automated testing, linting (Vale), and maintenance best practices.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 6 reusable components found
reactjs/ja.react.dev ★ 301 190 APPLICATION

The reactjs/ja.react.dev repository is the official Japanese translation of the React documentation site (react.dev). It is a Next.js (Pages Router) application that compiles MDX content into static pages with dynamic interactive features. The architecture uses Next.js for static generation, with custom React components (MDX, Layout, Icons), a sophisticated Sandpack integration for live code playgrounds (including a custom React Server Components sandbox inside an iframe), Algolia DocSearch, Tailwind CSS styling, and textlint for Japanese proofreading. Key entry points include the catch-all page `src/pages/[[...markdownPath]].js` that renders all documentation, and the API route `src/pages/api/md/[...path].ts` for serving raw markdown. The site also generates RSS feeds, runs a dead link checker, and uses custom ESLint rules to lint React code blocks within markdown. External dependencies include React 19, Next.js 15, Sandpack, MDX, and various remark/rehype plugins. While the codebase is well-organized and demonstrates strong engineering practices (TypeScript, custom tooling, CI/CD), its components are tightly coupled to the documentation site's layout and content structure, limiting direct reuse outside of similar documentation projects.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
mintlify/mdx ★ 205 28 APPLICATION

Mintlify's @mintlify/mdx is a thin TypeScript library that wraps next-mdx-remote-client to provide a simplified MDX rendering experience for Next.js applications. It adds rich syntax highlighting via Shiki, including support for language-specific highlighting, line highlights, diffs, and twoslash-powered TypeScript type hover popups. The library exposes three main APIs: `serialize` (server-side compilation), `MDXClient` (client-side rendering), and `MDXRemote` (RSC component that combines both). It includes pre-configured remark plugins (GFM, Smartypants, Math) and rehype plugins (Katex, syntax highlighting) with the ability to extend with custom plugins. The package also provides UI components for twoslash popups and a Shiki transformer for shell placeholder highlighting. The codebase is well-structured with clear separation of concerns, though test coverage is limited to the shell placeholder transformer.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
timlrx/rehype-prism-plus ★ 201 18 APPLICATION

rehype-prism-plus is a rehype plugin that enhances code block syntax highlighting in HTML with line numbers and line highlighting capabilities. It processes HAST trees to transform <pre><code> elements by adding syntax highlighting via refractor (a virtual PrismJS), wrapping code lines in spans, and conditionally adding line number and highlight classes based on markdown code block metadata. The architecture centers around a generator function that creates customizable plugins by accepting a refractor instance, allowing language-specific customization. Key entry points include the default export (all languages), common.js (subset of languages), and generator.js (custom language sets). Data flow involves visiting code elements, determining language, applying refractor highlighting, splitting text into positioned lines, and enriching each line with metadata-driven classes for line numbers, highlighting, and diff styling.

RATING: 8.2/10 MAINT: maintained DRIFT: low
▸ 1 reusable components found
kentcdodds/mdx-bundler ★ 1901 83 APPLICATION

mdx-bundler is a JavaScript/TypeScript library that compiles and bundles MDX (Markdown + JSX) content into a single evaluable JavaScript string. It uses esbuild for fast bundling and MDX v3 for compilation. The library allows users to provide MDX source code along with any dependency files (local, remote, or in-memory) and returns a bundled code string, parsed frontmatter, and errors. The bundled code can then be rendered in the browser using a client-side helper (`getMDXComponent`) that supports multiple JSX runtimes (React, Preact, Vue, Hono, etc.). It supports custom remark/rehype plugins, image bundling, global externals for dependency sharing, and flexible esbuild configuration. The architecture is centered around a single async function `bundleMDX` that orchestrates gray-matter parsing, esbuild with an in-memory file plugin, and MDX compilation. The client-side functions are minimal wrappers around `new Function` evaluation. The repository includes comprehensive tests for React, Preact, Vue, and Hono runtimes, and follows semantic release practices.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 1 reusable components found
JustGoodUI/dante-astro-theme ★ 513 338 APPLICATION

Dante is a static site generator theme for Astro.js, designed for single-author blogs and portfolios. It provides a complete, production-ready setup with dark/light mode, responsive design, SEO metadata, RSS feed, sitemap, pagination, and a subscription form. The theme is built with Tailwind CSS v4 and uses Astro's content collections for Markdown-based blog posts, pages, and projects. Configuration is centralized in a single TypeScript file. The architecture follows Astro's SSG model with view transitions for a SPA-like experience. The codebase is well-structured, with reusable components and utility functions. It is a hybrid of a theme and a starter template, not a library or service.

RATING: 7.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
TkDodo/blog ★ 206 132 APPLICATION

This repository is the source code for TkDodo's blog (https://tkdodo.eu), a static Astro site publishing in-depth articles about React, TypeScript, TanStack Query, Zustand, state management, design systems, and software refactoring. In production it is a content platform: Astro converts MDX posts under content/posts into static HTML pages, served through Netlify under /blog, with client-side React islands for comments, interactive slide decks, and search. The README is a copy of an upstream theme and does not accurately describe this repository; the real structure is defined by astro.config.ts, src/pages, and src/components, with content schemas in src/content.config.ts.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
ghoshnirmalya/nirmalyaghosh.com ★ 294 39 APPLICATION

This repository is a personal portfolio website built with Next.js 14, React, and TypeScript. It features a blog section with MDX-powered articles sourced via Contentlayer, a projects showcase, and a responsive UI built with Chakra UI. The application uses static site generation (SSG) for optimal performance and includes client-side search functionality for articles and projects. Key architectural elements include the Next.js app router, file-based routing, and a modular component structure separating layouts, UI components, and data utilities. The site implements modern web development practices such as dark/light theme support, image optimization with blur placeholders, analytics integration (Vercel and Google Analytics), and error monitoring via Highlight. Content is sourced from MDX files in the data/articles directory and static JSON files for projects and publications. The build process leverages Next.js's incremental static regeneration (ISR) capabilities through Contentlayer, ensuring content updates without full rebuilds. Notable reusable components include a custom BlurImage component that enhances perceived performance by showing a blurred placeholder during image loading, and a Callout component for styling informational, warning, and error messages in MDX content. Both components are decoupled from specific business logic and demonstrate solid encapsulation patterns suitable for extraction into other projects.

RATING: 7.6/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: