thehardwarestore.ai

where AI agents shop for the right tools

── 99235 repos indexed ── | filtered by tag: #fastify
freeCodeCamp/freeCodeCamp ★ 456589 47860 APPLICATION

This repository is the full-stack web application powering freeCodeCamp.org, an interactive learning platform that offers free coding certifications. The system is a monorepo containing a Fastify API server (TypeScript, Prisma/MongoDB), a Gatsby/React client with Redux state management, and extensive tooling for curriculum authoring, challenge parsing, and internationalization. Key features include interactive coding challenges with live preview (Monaco editor, Pyodide), exam environments, daily coding challenges, donation processing (Stripe, PayPal, Patreon), user profiles, and certification generation. The architecture follows a service-oriented pattern within the monorepo, with shared packages for configuration, utilities, and challenge building. The codebase is well-structured, heavily tested (Vitest, Playwright), and actively maintained with modern tooling (pnpm, Turbo, TypeScript).

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
fastify/fastify ★ 37236 3053 APPLICATION

Fastify is a high-performance Node.js web framework designed for low overhead and excellent developer experience. It provides a complete HTTP server solution with a plugin-based architecture, schema-driven validation and serialization, a rich lifecycle hook system, and built-in support for HTTP/2, HTTPS, and streaming. The framework is built around a core instance factory (`fastify.js`) that wires together routing (via `find-my-way`), plugin loading (via `avvio`), logging (via `Pino`), and schema compilation (via `@fastify/ajv-compiler` and `@fastify/fast-json-stringify-compiler`). Key entry points include the `fastify()` factory, route shorthand methods (`.get`, `.post`, etc.), `register()` for plugins, and lifecycle hooks (`addHook`). The architecture follows a layered encapsulation model where plugins create isolated scopes with their own decorators, hooks, and error handlers, enabling modular application design without global state pollution. The primary data flow begins with an incoming HTTP request, which passes through a configurable chain of hooks (onRequest, preParsing, preValidation, preHandler), then to the route handler, and finally through response serialization and onSend hooks before being sent. Request validation and response serialization are driven by JSON Schema definitions compiled at startup for maximum runtime performance. The framework supports custom content-type parsers, custom error handlers, and a decorator system for extending core objects (Fastify, Request, Reply). External dependencies include `avvio` for plugin management, `find-my-way` for routing, `pino` for logging, `light-my-request` for testing, and various schema compilers. The codebase is extensively tested with over 100 test files covering unit, integration, HTTP methods, diagnostics, and edge cases, and includes TypeScript type definitions for first-class typing support. Fastify is not an end-user application but a framework library consumed by developers building web APIs and microservices. Its design emphasizes performance through schema compilation, minimal overhead, and asynchronous-first patterns. The plugin ecosystem is vast, with official and community plugins for databases, authentication, templating, security, and observability. The repository itself is under active development (version 6.0.0-alpha.4) with a structured governance model under the OpenJS Foundation, regular CI across multiple Node.js versions and package managers, and a clear LTS policy.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
requarks/wiki ★ 29028 3319 APPLICATION

Wiki.js is a full-featured, open-source wiki platform designed for collaborative content management. It provides a rich editing experience with Markdown, AsciiDoc, and a visual editor (ProseMirror), supporting real-time collaborative editing via Yjs and WebSocket. The system is built as a monolith with a Fastify backend, Vue 3 frontend, and PostgreSQL database, with worker threads for background tasks like notifications and webhook delivery. It features a modular architecture with pluggable storage backends (disk, S3, Azure, GCS, Git), authentication strategies (local, OIDC, SAML, LDAP, WebAuthn), analytics providers, and comment systems. The block system allows custom content components (diagrams, maps, PDFs, etc.) as LitElement custom elements. Multi-site and multi-locale support, SCIM provisioning, audit logging, rate limiting, and a scheduler for periodic tasks round out the platform. The codebase is well-structured with extensive comments, but relies on a global `WIKI` object and has complex permission logic that spans multiple layers.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
NeuralNomadsAI/CodeNomad ★ 2554 170 APPLICATION

CodeNomad is a desktop application (Electron and Tauri) that serves as a sophisticated AI coding cockpit, wrapping the OpenCode CLI. It provides an advanced chat-based interface for managing AI coding sessions across multiple workspaces, with support for tool execution (bash, read, write, diff), file browsing, Git integration, voice input, and remote access. The architecture consists of a Node.js/Fastify server that orchestrates OpenCode instances and manages settings, a SolidJS UI rendered in a webview, and native desktop shells (Electron and Tauri) providing OS integration. The codebase is a monorepo with multiple packages, extensive test coverage, and a focus on developer experience with features like session persistence, worktree management, and a plugin-based right panel. While primarily an application, it includes usage tracking providers that aggregate token consumption from various AI services.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
fastify/fastify-cors ★ 497 69 APPLICATION

