{"id":24738633,"url":"https://github.com/zweifisch/uddl","last_synced_at":"2026-02-24T12:04:26.989Z","repository":{"id":265215428,"uuid":"895468584","full_name":"zweifisch/uddl","owner":"zweifisch","description":"universal schema language","archived":false,"fork":false,"pushed_at":"2024-12-02T07:19:59.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T05:58:00.716Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zweifisch.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":"2024-11-28T09:12:24.000Z","updated_at":"2024-12-02T07:20:02.000Z","dependencies_parsed_at":"2025-01-27T22:55:10.901Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/uddl","commit_stats":null,"previous_names":["zweifisch/uddl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zweifisch/uddl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fuddl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fuddl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fuddl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fuddl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/uddl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fuddl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29781251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-27T22:55:07.246Z","updated_at":"2026-02-24T12:04:26.972Z","avatar_url":"https://github.com/zweifisch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Universal Data Description Language\n\n```\nTypeScript \u003c- UDDL -\u003e SQL\n               |\n               v\n          json-schema\n```\n\nExample:\n\n```\nUser {\n  id(primary_key auto_increment): int\n  name?: string\n  email(unique maxLength:255): string\n  gender(default:0 maximum:2): int\n}\n```\n\n### -\u003e TypeScript\n\n```ts\nimport {toTS} from 'uddl'\ntoTS(input)\n```\n```ts\nexport class User {\n  id: number\n  name?: string\n  email: string\n  gender: number = 0\n}\n```\n\n### -\u003e SQL\n\n```ts\nimport {toSQL} from 'uddl'\ntoSQL(input)\n```\n\n```sql\nCREATE TABLE \"user\" (\n  id INTEGER PRIMARY KEY AUTOINCREMENT,\n  name TEXT,\n  email TEXT UNIQUE NOT NULL,\n  gender INTEGER DEFAULT 0 NOT NULL\n);\n```\n\n#### postgresql\n\n```ts\ntoSQL(input, {flavor: 'postgresql'})\n```\n\n```sql\nCREATE TABLE \"user\" (\n  id PRIMARY KEY BIGSERIAL,\n  name TEXT,\n  email VARCHAR(255) NOT NULL,\n  gender SMALLINT NOT NULL DEFAULT 0\n);\n```\n\n### -\u003e json-schema\n\n```ts\nimport {toJSONSchema} from 'uddl'\ntoJSONSchema(input)\n```\n\n```json\n{\n  \"definitions\": {\n    \"User\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"email\": {\n          \"type\": \"string\",\n          \"maxLength\": 255\n        },\n        \"gender\": {\n          \"maximum\": 2,\n          \"type\": \"integer\"\n        },\n        \"id\": {\n          \"type\": \"integer\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [ \"id\", \"email\", \"gender\" ]\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fuddl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fuddl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fuddl/lists"}