MCPcopy Index your code
hub / github.com/datolabs-io/go-backstage

github.com/datolabs-io/go-backstage @v3.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.2.0 ↗ · + Follow
111 symbols 406 edges 25 files 108 documented · 97% updated 3mo agov3.2.0 · 2025-08-15★ 331 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-backstage

CI codecov Go Reference

go-backstage is a Go client library for accessing the Backstage REST API.

The library provides a convenient and easy-to-use interface to access and manipulate data from the Backstage. This library handles the low-level details of making HTTP requests and parsing responses, allowing developers to focus on building their application logic.

Installation

With Go installed, run the following to add the package to your project, along with its dependencies:

go get github.com/datolabs-io/go-backstage/v3

Alternatively, you can add import the package as following and run go get to install it:

import "github.com/datolabs-io/go-backstage/v3"

Usage

Add the package to your project as following:

import "github.com/datolabs-io/go-backstage/v3"

Once imported, create a new Backstage API client to access different parts of Backstage API:

client, err := backstage.NewClient(baseURL, "default", nil)

If you want to use a custom HTTP client (for example, to handle authentication, retries or different timeouts), you can pass it as the third argument:

httpClient := &http.Client{}
client, err := backstage.NewClient(baseURL, "default", httpClient)

The client than can be used to access different parts of the API, e.g. get the list of entities, sorted in specific order:

entities, response, err := c.Catalog.Entities.s.List(context.Background(), &ListEntityOptions{
        Filters: []string{},
        Fields:  []string{},
        Order:   []ListEntityOrder{{ Direction: OrderDescending, Field: "metadata.name" },
    },
})

Refer to examples directory for more examples.

Contributing

Contributions to the project are welcome. If you are interested in making a contribution, please review open issues or open a new issue to propose a new feature or bug fix. Please ensure to follow the code of conduct. Any contributions that align with the project goals and vision are appreciated. Thank you for your interest in improving the project.

License

This library is distributed under the Apache 2.0 license found in the LICENSE file.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 49
Struct 32
Method 19
TypeAlias 10
Interface 1

Languages

Go100%

Modules by API surface

entity.go19 symbols
backstage_test.go14 symbols
kind_location.go12 symbols
entity_test.go8 symbols
kind_location_test.go6 symbols
kind_user.go5 symbols
kind_system.go5 symbols
kind_resource.go5 symbols
kind_group.go5 symbols
kind_domain.go5 symbols
kind_component.go5 symbols
kind_api.go5 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page