Hacker News new | ask | show | jobs
by whatevermom2 187 days ago
What about having an intermediate server running on the same box as the browser, that connects to CDP using a pipe, and forwards messages to the Redis server, instead of modifying Chrome s source ? It's painful to maintain Chrome patches.

Really cool project in any case, seems like working at Pikkit must've been a lot of fun ! Thanks OP for sharing.

2 comments

This would work. We started prototyping this way and it worked well to an extend. The main issue you're going to have, is you need to have both chromium and the forwarder process to run at the same time. This makes it difficult to track what is running exactly.

If you're forwarder is running but the browser crashed, it will still appear as available on the Redis side. While if you're making the browser setting a key with expiration itself, if it crashes, it will stop appearing on redis side.

Those are the kind of stuff you get modifying the source, and that will be hard to do with dual process type of setup.

Not the OP but I’ve been thinking to write exactly this as part of making my personal browser available over MCP.