IdeaCredIdeaCred

hzuaifa25/universal-web-api

44

๐Ÿค– Convert popular AI websites into standard APIs for free, enabling local deployment and complete data privacy without complex setup.

What's novel

๐Ÿค– Convert popular AI websites into standard APIs for free, enabling local deployment and complete data privacy without complex setup.

Code Analysis

9 files read ยท 4 rounds

A FastAPI server that exposes an OpenAI-compatible /v1/chat/completions endpoint by driving a real Chromium browser (via DrissionPage) to type messages into web-based AI chat interfaces (ChatGPT, DeepSeek, Grok, etc.), scrape the streaming DOM response, and re-package it as SSE chunks.

Strengths

The request lifecycle management (FIFO queue, global lock, client-disconnect detection, graceful cancellation via thread-safe flags) is well-designed and production-minded. The per-site workflow configuration with optional steps, fallback selectors, and tunable streaming thresholds shows practical engineering for a hard problem (reliably scraping streaming DOM content).

Weaknesses

Zero automated tests exist โ€” the only 'test' is a manual __main__ block in data_models.py. The README heavily oversells the project as 'AI-powered' and 'self-healing' when it's really a browser automation proxy with a one-time AI-assisted selector extraction step; the core loop is pure DOM polling with no intelligence. The 64kb browser_core.py is a monolith that mixes constants, logging, SSE formatting, element finding, and workflow execution in one file.

Score Breakdown

Innovation
4 (25%)
Craft
45 (35%)
Traction
6 (15%)
Scope
40 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+0

Craft

Ci-1
Tests-1
Polish+0
Releases+0
Has License+5
Code Quality+18
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+7
Languages+8
Subsystems+5
Bloat Penalty+0
Completeness+7
Contributors+6
Authored Files+8
Readme Code Match+3
Architecture Depth+3
Implementation Depth+8

Evidence

Commits

32

Contributors

2

Files

17

Active weeks

5

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License

AGPL-3.0