{"id":24738670,"url":"https://github.com/zweifisch/yaddle","last_synced_at":"2026-05-10T09:45:48.458Z","repository":{"id":32892999,"uuid":"36487528","full_name":"zweifisch/yaddle","owner":"zweifisch","description":"Yet Another Data format Description Language","archived":false,"fork":false,"pushed_at":"2015-08-06T14:32:24.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-23T17:47:02.827Z","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":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}},"created_at":"2015-05-29T07:05:56.000Z","updated_at":"2015-08-02T09:57:27.000Z","dependencies_parsed_at":"2022-09-01T03:12:58.636Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/yaddle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fyaddle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fyaddle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fyaddle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fyaddle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/yaddle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245006658,"owners_count":20546136,"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-01-27T22:55:17.586Z","updated_at":"2026-05-10T09:45:43.429Z","avatar_url":"https://github.com/zweifisch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaddle\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n\nYet Another Data format Description LanguagE\n\n```yaml\n@role: admin | author | collaborator | \"role with space\"\n\nuser:\n  name: str{3,20}\n  age: int{10,200}\n  gender: male | female\n  roles: [@role]\n  description?: str{,200}\n```\n\ntranslate to json-schema\n\n```javascript\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"user\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"name\": {\n          \"type\": \"string\",\n          \"minLength\": 3,\n          \"maxLength\": 20\n        },\n        \"age\": {\n          \"type\": \"integer\",\n          \"minimum\": 10,\n          \"maximum\": 200\n        },\n        \"gender\": {\n          \"enum\": [\n            \"male\",\n            \"female\"\n          ]\n        },\n        \"roles\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"$ref\": \"#/definitions/role\"\n          }\n        },\n        \"description\": {\n          \"type\": \"string\",\n          \"maxLength\": 200\n        }\n      },\n      \"required\": [\n        \"name\",\n        \"age\",\n        \"gender\",\n        \"roles\"\n      ],\n      \"additionalProperties\": false\n    }\n  },\n  \"required\": [\n    \"user\"\n  ],\n  \"additionalProperties\": false,\n  \"definitions\": {\n    \"role\": {\n      \"enum\": [\n        \"admin\",\n        \"author\",\n        \"collaborator\",\n        \"role with space\"\n      ]\n    }\n  }\n}\n```\n\n## api\n\n```js\nrequire(\"babel/polyfill\");\nvar yaddle = require(\"yaddle\");\nyaddle.load(\"some.ydl\").then(...);\n\nyaddle.loads(schema).then(...);\n```\n\n## more details\n\nsee [yaddle-py](https://github.com/zweifisch/yaddle-py#more-details)\n\n[npm-image]: https://img.shields.io/npm/v/yaddle.svg?style=flat\n[npm-url]: https://npmjs.org/package/yaddle\n[travis-image]: https://img.shields.io/travis/zweifisch/yaddle.svg?style=flat\n[travis-url]: https://travis-ci.org/zweifisch/yaddle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fyaddle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fyaddle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fyaddle/lists"}