MCPcopy Index your code
hub / github.com/HuolalaTech/page-spy-api

github.com/HuolalaTech/page-spy-api @v1.11.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.11.0 ↗ · + Follow
463 symbols 1,165 edges 56 files 25 documented · 5% 1 cross-repo links

Browse by type

Functions 375 Types & classes 88
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Page Spy API

PageSpy is a developer platform for debugging web page.

license API Version Go Version

PageSpy - Remote debugging as seamless as local debugging. | Product Hunt PageSpy - Remote debugging as seamless as local debugging. | Hacker News

English | 中文

What's this

The repo is the backend service for HuolalaTech/page-spy-web, which includes static resource serving, HTTP service, and WebSocket service.

How to use

package main

import (
    "embed"
    "log"

    "github.com/HuolalaTech/page-spy-api/config"
    "github.com/HuolalaTech/page-spy-api/container"
    "github.com/HuolalaTech/page-spy-api/serve"
)

//go:embed dist/*
var publicContent embed.FS

func main() {
    container := container.Container()
    err := container.Provide(func() *config.StaticConfig {
        // page-spy-web build dist static proxy, if no need you can return nil
        return &config.StaticConfig{
            DirName: "dist",
            Files:   publicContent,
        }
    })

    if err != nil {
        log.Fatal(err)
    }

    serve.Run()
}

Directory Structure

  • config: Project configuration.
  • container: Dependency injection.
  • event: Event structure definitions.
  • logger: Logging interface.
  • metric: Metrics interface.
  • room: Room interface.
  • rpc: Multi-machine RPC interface.
  • serve: HTTP and WebSocket services.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 265
Function 110
Struct 73
Interface 12
TypeAlias 3

Languages

Go100%

Modules by API surface

api/room/room.go47 symbols
data/db.go31 symbols
room/local_room.go26 symbols
serve/route/core.go25 symbols
serve/socket/socket.go20 symbols
room/rpc_remote_manager.go19 symbols
api/event/event.go18 symbols
room/rpc_local_manager.go17 symbols
api/room/error.go16 symbols
data/api.go15 symbols
storage/api.go14 symbols
room/remote_room.go14 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add page-spy-api \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page