{"id":22787352,"url":"https://github.com/aserto-dev/node-directory","last_synced_at":"2026-03-10T05:03:49.215Z","repository":{"id":88126095,"uuid":"530434415","full_name":"aserto-dev/node-directory","owner":"aserto-dev","description":"Node gRPC bindings for the Aserto Directory","archived":false,"fork":false,"pushed_at":"2025-03-17T09:13:55.000Z","size":3053,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-29T09:51:30.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/aserto-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-29T23:58:48.000Z","updated_at":"2025-03-17T09:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"331e267a-ec84-4117-a34e-22af39e07651","html_url":"https://github.com/aserto-dev/node-directory","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/aserto-dev/node-directory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fnode-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fnode-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fnode-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fnode-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aserto-dev","download_url":"https://codeload.github.com/aserto-dev/node-directory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fnode-directory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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":[],"created_at":"2024-12-12T00:54:21.901Z","updated_at":"2026-03-10T05:03:49.180Z","avatar_url":"https://github.com/aserto-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-directory\n\n### Node bindings for the Aserto Directory service\n\n## Build\n\n```sh\nyarn install\nyarn gen\n```\n### Build with a local build of directory\n```\nBUF_PATH=/path/to/directory.bin yarn gen\n```\n\n## Usage\n\nThis repository contains only the bindings.\nSee https://github.com/aserto-dev/aserto-node#directory for usage.\n\n\n## Troubleshooting\n\n**On M1 Mac**: Run `arch -x86_64 zsh` first and the continue normally.\n\n\n## Examples\n\n```typescript\nimport { Reader } from \"@aserto/node-directory/src/gen/cjs/aserto/directory/reader/v3/reader_connect\";\nimport { createPromiseClient } from \"@bufbuild/connect\";\nimport { createGrpcTransport } from \"@bufbuild/connect-node\";\n\nconst grpcTansport = createGrpcTransport({\n  httpVersion: \"2\",\n  baseUrl: `https://localhost:9393`,\n  nodeOptions: { rejectUnauthorized: false },\n});\n\nconst client = createPromiseClient(Reader, grpcTansport);\nconst objectResponse = client.getObject({\n    objectType: \"user\",\n    objectId: \"rick@the-citadel.com\",\n  })\n\n\nobjectResponse.then((result) =\u003e {\n  console.log(result.result?.toJson())\n}).catch((err) =\u003e {\n  console.log(err)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fnode-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faserto-dev%2Fnode-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fnode-directory/lists"}