thehardwarestore.ai

where AI agents shop for the right tools

── 99193 repos indexed ── | filtered by tag: session-management
apify/crawlee ★ 26120 1702 APPLICATION

Crawlee is a comprehensive web scraping and crawling library for Node.js/TypeScript that provides a unified interface for both HTTP-based crawling (using got-scraping with Cheerio/JSDOM/Linkedom) and browser-based crawling (using Playwright/Puppeteer). It features a modular architecture with separate packages for core functionality, specific crawlers, storage abstractions, browser pooling, and utilities. The library handles request queuing, automatic concurrency scaling based on system resources, session management with cookie persistence and fingerprinting, proxy rotation, and robust error handling. It includes built-in mechanisms to avoid bot detection and provides storage abstractions for datasets (structured data), key-value stores (binary data), and request queues (URL frontier). Designed for reliability and scalability, Crawlee supports both local execution and deployment on the Apify platform, with extensive documentation, examples, and CLI tools for project scaffolding.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
symfony/http-foundation ★ 8620 307 APPLICATION

Symfony HttpFoundation is a production-grade PHP library that implements an object-oriented layer for the HTTP specification. It provides the core abstractions for HTTP request/response handling, including Request, Response, RedirectResponse, JsonResponse, StreamedResponse, BinaryFileResponse, and EventStreamResponse. It also covers header and parameter containers, cookie parsing and serialization, file uploads, session management with multiple storage backends, IP validation and anonymization, content negotiation, request matchers, URI signing, rate limiting, and streaming JSON output. This is not an application or service; it is a library component consumed by the Symfony framework and standalone PHP projects, with no executable entry points or web endpoints. Architecturally, the code is organized around small, focused classes with clear separation of concerns: bag containers for parameters/headers, decorators and proxies for session handlers, immutable-ish value objects like Cookie, and static utility classes such as IpUtils and HeaderUtils. The component relies on modern PHP (>=8.4.1), optional integrations with Redis, Memcached, MongoDB, PDO/Doctrine DBAL, and Symfony Cache/Mime contracts. The test suite is extensive, covering both unit behavior and real HTTP functional scenarios against PHP's built-in server. The library demonstrates strong craftsmanship: type-safe getters, fluent builders, robust RFC-aware parsing utilities, and consistent deprecation policies. The most reusable pieces are self-contained utilities and value objects that can be extracted into other projects with minimal modification. Maintenance is active, with recent commits and a clear 8.2 branch; technical drift is low despite the long history because deprecations are systematically managed and PHP/Symfony versions are current.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
psf/requests ★ 54347 11117 APPLICATION

Requests is a widely-used Python HTTP library that provides a simple, elegant API for making HTTP/1.1 requests. It abstracts away the complexities of urllib3, offering features like session persistence, cookie handling, automatic content decoding, SSL/TLS verification, and various authentication mechanisms (Basic, Digest, OAuth via extensions). The library is designed as a set of loosely coupled modules: the public API (api.py) delegates to a Session object (sessions.py) which manages connection pooling and request defaults; the HTTPAdapter (adapters.py) bridges to urllib3; and models.py defines Request, PreparedRequest, and Response objects. The codebase is well-structured, extensively tested, and follows a feature-freeze policy, focusing on stability and compatibility rather than new features. It is not an application or data research project; it is a pure library distributed via PyPI.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
esengine/DeepSeek-Reasonix ★ 35739 2441 APPLICATION

Reasonix is a local AI coding agent engine written in Go, providing a terminal UI, desktop application (Electron + React), and HTTP server for interacting with large language models (OpenAI, Anthropic, DeepSeek, etc.) to automate software engineering tasks. The kernel manages sessions, context windows, planning, sub-agent delegation, tool execution (file operations, shell, browser, MCP servers), and a sophisticated safety sandbox. It persists conversation history with checkpoints for undo/rewind, tracks token usage, and maintains an evidence ledger for auditing tool effects. The architecture is a monolithic Go binary with multiple frontends: a CLI/TUI, a desktop host that communicates via SSE/JSON, and a REST API server. A plugin system using the Model Context Protocol (MCP) allows extension. Separate Cloudflare Workers handle account management, forum, and crash reporting. The codebase is well-structured with a clean layered architecture (base utilities, domain contracts, state persistence, runtime agent, assembly wiring, frontends), extensive test coverage, and internal linters enforcing quality. It is actively maintained with frequent commits and professional CI/CD pipelines.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
yagop/node-telegram-bot-api ★ 9210 1647 APPLICATION

