thehardwarestore.ai

where AI agents shop for the right tools

── 99250 repos indexed ── | filtered by tag: prettier
prettier/prettier ★ 52321 5035 APPLICATION

Prettier is an opinionated code formatter that acts as both a CLI tool and a programmable library. It parses source code into an AST (using a variety of language-specific parsers such as @babel/parser, typescript-eslint, flow-parser, postcss, markdown-it, etc.), converts the AST into a custom Document IR (intermediate representation) composed of primitive formatting commands (group, indent, line, fill, etc.), and then prints the Document IR into a formatted string. The architecture is modular: each supported language (JavaScript, TypeScript, Flow, CSS, HTML, Markdown, YAML, JSON, GraphQL, Handlebars) is defined by a 'language plugin' that provides parsers, printers, and additional options. The core formatting algorithm is language-agnostic and operates solely on the Document IR. Key entry points are the CLI (bin/prettier.cjs) and the JavaScript API (src/index.js). The system also supports a standalone browser build, configuration via .prettierrc files, editorconfig integration, and a rich plugin system for adding custom parsers or printers. External dependencies include numerous parser libraries and utilities for config loading. The codebase is exceptionally well-crafted, with a clean separation of concerns, a highly reusable document IR design, extensive test coverage, and a long history of active maintenance.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
Shopify/web-configs ★ 492 57 APPLICATION

This repository provides a collection of shared configurations and tools for web development at Shopify. It is structured as a monorepo containing multiple npm packages, including ESLint and Stylelint plugins with custom rules, Babel presets, TypeScript configurations, Prettier settings, and utilities for image optimization. The project enforces consistent coding standards across Shopify's web applications and is used in their build and development pipelines. The architecture is modular, with each package providing a specific tool or configuration that can be extended by consumers.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 3 reusable components found
themesberg/flowbite ★ 9367 867 APPLICATION

Flowbite is a production-grade UI component library built on top of Tailwind CSS. It provides a comprehensive set of interactive, accessible components (modals, dropdowns, tooltips, carousels, datepickers, etc.) that are initialized via HTML data attributes and backed by a lightweight JavaScript runtime. The library is distributed as an npm package with multiple entry points (ESM, CJS, UMD, Turbo, Phoenix) and includes a Tailwind CSS plugin that injects base styles for forms, tooltips, charts, and third-party integrations. The repository also hosts an extensive Hugo-based documentation site with live examples, framework integration guides (React, Vue, Angular, Laravel, Django, etc.), and a theming system with five pre-built themes (default, minimal, enterprise, playful, mono). The architecture follows a consistent component pattern: each component is a class with `init()`, `destroy()`, and static `init*()` methods that scan the DOM for data attributes. A global `Instances` singleton manages all component instances by ID, supporting override and random ID generation. The library uses Popper.js for positioning dropdowns, tooltips, and popovers, and relies on an external `flowbite-datepicker` for datepicker functionality. The Tailwind plugin (`plugin.js`) uses `plugin.withOptions` to conditionally add base styles and component classes, and the CSS theming system leverages CSS custom properties for colors, fonts, radii, and shadows with dark mode support. While the library is well-structured and actively maintained, its large surface area (30+ components) and extensive documentation create maintenance overhead. The integration guides for 20+ frameworks are prone to drift, and the inline SVG icons and hardcoded Tailwind classes in documentation examples require careful version alignment. The codebase demonstrates solid engineering practices with TypeScript, Webpack builds, and consistent patterns, making it a reliable choice for projects needing a Tailwind CSS component library with JavaScript interactivity.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
vndevteam/nestjs-boilerplate ★ 298 79 APPLICATION

This is a NestJS boilerplate for building RESTful APIs with TypeScript, PostgreSQL, TypeORM, and modern DevOps practices. The system provides a modular backend architecture with authentication (JWT), user management, post management, email verification via BullMQ queues, health checks, Swagger API documentation, and comprehensive testing setup. It follows NestJS best practices with clear separation of concerns across modules for auth, users, posts, health, and background jobs. Key features include cursor-based and offset-based pagination, internationalization (i18n), Redis caching, security headers via Helmet, and environment-based configuration management. The codebase demonstrates strong engineering practices with reusable utilities for password handling, configuration validation, and sophisticated cursor pagination that could be extracted to other projects with minimal modification.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
antfu/eslint-plugin-format ★ 201 9 APPLICATION

This is an ESLint plugin that provides three formatting rules (`format/prettier`, `format/dprint`, `format/oxfmt`) to format code using Prettier, dprint, and oxfmt respectively. It is designed to be used with ESLint's flat config and treats formatters as side-effects-free tools, giving users full control over which formatter to apply to which file types. The plugin uses `synckit` to run formatters synchronously in worker threads, and `eslint-formatting-reporter` to generate fix suggestions. The architecture is clean: each rule is a standard ESLint rule that lazily loads a synchronous wrapper around the actual formatter library. The codebase is well-structured, with comprehensive tests and CI. It is actively maintained and uses modern JavaScript/TypeScript practices.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 2 reusable components found
fsouza/prettierd ★ 994 30 APPLICATION

prettierd is a daemonized wrapper around Prettier that avoids Node.js startup overhead by running Prettier as a persistent background process (using core_d.js). It provides a CLI interface that pipes file content to the daemon, which resolves the appropriate Prettier version (local or bundled), loads configuration (with support for .prettierrc, editorconfig, and environment-driven defaults), and returns formatted output. The architecture is a single daemon per working directory, managed through core_d. Key entry points are the shell script `bin/prettierd` and TypeScript modules `src/prettierd.ts` (CLI orchestration) and `src/service.ts` (formatting logic). The service module handles Prettier resolution, config precedence, argument parsing, and formatting/checking tasks. It supports TypeScript config files via Node.js experimental strip-types. The codebase is clean, well-structured TypeScript with strict compiler settings, and though it has no test suite, CI verifies build and daemon startup across multiple platforms and Node versions.

RATING: 8.0/10 MAINT: maintained DRIFT: low
▸ 1 reusable components found
mxstbr/mxstbr.com ★ 499 54 APPLICATION

This repository is the full-stack personal website of Max Stoiber (mxstbr.com), built with Next.js 16, TailwindCSS, and TypeScript. It serves a dual role: a public-facing blog and digital garden, and a private family productivity suite called 'MaxOS' that simulates a Windows 98 desktop environment. The public side includes MDX blog posts, Hashnode-synced notes, an RSS feed, and an investing page. The private side is a full-featured operating system shell with iframe-based apps: a calendar (with events stored in Redis), a finance portfolio tracker (pulling from Tiingo), a reminder system, a todo list, and a sophisticated chore management system (Chores2) for tracking kids' chores, rewards, and completions. The Chores2 subsystem is the most architecturally rich part of the codebase. It uses a layered domain-driven design with types, domain logic, commands, a service layer, a repository (with both in-memory and Redis implementations using compare-and-set transactions), MCP tool definitions for AI integration, and a notification outbox pattern for reliable Telegram delivery. The system supports time-window-based chore scheduling, period bonuses, approval workflows, and undo. It was recently rebuilt from a legacy version, with all features documented and verified in design docs. The codebase also integrates AI heavily: a Clippy chat assistant (powered by OpenAI) accessible via web and Telegram, and an MCP server that exposes tools for calendar, chores, and finance, enabling ChatGPT and other AI agents to read and mutate family data. The architecture is modern, with server actions, streaming, and Redis-backed state. However, the repo shows signs of being a single-developer project with some duplication (two active chore board UIs) and hardcoded secrets (parental PIN).

RATING: 7.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
lzm0x219/template-vite-react ★ 199 29 APPLICATION

This repository provides a minimal, opinionated starter template for building React applications with Vite. It includes a pre-configured setup with TypeScript, Tailwind CSS v4, Biome for linting and formatting, Lefthook for git hooks, Turbo for task orchestration, and Renovate for automated dependency updates. The actual application code is trivial: a single-page app shell with lazy-loaded routes for an index page and a 404 page, wrapped in React Router's BrowserRouter. The template prioritizes modern tooling and developer experience but does not implement any business logic, custom components, or complex architecture. It is intended to be cloned and used as a starting point for new React projects, rather than as a standalone application.

RATING: 6.9/10 MAINT: maintained DRIFT: low
── end of results ──
$ submit: