{"id":29584161,"url":"https://github.com/facile-it/fortepiano","last_synced_at":"2025-07-20T00:06:47.109Z","repository":{"id":39485027,"uuid":"364971573","full_name":"facile-it/fortepiano","owner":"facile-it","description":"Playing actual music over fp-ts notes","archived":false,"fork":false,"pushed_at":"2025-05-19T10:20:08.000Z","size":3690,"stargazers_count":7,"open_issues_count":10,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-02T04:50:50.884Z","etag":null,"topics":["fp-ts","functional-programming","io-ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/facile-it.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2021-05-06T16:24:13.000Z","updated_at":"2025-02-27T11:05:14.000Z","dependencies_parsed_at":"2024-04-14T14:28:14.515Z","dependency_job_id":"25e69f14-9353-4d46-913c-46e778a9de1e","html_url":"https://github.com/facile-it/fortepiano","commit_stats":{"total_commits":358,"total_committers":8,"mean_commits":44.75,"dds":0.2011173184357542,"last_synced_commit":"803a747f5ddcc64ecefa7b96123ae8439611bd3d"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/facile-it/fortepiano","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffortepiano","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffortepiano/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffortepiano/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffortepiano/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facile-it","download_url":"https://codeload.github.com/facile-it/fortepiano/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffortepiano/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266047230,"owners_count":23868707,"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":["fp-ts","functional-programming","io-ts","typescript"],"created_at":"2025-07-20T00:06:46.482Z","updated_at":"2025-07-20T00:06:47.098Z","avatar_url":"https://github.com/facile-it.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./logo.png\" width=150px\" height=\"auto\"/\u003e\n\u003c/p\u003e\n\n# fortepiano [ˌfɔrteˈpjaːno]\n\n_Playing actual music over `fp-ts` notes_ 🎶\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/facile-it/fortepiano/main)](https://github.com/facile-it/fortepiano/actions)\n[![Codecov](https://img.shields.io/codecov/c/gh/facile-it/fortepiano)](https://app.codecov.io/gh/facile-it/fortepiano)\n[![GitHub](https://img.shields.io/github/license/facile-it/fortepiano)](LICENSE.md)\n[![npm](https://img.shields.io/npm/v/fortepiano)](https://www.npmjs.com/package/fortepiano)\n\n## Description\n\nFortepiano is a mocking library for TypeScript. It promotes immutability, composability and purity, making it ideal for projects that embrace functional programming principles.\n\n## Getting Started\n\n### Installation\n\nTo install the stable version:\n\n```bash\nnpm install fortepiano\n```\n\nor using yarn:\n\n```bash\nyarn add fortepiano\n```\n\n### Usage\n\nFortepiano uses a functional API to create and configure mocks, encouraging pure function usage and immutable mock objects.\n\nHere's an example:\n\n```typescript\nimport { $mock } from 'fortepiano'\n\ninterface User {\n  firstName: string\n  lastName: string\n}\n\nexport const UserMock = (): $mock.Mock\u003cUser\u003e =\u003e\n  $mock.struct({\n    firstName: $mock.string,\n    lastName: $mock.string,\n  })\n\nconsole.log(UserMock()()()) // Output: { firstName: 'randomString', lastName: 'randomString' }\n```\n\n## Contributing\n\nSee the [CONTRIBUTING.md](CONTRIBUTING.md) file for details.\n\n## Authors\n\n- [Davide Caruso](https://github.com/davidecaruso)\n- [Pier Roberto Lucisano](https://github.com/pierroberto)\n- [Alberto Villa](https://github.com/xzhayon)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacile-it%2Ffortepiano","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacile-it%2Ffortepiano","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacile-it%2Ffortepiano/lists"}