Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Memory
go-label-studio
Try itUnofficial Go client for the Label Studio API, generated with oapi-codegen. Package labelstudio (github.com/psyb0t/go-label-studio) provides labelstudio.NewClientWithResponses with a typed ...WithResponse method for every endpoint: projects, tasks, annotations, predictions, imports, exports, storage, ML backends, webhooks, users, organizations and workspaces. Auth is an Authorization: Token header added through a request editor, against a self-hosted or cloud server URL. Use when Go code needs to call the Label Studio API, or already imports go-label-studio.
What it does
Unofficial, typed Go client for the Label Studio API, in package at the module root. This module is not affiliated with HumanSignal.
The skill document
go-label-studio
Unofficial, typed Go client for the Label Studio API, in package labelstudio at the module root. This module is not affiliated with HumanSignal.
For install, operation groups, pagination and response fields, see references/setup.md.
Security & safety
- The spec uses
Authorization: Token. Read credentials fromLABEL_STUDIO_API_KEY, and never hardcode, commit or log them or request headers. - The caller supplies the base URL. Read it from trusted configuration such as
LABEL_STUDIO_URL, verify that it belongs to the intended installation, and use HTTPS for remote servers. Annotation and task content goes to that server. - Creating, updating or deleting projects, tasks, annotations, storage connections, webhooks or users changes server data. Perform those actions only when requested, on resources within the user's scope.
When to use
- Go code needs to read or manage Label Studio projects, tasks, annotations or predictions.
- Go code needs Label Studio imports, exports, storage, ML backends, webhooks or administration.
- The project already imports
github.com/psyb0t/go-label-studio.
When NOT to use
- The code is not Go. This module ships only a Go package.
- You need a client maintained by HumanSignal. This one is unofficial.
- You want to change the generated client itself. See
AGENTS.mdin the repo.
Usage
import (
"context"
"net/http"
"os"
labelstudio "github.com/psyb0t/go-label-studio"
)
auth := labelstudio.WithRequestEditorFn(
func(_ context.Context, req *http.Request) error {
req.Header.Set(
"Authorization",
"Token "+os.Getenv("LABEL_STUDIO_API_KEY"),
)
return nil
},
)
client, err := labelstudio.NewClientWithResponses(
os.Getenv("LABEL_STUDIO_URL"),
auth,
)
if err != nil {
return err
}
project, err := client.ApiProjectsRetrieveWithResponse(ctx, 1, nil)
if err != nil {
return err
}
if project.JSON200 != nil {
_ = project.JSON200
}
The error return covers transport and decoding failures. An HTTP error can return nil error with JSON200 nil; check StatusCode(), Status() and Body. Check pointer fields before dereferencing them.
Operation IDs determine the generated method names. The spec includes Enterprise operations that a Community Edition server may not support. The server URL is its origin, without an appended /api, because generated paths already include that prefix.
Complete an integration by compiling its call sites and testing method, path, auth and decoded responses against a local httptest server. Never call a live Label Studio instance just to verify client wiring.
Related skills
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Write, debug, and tune Playwright specs with locator strategy, trace diagnosis, and CI-aware timeouts.
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.
More from psyb0t
Browse all skillsDrive a user-deployed mt5-httpapi MetaTrader 5 bridge over HTTP, with per-action confirmation on every real-money call.
Docker-packaged browser automation for QA against anti-bot stacks and authorized detection testing.
Self-hosted OpenAI-compatible speech service — transcription, translation, and synthesis from one container.
Run ffmpeg, sox, and ImageMagick jobs against your files in a fixed-allowlist SSH sandbox.
Generate speech audio via Qwen3-TTS over SSH with preset voices, voice cloning, and voice design.
Drive one or more IMAP/SMTP mailboxes through a single REST + MCP endpoint — read, search, send, mark-seen, and delete across accounts in parallel.