{"id":30806561,"url":"https://github.com/harshdoesdev/helix-type-gen","last_synced_at":"2025-09-06T01:12:56.290Z","repository":{"id":307390984,"uuid":"1029371137","full_name":"harshdoesdev/helix-type-gen","owner":"harshdoesdev","description":"Generate TypeScript types and typed client from HelixDB schema and queries using /introspect endpoint","archived":false,"fork":false,"pushed_at":"2025-07-31T01:04:09.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T03:14:42.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/harshdoesdev.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":"2025-07-31T00:25:25.000Z","updated_at":"2025-07-31T01:04:12.000Z","dependencies_parsed_at":"2025-07-31T03:14:48.453Z","dependency_job_id":"c6c1866a-7800-41e9-b0bb-d4f467c9e589","html_url":"https://github.com/harshdoesdev/helix-type-gen","commit_stats":null,"previous_names":["harshdoesdev/helix-type-gen"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/harshdoesdev/helix-type-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fhelix-type-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fhelix-type-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fhelix-type-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fhelix-type-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshdoesdev","download_url":"https://codeload.github.com/harshdoesdev/helix-type-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fhelix-type-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273843633,"owners_count":25178079,"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-09-05T02:00:09.113Z","response_time":402,"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":"2025-09-06T01:12:50.621Z","updated_at":"2025-09-06T01:12:56.277Z","avatar_url":"https://github.com/harshdoesdev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# helix-ts-gen\n\nGenerate TypeScript types and a typed client from your HelixDB schema and queries.\n\n## Description\n\n`helix-ts-gen` is a command-line tool that introspects your HelixDB database to generate TypeScript types for your schema and a typed client for your queries.\n\n## Installation\n\nYou can install `helix-ts-gen` by running the following command in your terminal:\n\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/harshdoesdev/helix-type-gen/main/install.sh)\"\n```\n\nThis script will download the latest release from GitHub, unzip it, and install the `helix-ts-gen` binary to `/usr/local/bin`.\n\n## Usage\n\nRun the following command to generate the TypeScript client:\n\n```bash\nhelix-ts-gen --endpoint \u003cyour-helixdb-endpoint\u003e --output-file \u003coutput-path\u003e\n```\n\n-   `--endpoint`: The URL of your HelixDB instance (e.g., `http://localhost:6969`).\n-   `--output-file`: The path where the generated TypeScript file will be saved (e.g., `helix-client.ts`).\n\nThis will generate a TypeScript file at the specified output path, containing the types for your schema and a typed client for your queries.\n\n### Example\n\nTo generate a TypeScript client from a HelixDB instance running on `http://localhost:6969` and save it to `helix-client.ts`:\n\n```bash\nhelix-ts-gen --endpoint http://localhost:6969 --output-file helix-client.ts\n```\n\nYou can then import the generated client in your TypeScript code:\n\n```typescript\nimport HelixDBClient from 'helix-ts';\nimport { createTypedClient } from './helix-client';\n\nconst client = createTypedClient(new HelixDBClient(\"http://localhost:6969\"));\n\n// Now you can use the typed client to interact with your HelixDB instance\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshdoesdev%2Fhelix-type-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshdoesdev%2Fhelix-type-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshdoesdev%2Fhelix-type-gen/lists"}