{"id":18930055,"url":"https://github.com/labd/storyblok-go-sdk","last_synced_at":"2025-08-07T21:27:43.229Z","repository":{"id":169656100,"uuid":"643873421","full_name":"labd/storyblok-go-sdk","owner":"labd","description":"Go SDK for Storyblok","archived":false,"fork":false,"pushed_at":"2025-08-01T22:27:17.000Z","size":250,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-02T00:32:55.813Z","etag":null,"topics":["go-sdk","storyblok"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["labd"]}},"created_at":"2023-05-22T10:35:49.000Z","updated_at":"2025-03-07T15:32:06.000Z","dependencies_parsed_at":"2024-08-02T12:59:59.695Z","dependency_job_id":"40334fa1-4cea-4f7d-a2fa-df395d642217","html_url":"https://github.com/labd/storyblok-go-sdk","commit_stats":null,"previous_names":["labd/storyblok-go-sdk"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/labd/storyblok-go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fstoryblok-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fstoryblok-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fstoryblok-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fstoryblok-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labd","download_url":"https://codeload.github.com/labd/storyblok-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fstoryblok-go-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269330085,"owners_count":24399114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go-sdk","storyblok"],"created_at":"2024-11-08T11:36:22.299Z","updated_at":"2025-08-07T21:27:43.190Z","avatar_url":"https://github.com/labd.png","language":"Go","funding_links":["https://github.com/sponsors/labd"],"categories":[],"sub_categories":[],"readme":"# Go SDK for Storyblok\n\nThis repository contains the go sdk for the [Storyblok Management API](https://www.storyblok.com/docs/api/management).\n\n## Installation\n\nThis repository depends on redocly to bundle the yaml files and oapi-codegen to generate the Go SDK.\n\n```bash\npnpm install -g @redocly/openapi-cli\ngo install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest\n```\n\n## Development\n\nThe source.yaml is the entrypoint for the code generation.\nThere we define the REST routes as references to files in the path directory.\nThese files reference schemas from the schemas directory.\n\n1. edit the source.yaml or any of the referenced files.\n2. bundle the yaml files into a new openapi.yaml file\n3. generate a new Go SDK with the oapi-codegen\n\n```bash\nredocly bundle \u003e openapi.yaml\noapi-codegen -config oapi-config.yaml openapi.yaml\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n\n    \"github.com/deepmap/oapi-codegen/pkg/securityprovider\"\n    \"github.com/labd/storyblok-go-sdk/sbmgmt\"\n)\n\nconst token    = \"\u003cyour personal api key\u003e\"\nconst spaceId  = \"\u003cyour space id\u003e\"\nconst endpoint = \"https://mapi.storyblok.com\"\n\nfunc ref[T any](s T) *T {\n    return \u0026s\n}\n\nfunc main() {\n    ctx := context.Background()\n\n    apiKeyProvider, err := securityprovider.NewSecurityProviderApiKey(\"header\", \"Authorization\", token)\n    if err != nil {\n        panic(err)\n    }\n\n    client, err := sbmgmt.NewClientWithResponses(endpoint, sbmgmt.WithRequestEditorFn(apiKeyProvider.Intercept))\n    if err != nil {\n        panic(err)\n    }\n\n    resp, err := client.GetSpaceWithResponse(ctx, spaceId)\n    if err != nil {\n        panic(err)\n    }\n    fmt.Println(resp.JSON200.Space.Name)\n}\n```\n\n## Progress\n\n- [ ] Stories\n- [ ] Collaborators\n- [x] Components\n- [x] Component Groups\n- [ ] Assets\n- [x] Asset Folders\n- [x] Datasources\n- [x] Datasource Entries\n- [x] Spaces\n- [x] Space Roles\n- [ ] Tasks\n- [ ] Approvals\n- [ ] Activities\n- [ ] Presets\n- [ ] Field Types\n- [ ] Workflow Stage\n- [ ] Workflow Stage Change\n- [ ] Releases\n- [ ] Branch deployments\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fstoryblok-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabd%2Fstoryblok-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fstoryblok-go-sdk/lists"}