{"id":15413076,"url":"https://github.com/fahad19/tydel","last_synced_at":"2025-04-19T03:20:12.795Z","repository":{"id":57383108,"uuid":"63350018","full_name":"fahad19/tydel","owner":"fahad19","description":"Typed Models \u0026 Collections for JavaScript data structure","archived":false,"fork":false,"pushed_at":"2019-05-02T19:15:50.000Z","size":160,"stargazers_count":37,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T18:53:14.157Z","etag":null,"topics":["data","immutable","javascript","models","structure"],"latest_commit_sha":null,"homepage":"http://tydel.js.org","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/fahad19.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-07-14T15:54:26.000Z","updated_at":"2023-03-11T12:20:10.000Z","dependencies_parsed_at":"2022-08-30T20:00:58.163Z","dependency_job_id":null,"html_url":"https://github.com/fahad19/tydel","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahad19%2Ftydel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahad19%2Ftydel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahad19%2Ftydel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fahad19%2Ftydel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fahad19","download_url":"https://codeload.github.com/fahad19/tydel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249598449,"owners_count":21297464,"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":["data","immutable","javascript","models","structure"],"created_at":"2024-10-01T16:55:23.295Z","updated_at":"2025-04-19T03:20:12.734Z","avatar_url":"https://github.com/fahad19.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tydel\n\u003c!--{h1:.massive-header.-with-tagline}--\u003e\n\n\u003e Typed models and collections\n\n[![Build Status](https://img.shields.io/travis/fahad19/tydel/master.svg)](http://travis-ci.org/fahad19/tydel) [![npm](https://img.shields.io/npm/v/tydel.svg)](https://www.npmjs.com/package/tydel) [![star](https://img.shields.io/github/stars/fahad19/tydel.svg?style=social\u0026label=Star)](https://github.com/fahad19/tydel)\n\nFor documentation, visit [http://tydel.js.org](http://tydel.js.org).\n\nIf you are looking for a reactive version of Tydel with RxJS, consider using [frint-data](https://frint.js.org/docs/packages/frint-data).\n\n## Overview\n\nTydel is a small library aimed at giving you a solid and strict **foundation** for your **data structure** needs in JavaScript.\n\nInstall it via [npm](https://npmjs.com):\n\n```sh\n$ npm install --save tydel\n```\n\nBasic usage example:\n\n```js\nimport { Types, createModel } from 'tydel';\n\nconst Todo = createModel({\n  title: Types.string.isRequired,\n  description: Types.string\n});\n\nconst todo = new Todo({\n  title: 'My first ToDo',\n  description: 'notes here...'\n});\n\nconsole.log(todo.title); // `My first ToDo`\n```\n\nOr load it via [unpkg](https://unpkg.com):\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/tydel@latest/dist/tydel.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  // window.Tydel\n\u003c/script\u003e\n```\n\nTry it out:\n\n\u003ca class=\"jsbin-embed\" href=\"http://jsbin.com/fudonovogi/embed?js,output\"\u003eJSBin\u003c/a\u003e\n\n\u003cscript src=\"http://static.jsbin.com/js/embed.min.js?3.39.11\"\u003e\u003c/script\u003e\n\n## Terminologies\n\nThe three main **terminologies** you would come across are:\n\n* [Types](./docs/getting-started/types.md): Strict type **expressions** for Model's values,\n* [Models](./docs/getting-started/models.md): for **representing** your data, and\n* [Collections](./docs/getting-started/collections.md): for containing Models like an **array**.\n\n## Guides\n\nThere is a [quickstart](./docs/intro/quickstart.md) guide which would get you up an running in no time. To understand the concepts well, read the [getting started](./docs/getting-started/types.md) guides.\n\n[Install](./docs/intro/installation.md) it, and enjoy!\n\n## Integrations \u0026 Resources\n\n* [tydel-react](https://github.com/fahad19/tydel-react): React.js bindings\n* [tydel-logger](https://github.com/fahad19/tydel-logger): Prints state changes to console\n\n## Thanks\n\nThese beautifully made open source projects have directly or indirectly played an influential role for Tydel, and a huge amount of thanks go to their authors and contributors:\n\n* [Backbone.js](http://backbonejs.org/)\n* [Redux](https://redux.js.org/)\n* [MobX](https://mobxjs.github.io/mobx/)\n\n## License\n\nMIT © [Fahad Ibnay Heylaal](http://fahad19.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahad19%2Ftydel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffahad19%2Ftydel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffahad19%2Ftydel/lists"}