{"id":16405562,"url":"https://github.com/stackb/bzl-sdk-node","last_synced_at":"2025-09-11T17:14:47.171Z","repository":{"id":57162332,"uuid":"280511960","full_name":"stackb/bzl-sdk-node","owner":"stackb","description":"SDK for connecting to a Bzl instance via gRPC","archived":false,"fork":false,"pushed_at":"2020-07-21T22:53:35.000Z","size":131,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T11:42:47.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-17T19:47:53.000Z","updated_at":"2024-08-20T02:49:32.000Z","dependencies_parsed_at":"2022-09-10T06:52:03.183Z","dependency_job_id":null,"html_url":"https://github.com/stackb/bzl-sdk-node","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbzl-sdk-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbzl-sdk-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbzl-sdk-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fbzl-sdk-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackb","download_url":"https://codeload.github.com/stackb/bzl-sdk-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240365999,"owners_count":19790009,"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","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":[],"created_at":"2024-10-11T06:06:25.000Z","updated_at":"2025-02-23T19:23:43.734Z","avatar_url":"https://github.com/stackb.png","language":"JavaScript","readme":"# bzl-sdk-node\n\n[![NPM version](https://img.shields.io/npm/v/@stackb/bzl-sdk-node.svg)](https://www.npmjs.com/package/@stackb/bzl-sdk-node)\n\nThis repository contains the generated protobuf/grpc-js definitions for the\n[Bzl](https://build.bzl.io) gRPC API as well as a more developer-friendly\nindex.js entrypoint.\n\nCanonical API definitions are at https://github.com/stackb/apis/tree/master/build/stack/bzl/v1beta\n\n## Usage\n\n```\nnpm install @stackb/bzl-sdk-node\n```\n\nGiven a running process (e.g. `bzl serve`), connect to the server and retrieve metadata:\n\n```js\nconst grpc = require('@grpc/grpc-js');\nconst v1beta1 = require('@stackb/bzl-sdk-node').v1beta;\n\nconst client = new v1beta1.ApplicationClient(\n        'localhost:1080', \n        grpc.credentials.createInsecure());\n\nclient.waitForReady(4000, () =\u003e printMetadata);\n\nfunction printMetadata() {\n    const request = new v1beta1.GetApplicationMetadataRequest();\n    client.getApplicationMetadata(request, (err, metadata) =\u003e {\n        if (err) {\n            console.warn('could not get metadata', err);\n        } else {\n            console.log(`Connected to Bzl ${metadata.getVersion()}`);\n        }\n    });\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackb%2Fbzl-sdk-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackb%2Fbzl-sdk-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackb%2Fbzl-sdk-node/lists"}