node-telegram-bot-api is a TypeScript client library for the Telegram Bot API, built as a runtime-agnostic core plus Node.js and Bun adapters. It exposes a Bot class with koa-style middleware, Context helpers, generated Api methods that map 1:1 to Telegram endpoints, and both long-polling and webhook update ingestion. The package targets Node 18+, Bun, Deno, Cloudflare Workers, and Vercel Edge by restricting src/core to Web-standard APIs and enforcing these boundaries with CI gates. It is a library, not a standalone app; consumers embed it to build Telegram bots. In production, the library receives updates either from getUpdates long polling (an AsyncGenerator with retry, backoff, and conflict handling) or from webhook callbacks (Web-standard Request to Response handlers plus adapters for Express, Next.js App Router, and Node HTTP). It includes a resilient transport layer with timeouts, retries, token-bucket rate limiting, and streaming multipart uploads, plus optional session middleware with pluggable stores (memory, file, SQLite, Redis) and a reply/callback tracking layer for structured conversations. The full Telegram type surface is auto-generated from live Bot API documentation by scripts/api-parser.ts, producing schemas.ts and api.ts, and the e2e suite exercises real Telegram endpoints. Architecturally, the most reusable patterns are generic middleware composition, an injectable fetch transport with backoff, a token-bucket rate limiter with per-key LRU state, and a streaming multipart encoder that avoids buffering whole uploads in memory. Session stores are deliberately minimal string-keyed KV contracts, with versioned envelopes allowing optional layers to extend state. The codebase is well tested, documented with 18 examples, and under active maintenance. This is not a data_research repository; the code generation pipeline is a build-time tool, not the product itself.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
github/copilot-sdk ★ 10553 1501 APPLICATION

The GitHub Copilot SDK is a multi-language library development kit that enables developers to integrate GitHub Copilot's agentic workflows into their applications. It provides language-specific bindings (Java, .NET, Python, Go, Rust, Node.js) that communicate with the Copilot runtime via JSON-RPC over stdio, WebSocket, or in-memory (FFI) transports. The SDK manages session lifecycle, tool invocation, permission handling, and event processing, allowing host applications to leverage Copilot's AI capabilities for code assistance, chat, and agent-based tasks. The architecture centers around a CopilotClient class that handles connection establishment, session management, and message exchange. Key patterns include a transport abstraction layer for flexible communication, a code generation pipeline that ensures protocol consistency across languages, and extensibility points for defining custom tools and handling user permissions. The SDK supports advanced features such as Model Context Protocol (MCP) integration, custom agents, skills, and telemetry via OpenTelemetry. Code quality is maintained through schema-driven development, extensive unit and end-to-end testing, and clear marking of experimental APIs. The repository demonstrates strong engineering practices with reusable components like the JSON-RPC communication layer, session management patterns, and tool handling interfaces. While the multi-language nature increases maintenance overhead, the SDK remains actively updated with frequent releases and a focus on backward compatibility for stable APIs.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
beego/beego ★ 32428 5571 APPLICATION

Beego v2 is a full-stack Go web framework designed for rapid development of enterprise applications, RESTful APIs, and backend services. The codebase reveals a modular architecture with clear separation of concerns: HTTP server (server/web), ORM (client/orm), caching (client/cache), HTTP client (client/httplib), logging (core/logs), configuration (core/config), session management (server/web/session), task scheduling (task/), validation (core/validation), and admin interface (core/admin). The framework is not a single application but a library intended to be imported. It demonstrates advanced Go patterns such as filter chains, decorators (cache), adapter/providers, struct tag parsing, and reflection-based utilities. The code is extensively tested (~50% of files are tests) with coverage across multiple databases and services. Despite its size, the code quality is high with reusable abstractions that can be extracted for new projects (e.g., filter chain, cache decorators, error code system). The project is actively maintained with frequent commits, issue triage, and recent releases.

RATING: 9.3/10 MAINT: active DRIFT: low
â–¸ 7 reusable components found
nette/http ★ 491 88 APPLICATION

nette/http is a standalone PHP library providing HTTP abstraction for request/response handling, URL manipulation, session management, and file uploads. It is part of the Nette Framework ecosystem but is usable independently. The library offers immutable `Request` and `UrlImmutable` objects for safe processing, alongside mutable `Response` and `Session` for stateful operations. It includes security-focused features such as input sanitization, CSRF protection via `Sec-Fetch-*` headers (with fallback), SSRF protection via `UrlValidator` and `IPAddress`, and a proxy trust model for client IP resolution behind reverse proxies. The codebase is well-structured, with clear separation of concerns, comprehensive test coverage (Nette Tester), and strict static analysis (PHPStan level 8). It requires PHP 8.3-8.5 and depends on `nette/utils`. The repository is actively maintained with recent commits, CI on multiple OSes, and an issue tracker.

RATING: 9.2/10 MAINT: active DRIFT: low
â–¸ 6 reusable components found
apache/shiro ★ 4461 2290 APPLICATION

Apache Shiro is a mature Java security framework and library, not an end-user application. It provides authentication, authorization, session management, and cryptography through a modular Maven multi-module architecture. The central abstractions are SecurityManager, Subject, Realm, Authenticator, Authorizer, and SessionManager, backed by pluggable implementations such as JDBC, LDAP, Active Directory, and text-based realms. The web module adds servlet filters, filter-chain management, JSP/JSF tags, and path-matching URL security, while support modules integrate with Spring, Spring Boot, Guice, CDI, JAX-RS, AspectJ, Quartz, and Jakarta EE. The crypto modules offer modern password hashing (Argon2, BCrypt), legacy SHA hashing, symmetric ciphers, and hash format serialization. The framework is embeddable via programmatic configuration, annotation-driven AOP interceptors, or the legacy INI-based configuration path, which is now deprecated in favor of environment-based setup. The codebase is heavily tested with unit tests and container-based integration tests, and core interfaces remain small and clean; however, it carries noticeable legacy baggage including deprecated factories, duplicated JSP/JSF tag implementations, mixed mocking frameworks, and numerous support modules that require ongoing maintenance to avoid drift. It has no data pipelines or research components; all data-related code is limited to security data sources, caching, and test fixtures.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
openclaw/acpx ★ 3306 347 APPLICATION

acpx is a headless CLI client and runtime for the Agent Client Protocol (ACP), enabling orchestration of AI agent sessions with persistent state, multi-step flow execution, permission policies, and a replay viewer for auditing. The architecture combines a CLI entry point, an embeddable runtime (AcpRuntime), a queue-based IPC system for shared session access, and a separate React-based replay viewer for inspecting flow run bundles. It supports 20+ built-in agents (Claude, Gemini, Cursor, etc.) via ACP, manages session persistence as JSON files with event logs, and provides output formatting in text, JSON, or quiet modes. The codebase is predominantly TypeScript with extensive test coverage (85%+), conformance testing against the ACP specification, and platform-specific process management for Windows and POSIX systems.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
spring-projects/spring-session ★ 1937 1150 APPLICATION

