{"id":24935818,"url":"https://github.com/joeriddles/connect-json-schema-gen","last_synced_at":"2025-07-15T10:35:31.787Z","repository":{"id":275087960,"uuid":"925018759","full_name":"joeriddles/connect-json-schema-gen","owner":"joeriddles","description":"Generate a Synadia Connect component with AI!","archived":false,"fork":false,"pushed_at":"2025-01-31T05:50:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T03:43:39.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeriddles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-31T04:14:47.000Z","updated_at":"2025-01-31T05:26:19.000Z","dependencies_parsed_at":"2025-01-31T06:27:39.335Z","dependency_job_id":null,"html_url":"https://github.com/joeriddles/connect-json-schema-gen","commit_stats":null,"previous_names":["joeriddles/connect-json-schema-gen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeriddles/connect-json-schema-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fconnect-json-schema-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fconnect-json-schema-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fconnect-json-schema-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fconnect-json-schema-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeriddles","download_url":"https://codeload.github.com/joeriddles/connect-json-schema-gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeriddles%2Fconnect-json-schema-gen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265428968,"owners_count":23763665,"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":"2025-02-02T15:57:05.031Z","updated_at":"2025-07-15T10:35:31.570Z","avatar_url":"https://github.com/joeriddles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Generate a [Synadia Connect](https://github.com/synadia-io/connect) component with AI!\n\n```\n❯ ./main.py generate a nats source component\n{\n    'model_version': '1.0.0',\n    'name': 'nats_source',\n    'label': 'NATS Source',\n    'kind': \u003cComponentKind.source: 'source'\u003e,\n    'status': \u003cComponentStatus.stable: 'stable'\u003e,\n    'description': 'A source component that pulls data from NATS messaging system.',\n    'fields': [\n        {\n            'path': 'server_url',\n            'name': 'Server URL',\n            'label': 'NATS Server URL',\n            'kind': \u003cFieldKind.scalar: 'scalar'\u003e,\n            'type': \u003cFieldType.string: 'string'\u003e,\n            'description': 'The URL of the NATS server to connect to.',\n            'default': 'nats://localhost:4222'\n        },\n        {\n            'path': 'subject',\n            'name': 'Subject',\n            'label': 'NATS Subject',\n            'kind': \u003cFieldKind.scalar: 'scalar'\u003e,\n            'type': \u003cFieldType.string: 'string'\u003e,\n            'description': 'The NATS subject to subscribe to for incoming messages.',\n            'default': 'my.subject'\n        },\n        {\n            'path': 'queue_group',\n            'name': 'Queue Group',\n            'label': 'Queue Group',\n            'kind': \u003cFieldKind.scalar: 'scalar'\u003e,\n            'type': \u003cFieldType.string: 'string'\u003e,\n            'description': 'The queue group to use for load balancing among multiple subscribers.',\n            'optional': True\n        },\n        {\n            'path': 'durable',\n            'name': 'Durable Subscription',\n            'label': 'Durable Subscription',\n            'kind': \u003cFieldKind.scalar: 'scalar'\u003e,\n            'type': \u003cFieldType.bool: 'bool'\u003e,\n            'description': 'Whether to create a durable subscription to persist messages.',\n            'default': False\n        }\n    ]\n}\n```\n\n### Getting started\n\nSet your OpenAI API key, create a virtual environment, install dependencies, and run it.\n\n```shell\necho \"OPENAI_API_KEY=__YOUR_OPENAPI_KEY__\" \u003e .env \npython3 -m venv .venv\nsource .venv/bin/activate\npython3 -m pip install requirements.txt\npython3 -m main generate a nats source component\n```\n\nTo regenerate `model.py`, run `make generate`.\n\nTo convert generated schemas from JSON to YAML, run `make convert`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeriddles%2Fconnect-json-schema-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeriddles%2Fconnect-json-schema-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeriddles%2Fconnect-json-schema-gen/lists"}