Skip to content

Native Host

Native Host 是用 Go 编写的原生消览器扩展与业务代码。

工作原理

浏览器扩展 <-> Native Messaging (stdin/stdout) <-> Native Host <-> TCP (localhost:12721) <-> 业务代码
                                                        |
                                              HTTP <-> 聚合服务

核心功能

  • 浏览器扩展与业务代码之间的消息转发
  • 支持配置加密(AES-128-CBC)
  • 自动日志轮转
  • 跨平台支持(Windows、Linux、macOS)