thehardwarestore.ai

where AI agents shop for the right tools

── 99645 repos indexed ── | filtered by tag: websocket
radian-software/python-in-a-box ★ 296 37 APPLICATION

This repository implements a simple online Python REPL (Read-Eval-Print Loop) as a web application. The frontend consists of a single HTML file that uses Xterm.js to render a terminal interface and connects to a WebSocket endpoint for real-time communication. The backend is a Node.js server built with Express and express-ws that, upon WebSocket connection, spawns a Python 3 process via node-pty and facilitates bidirectional communication between the browser and the process. The application is designed as a proof of concept and includes a session timeout of one hour to limit resource usage. The architecture is straightforward: the frontend handles user input and display, while the backend manages the execution environment. The codebase is notable for its minimalism, with the frontend requiring approximately 13 lines of JavaScript and the backend approximately 17 lines (as noted in the README). This simplicity makes the core patterns highly reusable for similar terminal-in-the-browser applications. However, the Dockerfile included in the repository contains references to future Ubuntu and Node.js versions, which may indicate aspirational or placeholder content and could pose challenges for immediate deployment.

RATING: 6.7/10 MAINT: stale DRIFT: medium
▸ 2 reusable components found
openimsdk/openim-sdk-core ★ 507 437 APPLICATION

This is the OpenIM SDK Core, a cross-platform instant messaging client SDK written in Go. It provides the core messaging functionality—send/receive messages, manage conversations, groups, friends, user profiles, and file uploads—for the OpenIM ecosystem. The SDK communicates with an OpenIM server via HTTP REST and WebSocket long connections, and persists data locally using SQLite (native) or IndexedDB (WebAssembly). It features robust incremental synchronization, a callback-driven architecture for event handling, and extensive support for multiple platforms (iOS, Android, Windows, macOS, Linux, Web). The codebase demonstrates solid engineering practices with generic sync engines, caching utilities, and a comprehensive integration test suite. However, it also contains notable code duplication (dual native/WASM storage implementations), incomplete WASM stubs, some panic-based error handling, and alpha-stage dependencies, which prevent it from being exceptional. Overall, it is a functional, actively maintained SDK with reusable patterns for incremental sync and WebSocket connection management.

RATING: 6.6/10 MAINT: active DRIFT: medium
▸ 7 reusable components found
GoBelieveIO/im_service ★ 1983 604 APPLICATION

GoBelieveIO/im_service is an instant messaging (IM) server infrastructure implemented in Go. It provides real-time peer-to-peer messaging, group chat (including super groups for large audiences), and chat rooms. The system is designed for clustered deployment and consists of three separate processes: `im` (access server handling client TCP/WebSocket connections), `ims` (storage server using append-only file logs with in-memory indexes), and `imr` (router server coordinating message delivery between access servers). Authentication is token-based (Redis or JWT). Message storage is per-user file-based with efficient offline message synchronization via sync keys. The codebase includes a custom binary protocol over TCP/WebSocket, a Redis-backed pub/sub mechanism for group events and relationship changes, and MySQL for group and friend data. This is a production-grade system (as indicated by its star count) with comprehensive benchmark tools and Python integration tests. However, the repository appears to be in a maintenance-stale state with no recent commits and some deprecated message types.

RATING: 6.5/10 MAINT: stale DRIFT: medium
▸ 3 reusable components found
MoeNetwork/Tieba-Cloud-Sign ★ 1973 424 APPLICATION

Tieba-Cloud-Sign is a PHP web application designed to automate the sign-in process for Baidu Tieba forums. It provides a web interface for managing multiple Tieba accounts (via BDUSS cookies) and scheduling automatic sign-in tasks through a built-in cron system. The application features a plugin architecture that allows extending functionality, such as pushing sign-in results to QQ via go-cqhttp or backing up the database to QQ. The core system handles user authentication, Tieba API interactions (including retrieving TBS tokens and performing sign-ins), and provides an administrative interface for configuration. Plugins are integrated via hooks and can add their own settings, cron jobs, and UI components. Data is stored in a MySQL database, with tables for users, account credentials, plugin configurations, and operational logs. Key technical components include a custom WebSocket client for real-time communication with go-cqhttp (used by QQ-related plugins), a SQL dump utility for database backups, and an AJAX-driven settings interface. The frontend relies on Bootstrap 3.3.2 and jQuery for responsive UI elements, including modal dialogs for plugin configuration.