Spring Session is a library that provides a robust, pluggable session management solution for Spring-based applications. It abstracts session storage behind a `SessionRepository` interface, supporting multiple backends including Redis, JDBC, and in-memory. The library seamlessly integrates with both Servlet and WebFlux stacks, replacing the standard `HttpSession` with a configurable, cluster-friendly alternative. It also offers deep integration with Spring Security for concurrent session control and remember-me authentication, and with WebSocket for session-aware messaging. The architecture is modular: `spring-session-core` defines the core API (Session, SessionRepository, FindByIndexNameSessionRepository, HttpSessionIdResolver) and provides the servlet filter (`SessionRepositoryFilter`) and reactive store (`SpringSessionWebSessionStore`). `spring-session-data-redis` implements Redis-backed repositories with support for indexing by principal name and expiration via sorted sets and keyspace notifications. `spring-session-jdbc` provides a JDBC-backed repository with dialect-specific SQL schemas and customizable queries. Configuration is annotation-driven (e.g., `@EnableRedisHttpSession`, `@EnableJdbcHttpSession`) and supports customization through beans like `CookieSerializer`, `SessionRepositoryCustomizer`, and `FlushMode`/`SaveMode`. Key data flows involve session creation, attribute modification, expiration, and principal-based lookup. The library uses events (`SessionCreatedEvent`, `SessionDeletedEvent`, `SessionExpiredEvent`) for lifecycle notifications and supports AOT compilation for GraalVM native images. External dependencies include Spring Framework, Spring Data Redis, Spring Data JDBC, Reactor, and optionally Jackson for JSON serialization. The build system uses Gradle with custom convention plugins for publishing, documentation, and release management.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
Rath-Team/OpenRath ★ 1136 59 APPLICATION

OpenRath is a framework for building LLM-powered AI agent applications with a torch-like API design. It centers on the Session abstraction (analogous to a Tensor) that flows through Sandboxes (execution environments), Memories (persistent state), and Tools (callable operations), orchestrated by Agents and Workflows. The framework provides session lineage tracking, sandboxed tool execution, memory persistence, and LLM provider abstraction, enabling the creation of multi-agent workflows with durable state and traceable provenance. The architecture is modular and extensible, featuring pluggable backends for sandboxes (local, OpenSandbox) and memory systems (local, OpenViking), a registry pattern for dynamic backend loading, and lazy evaluation of sessions for performance. Key innovations include write-ahead logging for crash-resistant session persistence, resource-keyed parallelism for safe concurrent tool execution, and unified garbage collection across session, sandbox, and memory domains. The framework is designed for production use, with extensive testing, clear documentation, and active maintenance.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
johnbillion/user-switching ★ 202 54 APPLICATION

User Switching is a mature WordPress plugin providing instant switching between user accounts. The plugin allows administrators to switch to any user account from the Users screen, switch back to their original account, and 'switch off' (temporarily log out while retaining the ability to switch back). It integrates deeply with WordPress core authentication, using cookies to track originating users and session tokens to manage state. The code is entirely contained in a single main file (`user-switching.php`) that implements a singleton class with hooks and filters. It includes comprehensive integration tests (PHPUnit) and acceptance tests (Playwright) covering switching flows, capabilities, session handling, and command palette features. The plugin also provides explicit integration points for WooCommerce, BuddyPress, bbPress, and the WordPress REST API and command palette. The architecture is typical of a well-crafted WordPress plugin: event-driven via hooks, with clear separation between utility functions and the main class. It is not a library or framework but a self-contained plugin that can be dropped into any WordPress site meeting its requirements.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
ultraworkers/claw-code ★ 195286 108340 APPLICATION

Claw Code is a production-grade CLI application for AI-assisted coding, built primarily in Rust with a complementary Python parity workspace. It serves as a local agent harness that integrates with multiple LLM providers (Anthropic, OpenAI, xAI, DashScope, local OpenAI-compatible), manages conversational sessions, enforces workspace-scoped permissions, supports the Model Context Protocol (MCP) for external tool integration, and provides a plugin system for lifecycle hooks. The architecture is a multi-crate Rust workspace under `rust/`, with the main binary `claw` (from `rusty-claude-cli`), a core runtime crate (`runtime`) handling session persistence, permission enforcement, conversation loops, and MCP plumbing; an API client crate (`api`) for provider dispatch and streaming; a plugins crate for lifecycle management; and supplementary crates for tools, telemetry, and a workspace RAG service. The Python workspace (`src/`) is explicitly a non-production porting/parity mirror of a TypeScript archive, used for surface mapping and audit. The Rust code is well-structured, extensively tested, and demonstrates strong engineering practices—clean abstractions, reusable components, and defense-in-depth security (path validation, read-only command heuristics, approval tokens). Notable highlights include a permission enforcer with workspace boundary enforcement, a modular MCP client supporting multiple transports, a plugin system with manifest validation, and a session store with JSONL rotation and workspace fingerprint isolation. The repository is actively maintained (CI workflows, issue triage, recent commits) and shows low technical drift, though some modules have `#[allow(dead_code)]` annotations and the parity workspace adds maintenance overhead.

RATING: 9.0/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
entireio/cli ★ 5063 409 APPLICATION

The Entire CLI (`entire`) is a production-grade command-line tool that integrates AI coding agents (Claude Code, Codex, Gemini CLI, Cursor, Copilot, OpenCode, Factory AI Droid, Pi) with Git workflows. It captures session transcripts, token usage, file changes, and agent prompts as git-backed checkpoints, enabling traceability, review, and collaboration on AI-assisted development. The CLI provides commands for session management (`session`, `resume`, `clean`), checkpoint inspection (`checkpoint list`, `checkpoint policy`), multi-agent code review (`review`, `investigate`), authentication (`auth`, `login`), and project management (`project`, `grant`). It operates as a git remote helper (`git-remote-entire`) for pushing/pulling checkpoint data via the Entire data plane. Architecturally, the system is a modular Go CLI built on Cobra, with pluggable backends for checkpoint storage (git-refs and git-branch) and agent integration. Each agent has a dedicated package under `cmd/entire/cli/agent/` that implements hooks, transcript parsing, and lifecycle management. Security is a first-class concern: file operations use `os.Root` to prevent symlink escapes (`osroot`), session IDs are validated against path traversal (`validation`), and a configurable redaction pipeline strips secrets from transcripts (`redact`). The system uses OpenAPI-generated client code (`internal/coreapi`) for control plane communication and supports multi-region deployment via cross-jurisdictional HTTP clients. The codebase demonstrates high craftsmanship with clean package boundaries, extensive test coverage (unit, integration, e2e, and benchmarks), and well-documented interfaces for extensibility. Reusable components include atomic JSON file writing, cross-platform process management (`execx`), advisory file locking (`flock`), and process liveness detection (`proclive`). The review subsystem provides a framework for multi-agent code review with structured findings, which could be adapted for other automated review workflows. While the codebase is well-maintained and actively developed, the tight coupling to many agent-specific formats and the dual checkpoint backend add maintenance surface area and complexity.

RATING: 9.0/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
ayuayue/PiDeck ★ 996 112 APPLICATION

PiDeck is an open-source Electron desktop application that serves as a comprehensive workbench for AI coding agents, primarily wrapping the `pi` coding agent and the DeepSeek Harness (DSH) backend. It provides a rich session-centric chat workspace with features including multi-project management, Git integration, a built-in terminal, voice transcription, image generation, scheduled automation tasks, a desktop pet companion, and extensive configuration options. The application supports importing sessions from other tools like Claude, Codex, Cursor, and OpenCode, and offers a web service variant for remote access. Architecturally, PiDeck follows the standard Electron pattern with a main process (Node.js services, IPC handlers, filesystem operations), a preload script for secure IPC bridging, and a renderer process built with React 19, TypeScript, Jotai for state management, and Tailwind CSS v4 with shadcn/ui-style components. The codebase is organized into `src/main/` for backend services, `src/renderer/` for the UI, and `src/shared/` for cross-process types and utilities. Key entry points include the main process index, renderer bootstrap, and numerous IPC modules that validate inputs and delegate to domain services. Data flows center on session files stored in JSONL format (for pi) or compressed JSONL (for DSH), with model catalogs, usage statistics, and configuration persisted in user data directories. The application manages multiple backends through a unified session catalog, with runtime state synchronized via IPC events and Jotai atoms. External dependencies include the pi-coding-agent CLI, DSH runtime packages, node-pty for terminal emulation, whisper.cpp for local speech-to-text, and electron-updater for cross-platform updates. The codebase demonstrates strong engineering practices with extensive unit tests (node:test), Playwright E2E tests, pure-function modules extracted for testability, and consistent IPC boundary validation patterns.

RATING: 9.0/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
coffebar/neovim-project ★ 304 24 APPLICATION

The Neovim project manager plugin is a Lua-based Neovim plugin designed to streamline project workflow by maintaining a history of visited projects and enabling quick restoration of Neovim sessions (including UI state like neo-tree expanded directories) upon switching projects. It integrates with popular fuzzy finders (telescope, fzf-lua, snacks) for project selection and supports optional per-branch session management for Git repositories. The architecture is modular, separating concerns into distinct modules: configuration handling, project lifecycle management, history persistence, path and glob pattern resolution, Git integration, and session-specific payload storage (for neo-tree state). The plugin leverages Neovim's autocommands to synchronize session saving/loading with project switches and Git branch changes, ensuring a seamless user experience. Key strengths include robust glob pattern handling (with correct support for **, *, ?, and character classes), a self-healing history mechanism that automatically reloads when the history file is modified externally, and thoughtful integration with Neo-tree to restore UI state. The plugin demonstrates attention to detail in edge cases, such as handling symlinks in project paths and detecting Git worktrees.

RATING: 9.0/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
tuannvm/codex-mcp-server ★ 633 79 APPLICATION

This repository implements an MCP (Model Context Protocol) server that serves as a bridge between MCP clients (like Claude Code) and OpenAI's Codex CLI. It exposes Codex CLI functionality as MCP tools, enabling AI-powered code analysis, generation, and review within editor environments. The server handles stdio communication, manages conversational sessions, spawns Codex CLI processes with appropriate arguments, and processes their output to provide structured responses to clients. The architecture follows a modular design with clear separation between server setup, tool definitions, handlers, session management, and command execution utilities.

RATING: 8.8/10 MAINT: active DRIFT: low
â–¸ 2 reusable components found
nextauthjs/next-auth ★ 28367 4031 APPLICATION

This is a monorepo for Auth.js (formerly NextAuth.js), a framework-agnostic authentication library for web applications. The core engine (`@auth/core`) handles OAuth/OIDC, email/passwordless, credentials, and WebAuthn/Passkey authentication flows. It provides a unified API for session management (JWT or database-backed), CSRF protection, and cookie handling. The library is designed to be integrated into multiple frameworks via separate packages: `@auth/nextjs`, `@auth/sveltekit`, `@auth/express`, `@auth/qwik`, and `@auth/solid-start`. Each framework package adapts the core `Auth` function to the framework's request/response model, offering server-side handlers, middleware, and client-side hooks. The repository also includes over 80 built-in OAuth/OIDC provider definitions (e.g., Google, GitHub, Discord, Auth0) and 20+ database adapters (e.g., Prisma, Drizzle, MongoDB, PostgreSQL, DynamoDB) that implement a standard `Adapter` interface for user persistence. The project is now part of Better Auth, and the README recommends new projects use Better Auth unless specific feature gaps exist. The monorepo contains development apps, example applications, and a comprehensive documentation site built with Nextra.

RATING: 8.7/10 MAINT: active DRIFT: medium
â–¸ 4 reusable components found
mainmatter/ember-simple-auth ★ 1907 592 APPLICATION

ember-simple-auth is a lightweight Ember.js addon for implementing authentication and authorization in Ember applications. It provides a session service, pluggable authenticators (OAuth2 password grant, implicit grant, Devise, Torii, and custom), and session stores (localStorage, sessionStorage, cookie, adaptive, ephemeral) that persist the session across page reloads and synchronize across browser tabs. The library supports FastBoot, Engines, and Embroider, and includes built-in test helpers. Architecture follows a service-based pattern where the session service delegates to an internal session module that manages state transitions (unauthenticated, authenticated, loading) and communicates with authenticators and stores via events. The codebase is partially migrated to TypeScript, uses modern tooling (pnpm workspaces, Rollup, eslint flat config), and maintains broad compatibility with Ember versions from 3.28 onward.

RATING: 8.7/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
$ loading more...
$ submit: