{"id":20170184,"url":"https://github.com/fabrix-app/spool-tapestries","last_synced_at":"2026-01-21T11:33:37.319Z","repository":{"id":52106621,"uuid":"137920813","full_name":"fabrix-app/spool-tapestries","owner":"fabrix-app","description":"Spool: Basic RESTful API interface","archived":false,"fork":false,"pushed_at":"2021-05-07T11:38:12.000Z","size":105,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-01T23:13:43.956Z","etag":null,"topics":["api","fabrix","nodejs","rest","spools","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabrix-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-19T16:59:57.000Z","updated_at":"2018-12-05T13:40:17.000Z","dependencies_parsed_at":"2022-09-06T07:54:51.626Z","dependency_job_id":null,"html_url":"https://github.com/fabrix-app/spool-tapestries","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fabrix-app/spool-tapestries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-tapestries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-tapestries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-tapestries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-tapestries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabrix-app","download_url":"https://codeload.github.com/fabrix-app/spool-tapestries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-tapestries/sbom","scorecard":{"id":390623,"data":{"date":"2025-08-11","repo":{"name":"github.com/fabrix-app/spool-tapestries","commit":"de24df690cc8e878fbf04260c0dae7df53a4ce61"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"33 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T17:42:50.219Z","repository_id":52106621,"created_at":"2025-08-18T17:42:50.219Z","updated_at":"2025-08-18T17:42:50.219Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"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":["api","fabrix","nodejs","rest","spools","typescript"],"created_at":"2024-11-14T01:17:37.249Z","updated_at":"2026-01-21T11:33:37.304Z","avatar_url":"https://github.com/fabrix-app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spool-tapestries\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build Status][ci-image]][ci-url]\n[![Test Coverage][coverage-image]][coverage-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Follow @fabrix-app on Twitter][twitter-image]][twitter-url]\n\nTapestries Spool. This spool provides the tapestry interface, which\nother spools such as [spool-sequelize](https://github.com/fabrix-app/spool-sequelize) implement,\nas well as a suite of tests that Tapestry implementations should pass.\n\n![Fabrix Tapestries Diagram][diagram-image]\n\n## What are Tapestries?\n\nTapestries automatically generate easy-to-use RESTful endpoints for your models.\n\n## Install\n\n```sh\n$ npm install @fabrix/spool-tapestries --save\n```\n\n## Configure\n\n```js\n// config/main.ts\nexport const main  {\n  spools: [\n    // ... other spools\n    require('@fabrix/spool-tapestries').TapestriesSpool\n  ]\n}\n```\n\n```js\n// config/tapestries.ts\nexport const tapestries = {\n  /**\n   * Generate routes for controller handlers.\n   * You can set controllers to true/false to enable/disable \n   * automatic tapestries routes globaly\n   */\n  controllers: {\n               \n     /**\n      * Default methods to accept for routes generated from controller handlers.\n      */\n     method: '*',\n  \n     /**\n      * List of controllers to ignore; that is, do not generate tapestry routes\n      * for them.\n      */\n     ignore: [ ]\n   },\n\n  /**\n   * Generate conventional Create, Read, Update, and Delete (CRUD) routes for\n   * each Model.\n   */\n  models: {\n    options: {\n\n      /**\n       * The max number of objects to return by default. Can be overridden in\n       * the request using the ?limit argument.\n       */\n      defaultLimit: 100,\n\n      /**\n       * Subscribe to changes on requested models via WebSocket\n       * (support provided by spool-websocket)\n       */\n      watch: false,\n\n      /**\n       * Whether to populate all model associations by default (for \"find\")\n       */\n      populate: true\n    },\n\n    actions: {\n      create: true,\n      find: true,\n      update: true,\n      destroy: true,\n\n      /**\n       * Specify which \"association\" endpoints to activate.\n       */\n      createAssociation: true,\n      findAssociation: true,\n      updateAssociation: true,\n      destroyAssociation: true\n    }\n  },\n\n  /**\n   * Prefix your tapestry route paths\n   */\n  prefix: '/api/v1'\n}\n```\n\n## API\n\n### `api.services.TapestryService`\n\nThe purpose of `TapestryService` is to transform and forward queries to the datastore.\n\n#### `create (modelName, values, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `modelName` | Yes | The name of the model to create (in `api.models`) | `User` |\n| `values` | Yes | An object containing the values of the record to create | `{ username: 'admin' }` |\n| `options` | No | Datastore-specific options |\n\n#### `find (modelName, criteria, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `modelName` | Yes | The name of the model to search for (in `api.models`) | `User` |\n| `criteria` | Yes | An object containing the query criteria | `{ username: 'admin' }` |\n| `options` | No | Datastore-specific options |\n\n#### `update (modelName, criteria, values, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `modelName` | Yes | The name of the model to create (in `api.models`) | `User` |\n| `criteria` | Yes | An object containing the query criteria | `{ username: 'admin' }` |\n| `values` | Yes | An object containing the values to update | `{ username: 'tjwebb' }` |\n| `options` | No | Datastore-specific options |\n\n#### `destroy (modelName, criteria, options)`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `modelName` | Yes | The name of the model to create (in `api.models`) | `User` |\n| `criteria` | Yes | An object containing the query criteria | `{ username: 'admin' }` |\n| `values` | Yes | An object containing the values to update | `{ username: 'tjwebb' }` |\n| `options` | No | Datastore-specific options |\n\n#### `createAssociation (parentModelName, parentId, childAttributeName, values, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `parentModelName` | Yes | The name of the parent model | `User`\n| `parentId` | Yes | The id of the parent model | `1`\n| `childAttributeName` | Yes | The name of the attribute to create and associate with the parent | `roles`\n| `values` | Yes | An object containing the values to create | `{ name: 'adminRole' }`\n| `options` | No | Datastore-specific options |\n\n#### `findAssociation (parentModelName, parentId, childAttributeName, criteria, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `parentModelName` | Yes | The name of the parent model | `User`\n| `parentId` | Yes | The id of the parent model | `1`\n| `childAttributeName` | Yes | The name of the attribute to create and associate with the parent | `roles`\n| `criteria` | Yes | An object containing the criteria to search on, or an id | `{ name: 'adminRole' }`\n| `options` | No | Datastore-specific options |\n\n#### `updateAssociation (parentModelName, parentId, childAttributeName, criteria, values, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `parentModelName` | Yes | The name of the parent model | `User`\n| `parentId` | Yes | The id of the parent model | `1`\n| `childAttributeName` | Yes | The name of the attribute to create and associate with the parent | `roles`\n| `criteria` | Yes | An object containing the criteria to search on, or an id | `{ name: 'adminRole' }`\n| `values` | Yes | An object containing the values to update | `{ name: 'adminRole' }`\n| `options` | No | Datastore-specific options |\n\n#### `destroyAssociation (parentModelName, parentId, childAttributeName, criteria, [options])`\n\n| param | required? | description | example |\n|:---|:---|:---|:---|\n| `parentModelName` | Yes | The name of the parent model | `User`\n| `parentId` | Yes | The id of the parent model | `1`\n| `childAttributeName` | Yes | The name of the attribute to destroy and dissociate from the parent | `roles`\n| `criteria` | Yes | An object containing the criteria to search on, or an id | `{ name: 'adminRole' }`\n| `options` | No | Datastore-specific options |\n\n### `api.controllers.TapestryController`\n\nThe purpose of the `TapestryController` is to transform and forward requests to the `TapestryService`.\n\n\n[diagram-image]: http://i.imgur.com/olRxPS8.png\n[npm-image]: https://img.shields.io/npm/v/@fabrix/spool-tapestries.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@fabrix/spool-tapestries\n[ci-image]: https://img.shields.io/circleci/project/github/fabrix-app/spool-tapestries/master.svg\n[ci-url]: https://circleci.com/gh/fabrix-app/spool-tapestries/tree/master\n[daviddm-image]: http://img.shields.io/david/fabrix-app/spool-tapestries.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/fabrix-app/spool-tapestries\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/fabrix-app/fabrix\n[twitter-image]: https://img.shields.io/twitter/follow/FabrixApp.svg?style=social\n[twitter-url]: https://twitter.com/FabrixApp\n[coverage-image]: https://img.shields.io/codeclimate/coverage/github/fabrix-app/spool-tapestries.svg?style=flat-square\n[coverage-url]: https://codeclimate.com/github/fabrix-app/spool-tapestries/coverage\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabrix-app%2Fspool-tapestries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabrix-app%2Fspool-tapestries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabrix-app%2Fspool-tapestries/lists"}