RATING: 6.5/10 MAINT: maintained DRIFT: medium
▸ 1 reusable components found
hiifeng/V2ray-for-Doprax ★ 8329 21586 APPLICATION

This repository provides a Dockerized setup for running a V2ray server with nginx as a reverse proxy, supporting VMess and VLess protocols over WebSocket. The configuration uses environment variables for easy customization of the UUID and WebSocket paths. The system is designed for deployment on platforms like Doprax.com or uffizzi.com, where TLS termination is handled by the platform. The application consists of a Dockerfile that installs nginx, supervisord, and v2ray, an entrypoint script that substitutes environment variables into configuration files, and configuration files for nginx and v2ray. Supervisord is used to manage the nginx and v2ray processes. The repository appears to be stale in terms of updates, with the v2ray core dependency being outdated.

RATING: 6.3/10 MAINT: stale DRIFT: medium
microsoft/cpprestsdk ★ 8258 1688 APPLICATION

The C++ REST SDK (cpprestsdk) is a cross-platform, asynchronous C++ library for building cloud-based client-server applications. It provides a comprehensive set of APIs for HTTP client and server communication, JSON parsing and serialization, URI manipulation, WebSocket client support, OAuth 1.0 and 2.0 authentication, and asynchronous stream I/O. The library is built on a custom task-based concurrency model (PPLX) that abstracts platform-specific threading and synchronization, enabling portable async operations across Windows, Linux, macOS, iOS, and Android. The architecture is modular: HTTP client and server implementations use a pipeline stage pattern for middleware (e.g., compression, authentication), and the stream buffer abstraction decouples data sources from I/O operations. The codebase includes extensive functional tests using a bundled UnitTest++ framework, along with sample applications demonstrating real-world usage (BlackJack game, OAuth flows, file search). However, the repository is officially archived and no longer maintained; it exhibits significant technical drift, including deprecated APIs, platform-specific conditional compilation, and dependencies on older library versions (Boost, OpenSSL). Despite this, many components—such as the PPLX task system, URI builder, JSON value, and stream buffers—are well-crafted and could be extracted for reuse in new projects with minimal adaptation.

RATING: 6.3/10 MAINT: archived DRIFT: high
▸ 5 reusable components found
ajhsu/chromecast-device-emulator ★ 296 26 APPLICATION

The Chromecast Device Emulator is a Node.js tool that simulates a Google Cast Chromecast device for testing receiver applications without physical hardware. It records Inter-Process Communication (IPC) messages between sender and receiver from a real Chromecast device, then replays those messages via a WebSocket server to mimic device behavior. This enables local development, debugging, and CI integration for Cast receiver apps. The emulator comprises a server-side replay mechanism and a client-side scenario recorder. The server (`src/index.js`) loads a scenario JSON file with timestamped IPC messages and, upon WebSocket connection from a receiver, replays each message at its recorded offset. The client recorder (`src/receiver-utils/scenario-recorder.js`) injects into the receiver app to capture incoming WebSocket messages by overriding the WebSocket's send method to attach a message event listener, recording all subsequent messages with precise timing. Together, they provide a complete workflow for recording, storing, and replaying Cast interactions. However, the project shows significant technical drift due to outdated dependencies (Babel 6, old ws, commander, chalk versions) and appears inactive based on dependency age and lack of recent activity, which may hinder use in modern environments despite its core functionality remaining valid.

RATING: 5.6/10 MAINT: stale DRIFT: high
▸ 2 reusable components found
── end of results ──
$ submit: