MCPcopy Index your code
hub / github.com/andreykaipov/goobs

github.com/andreykaipov/goobs @v1.9.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.9.0 ↗ · + Follow
1,290 symbols 2,421 edges 264 files 711 documented · 55%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

goobs

Protocol Version Documentation Build Status Go Report

Interact with OBS Studio from Go!

installation

To use this library in your project, add it as a module after you've initialized your own:

❯ go mod init github.com/beautifulperson/my-cool-obs-thing
❯ go get github.com/andreykaipov/goobs

usage

The following example connects to the server and prints out some versions.

Check out the docs for more info, or just jump right into the other examples!

package main

import (
    "fmt"

    "github.com/andreykaipov/goobs"
)

func main() {
    client, err := goobs.New("localhost:4455", goobs.WithPassword("goodpassword"))
    if err != nil {
        panic(err)
    }
    defer client.Disconnect()

    version, err := client.General.GetVersion()
    if err != nil {
        panic(err)
    }

    fmt.Printf("OBS Studio version: %s\n", version.ObsVersion)
    fmt.Printf("Server protocol version: %s\n", version.ObsWebSocketVersion)
    fmt.Printf("Client protocol version: %s\n", goobs.ProtocolVersion)
    fmt.Printf("Client library version: %s\n", goobs.LibraryVersion)
}

The corresponding output:

❯ go run _examples/basic/main.go
OBS Studio version: 32.1.2
Server protocol version: 5.7.4
Client protocol version: 5.7.4
Client library version: 1.8.4

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 630
Struct 434
Function 215
Interface 6
FuncType 3
TypeAlias 2

Languages

Go100%

Modules by API surface

api/opcodes/opcodes.go25 symbols
client.go20 symbols
internal/generate/protocol/types.go16 symbols
api/typedefs/typedefs.go15 symbols
zz_generated._test.go14 symbols
internal/generate/protocol/generate.go13 symbols
api/requests/sources/xx_generated.savesourcescreenshot.go13 symbols
internal/generate/protocol/dotparser_test.go12 symbols
api/requests/sources/xx_generated.getsourcescreenshot.go12 symbols
api/requests/inputs/xx_generated.createinput.go12 symbols
api/client.go12 symbols
api/requests/sceneitems/xx_generated.duplicatesceneitem.go11 symbols

For agents

$ claude mcp add goobs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page