{"id":36503045,"url":"https://github.com/mlipscombe/postgraphile-plugin-fulltext-filter","last_synced_at":"2026-01-12T02:26:01.300Z","repository":{"id":57138522,"uuid":"138799300","full_name":"mlipscombe/postgraphile-plugin-fulltext-filter","owner":"mlipscombe","description":"Full-text filtering in PostGraphile","archived":false,"fork":false,"pushed_at":"2020-10-03T07:48:33.000Z","size":27,"stargazers_count":39,"open_issues_count":9,"forks_count":29,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T02:38:53.406Z","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/mlipscombe.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":"2018-06-26T22:13:07.000Z","updated_at":"2025-08-10T04:17:38.000Z","dependencies_parsed_at":"2022-09-03T13:42:32.876Z","dependency_job_id":null,"html_url":"https://github.com/mlipscombe/postgraphile-plugin-fulltext-filter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mlipscombe/postgraphile-plugin-fulltext-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlipscombe%2Fpostgraphile-plugin-fulltext-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlipscombe%2Fpostgraphile-plugin-fulltext-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlipscombe%2Fpostgraphile-plugin-fulltext-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlipscombe%2Fpostgraphile-plugin-fulltext-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlipscombe","download_url":"https://codeload.github.com/mlipscombe/postgraphile-plugin-fulltext-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlipscombe%2Fpostgraphile-plugin-fulltext-filter/sbom","scorecard":{"id":653391,"data":{"date":"2025-08-11","repo":{"name":"github.com/mlipscombe/postgraphile-plugin-fulltext-filter","commit":"c780ff524da1ab691d843300bae34f60dfd83d83"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/20 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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"}}]},"last_synced_at":"2025-08-21T14:06:07.034Z","repository_id":57138522,"created_at":"2025-08-21T14:06:07.034Z","updated_at":"2025-08-21T14:06:07.034Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-01-12T02:26:01.227Z","updated_at":"2026-01-12T02:26:01.286Z","avatar_url":"https://github.com/mlipscombe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Package on npm](https://img.shields.io/npm/v/postgraphile-plugin-fulltext-filter.svg)](https://www.npmjs.com/package/postgraphile-plugin-fulltext-filter)\n[![CircleCI](https://circleci.com/gh/mlipscombe/postgraphile-plugin-fulltext-filter/tree/master.svg?style=svg)](https://circleci.com/gh/mlipscombe/postgraphile-plugin-fulltext-filter/tree/master)\n\n# postgraphile-plugin-fulltext-filter\nThis plugin implements a full text search operator for `tsvector` columns in PostGraphile v4 via @mattbretl's excellent `postgraphile-plugin-connection-filter` plugin.\n\n## Getting Started\n\n### CLI\n\n``` bash\npostgraphile --append-plugins postgraphile-plugin-connection-filter,postgraphile-plugin-fulltext-filter\n```\n\nSee [here](https://www.graphile.org/postgraphile/extending/#loading-additional-plugins) for\nmore information about loading plugins with PostGraphile.\n\n### Library\n\n``` js\nconst express = require('express');\nconst { postgraphile } = require('postgraphile');\nconst PostGraphileConnectionFilterPlugin = require('postgraphile-plugin-connection-filter');\nconst PostGraphileFulltextFilterPlugin = require('postgraphile-plugin-fulltext-filter');\n\nconst app = express();\n\napp.use(\n  postgraphile(pgConfig, schema, {\n    appendPlugins: [\n      PostGraphileConnectionFilterPlugin,\n      PostGraphileFulltextFilterPlugin,\n    ],\n  })\n);\n\napp.listen(5000);\n```\n\n## Performance\n\nAll `tsvector` columns that aren't @omit'd should have indexes on them:\n\n``` sql\nALTER TABLE posts ADD COLUMN full_text tsvector;\nCREATE INDEX full_text_idx ON posts USING gin(full_text);\n```\n\n## Operators\n\nThis plugin adds the `matches` filter operator to the filter plugin, accepting\na GraphQL String input and using the `@@` operator to perform full-text searches\non `tsvector` columns.\n\nThis plugin uses [pg-tsquery](https://github.com/caub/pg-tsquery) to parse the\nuser input to prevent Postgres throwing on bad user input unnecessarily.\n\n## Fields\n\nFor each `tsvector` column, a rank column will be automatically added to the \nGraphQL type for the table by appending `Rank` to the end of the column's name.\nFor example, a column `full_text` will appear as `fullText` in the GraphQL type,\nand a second column, `fullTextRank` will be added to the type as a `Float`.\n\nThis rank field can be used for ordering and is automatically added to the orderBy\nenum for the table.\n\n## Examples\n\n``` graphql\nquery {\n  allPosts(\n    filter: {\n      fullText: { matches: 'foo -bar' }\n    }\n    orderBy: FULL_TEXT_RANK_DESC\n  }) {\n    ...\n    fullTextRank\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlipscombe%2Fpostgraphile-plugin-fulltext-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlipscombe%2Fpostgraphile-plugin-fulltext-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlipscombe%2Fpostgraphile-plugin-fulltext-filter/lists"}