{"id":25778183,"url":"https://github.com/alandoherty/mdf","last_synced_at":"2026-05-14T17:31:09.164Z","repository":{"id":57293547,"uuid":"48127348","full_name":"alandoherty/mdf","owner":"alandoherty","description":"A format for defining models through external schemas","archived":false,"fork":false,"pushed_at":"2016-02-05T17:01:30.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T20:04:23.612Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alandoherty.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}},"created_at":"2015-12-16T18:20:26.000Z","updated_at":"2016-01-19T13:56:41.000Z","dependencies_parsed_at":"2022-09-02T05:42:16.432Z","dependency_job_id":null,"html_url":"https://github.com/alandoherty/mdf","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/alandoherty%2Fmdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Fmdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Fmdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alandoherty%2Fmdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alandoherty","download_url":"https://codeload.github.com/alandoherty/mdf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240989499,"owners_count":19889699,"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-27T06:29:53.123Z","updated_at":"2025-11-20T17:05:56.010Z","avatar_url":"https://github.com/alandoherty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/mdf.svg)](https://badge.fury.io/js/mdf)\n\nA format for defining models through external schemas, allowing you to better interact and publish information, maintaining important characteristics such as visibility to the end user.\n\n# Installing\n\n```bash\n$ npm install mdf\n```\n\n# Example\n\napp.js\n```\nvar mdf = require(\"../src/index\");\n\nmdf.loadFile(\"test.mdl\", function(err) {\n    if (err) {\n        console.error(\"error parsing file\");\n        console.error(mdf.getErrors());\n    } else {\n        console.log(mdf.getModels());\n        console.log(mdf.getEnums());\n        console.log(mdf.getTypeDefs());\n    }\n});\n```\n\ntest.mdl\n```\nimport \"hello.mdl\";\n\nmodel User : \"tbl_user\" {\n    public string firstName = \"\";\n    string lastName = \"\";\n    Email email;\n    bool emailVerified = false;\n    bool notifications;\n    bool blocked;\n    bool isPrivate;\n    Password password;\n    ref\u003cGroup\u003e group;\n    array\u003cstring(48)\u003e avatarUrls;\n    State state;\n}\n```\n\nhello.mdl\n```\nenum State {\n    Potato,\n    Mesh,\n    Hole\n}\n\ntypedef Email string(64)\ntypedef Password string(64)\n```\n\n# Testing\n\n```bash\n$ npm install mdf\n$ npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falandoherty%2Fmdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falandoherty%2Fmdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falandoherty%2Fmdf/lists"}