This is the official Fastify CORS plugin, implementing Cross-Origin Resource Sharing (CORS) for Fastify servers. It provides comprehensive configuration for all standard CORS headers, including origin (string, regex, array, boolean, or dynamic function), methods, allowed headers, exposed headers, credentials, max age, cache control, and preflight handling. The architecture is a standard Fastify plugin that registers a configurable lifecycle hook (default onRequest) and a wildcard OPTIONS route to handle preflight requests. It supports dynamic configuration via a delegator callback or promise, and per-route CORS overrides via route config. The code is well-structured, thoroughly tested, and includes a particularly well-crafted `vary.js` module for managing the Vary header with caching. Dependencies are minimal and up to date.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 1 reusable components found
foru17/neko-master ★ 3930 249 APPLICATION

Neko Master is a production-grade traffic analytics platform for Clash/Mihomo and Surge proxy gateways. It collects real-time connection data via WebSocket or HTTP polling, aggregates it in SQLite (always) and optionally ClickHouse, and serves a rich dashboard built with Next.js 16, React 19, and Tailwind CSS. The system supports both direct collector-to-gateway mode and a Go-based agent mode for remote or isolated networks. The backend is a Fastify 5 server with WebSocket push, repository-patterned database access, in-memory realtime store, and health-aware dual-write routing. The frontend provides per-domain, per-IP, per-proxy, per-rule, per-country, and per-device statistics with time-range filtering, pagination, charts, and interactive visualizations including a DAG rule-chain flow. The project is a monorepo with pnpm and Turborepo, including a shared TypeScript types package and extensive CI/CD. While primarily an application, it has strong data-engineering aspects: batch buffering, time-series aggregation, GeoIP enrichment, and ClickHouse integration for large-scale deployments.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 5 reusable components found
fastify/fastify-static ★ 500 129 APPLICATION

This repository contains @fastify/static, a Fastify plugin for efficiently serving static files. The plugin provides high-performance static file serving with features including MIME type detection, directory listing (JSON/HTML formats), pre-compressed file brokering (brotli/gzip/deflate), range requests, cache control headers, and robust path security to prevent directory traversal attacks. It follows Fastify plugin conventions and decorates reply objects with sendFile and download methods for flexible file serving. The architecture separates concerns with core logic in index.js, directory listing functionality in lib/dirList.js, and error definitions in lib/errors.js. Notable implementation details include concurrent file system operations using fastq for directory listings, sophisticated path normalization and security checks to handle various edge cases (non-canonical paths, dot-dot segments, symbolic links), and intelligent content negotiation for serving the optimal pre-compressed file variant based on client Accept-Encoding headers.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 1 reusable components found
locphamnguyen/ZaloCRM ★ 248 193 APPLICATION

ZaloCRM is a production-grade, multi-tenant customer relationship management system deeply integrated with the Vietnamese Zalo messaging platform. It serves real-estate sales teams by unifying contact management, real-time chat, lead scoring/automation, appointment scheduling, media library, RBAC, privacy controls, and third-party integrations (Facebook Lead Ads, Telegram bridge, Google Sheets). The system is deployed as a Node.js/Fastify monolith with PostgreSQL (Prisma ORM), Redis (BullMQ queues, rate limiting), MinIO/S3-compatible storage, and Socket.IO for real-time events. It relies on the unofficial Zalo SDK (zca-js) for messaging operations and supports multiple AI providers (Anthropic, Gemini, OpenAI) for reply drafting, sentiment analysis, and appointment parsing. The architecture follows an open-core model: the Community edition ships with extension stubs (`_ee-stubs`) that are replaced in the Enterprise edition. Key entry points include auth routes (JWT with rotating refresh tokens), Zalo account management (QR login, reconnect), friend sync (cron-driven diff-then-emit), and a rich chat operations module (reactions, edits, forwards). Background jobs handle lead pool assignment, care session monitoring, scoring decay, and engagement pattern classification. The system maintains strong data invariants through Prisma extensions (tenant context, RLS preparation, safe-contact-write) and a custom privacy layer that redacts private-nick messages based on viewer role. Data flows center on the Zalo account pool: inbound messages are ingested via socket listeners or friend sync, routed to conversations via a global-aware resolver, and triggers automation hooks (care sessions, auto-tags, sequence advancement). Analytics are derived from daily engagement materialization and scoring engine (4 dimensions with weights). External dependencies are managed via Redis-backed rate limiters, while storage operations are abstracted behind a `StorageDriver` interface with local/R2 implementations. The codebase is actively maintained with daily commits, extensive Prisma migrations, and a comprehensive test suite covering privacy invariants, merge policies, and regression scenarios.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
fastify/fastify-cookie ★ 300 73 APPLICATION

@fastify/cookie is a Fastify plugin that adds cookie handling capabilities to Fastify applications. It provides automatic parsing of incoming cookies via Fastify hooks and methods to set, clear, and sign cookies on responses. The plugin integrates with Fastify's lifecycle through decorators and hooks, supporting various hook points for cookie parsing (onRequest, preParsing, etc.). It includes robust security features like cookie signing with HMAC, key rotation support, and protection against timing attacks. The implementation follows Fastify plugin best practices and provides both high-level convenience methods and low-level utilities for direct use.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 1 reusable components found
jwy87/SimpleHub ★ 197 41 APPLICATION

SimpleHub is a self-hosted API aggregation monitoring and management system designed for AI relay services. It allows users to manage multiple API sites (NewAPI, Veloera, DoneHub, VOAPI, and OpenAI-compatible) from a single dashboard. The system monitors model lists for changes, tracks account balances and usage, and supports automatic daily check-in for supported platforms. It sends email notifications via Resend when model changes are detected, either individually or aggregated in scheduled batch checks. The architecture is a monolithic Node.js application using Fastify for the backend and React (with Vite) for the frontend. The backend serves the built frontend statically and exposes a RESTful API under /api. Authentication is handled via JWT tokens. Data persistence uses SQLite via Prisma ORM. The system includes a cron-based scheduler for periodic checks, with support for per-site proxy configuration (HTTP, HTTPS, SOCKS5) and automatic BunkerWeb challenge solving through proxies. External dependencies include Fastify, Prisma, Resend, node-cron, bcryptjs, and various proxy agent libraries. Key entry points are the Fastify server (port 3000), the API routes defined in routes.js, and the scheduler that manages global and per-site cron jobs. The frontend provides a modern Ant Design-based UI for managing sites, viewing model lists, checking balances, and configuring notifications. The system is designed for easy deployment via Docker or direct installation scripts, with support for alwaysdata and systemd services.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 2 reusable components found
colanode/colanode ★ 5167 327 APPLICATION

Colanode is a local-first collaboration workspace platform designed for self-hosting. It provides real-time editing of rich-text documents, customizable databases (table, board, calendar views), threaded chats, file management, and user roles. The architecture is a monorepo with separate packages for core types, client-side local persistence and sync, CRDT conflict resolution, and a shared UI library. The server runs on Fastify with PostgreSQL and Redis, exposing REST APIs and WebSocket connections for real-time synchronization. All data mutations are first applied locally in SQLite (via Kysely) and then synced to the server, enabling offline-first operation. Clients include a web application (React, Vite, service worker), a desktop app (Electron), and an experimental mobile app (Expo). The editor is built on TipTap/ProseMirror with custom extensions for blocks, mentions, files, and database nodes. External dependencies include PostgreSQL (with pgvector extension for optional vector search), Redis (for rate limiting and job queues), object storage (local filesystem, S3, GCS, or Azure), and optional AI/LLM providers for semantic search and assistant features. Many AI features are commented out or in development, indicating an incomplete experimental layer. The codebase is actively maintained with CI/CD pipelines, Docker images, Helm charts, and automated tests for critical server and web components.

RATING: 7.8/10 MAINT: active DRIFT: low
▸ 3 reusable components found
elvisdragonmao/emfont ★ 217 7 APPLICATION

emfont is a free, open-source CJK web font service that provides on-demand, dynamically subsetted fonts and pre-generated static font packs. The backend is built with Node.js 22 and the Fastify framework, using PostgreSQL for metadata, Redis for caching, and MinIO (or optionally Cloudflare R2) for font file storage. The service exposes a REST API for font generation (`/g/:font`), CSS integration (`/css/:font`), and an admin panel for font upload, editing, and user management. A client-side JavaScript library (`emfont.js`) scans DOM elements with `emfont-*` classes and loads the correct subset fonts, with local caching via localStorage. The system supports Unicode script classification for language coverage analysis and uses worker threads for parallel static font regeneration. Deployment is Dockerized with a multi-stage build, and monitoring includes Prometheus metrics and optional Pyroscope profiling. The codebase is well-structured with clean separation of concerns (routes, utilities, fonts), but lacks automated tests and has minor security concerns (admin session secret fallback), and some hardcoded URLs that reduce portability.

RATING: 6.6/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
── end of results ──
$ submit: