{"id":23122729,"url":"https://github.com/folio-org/folio-analytics","last_synced_at":"2026-01-28T22:00:30.847Z","repository":{"id":37490981,"uuid":"158291286","full_name":"folio-org/folio-analytics","owner":"folio-org","description":"Community query repository for FOLIO analytics based on Metadb/LDP","archived":false,"fork":false,"pushed_at":"2025-06-11T23:57:04.000Z","size":3601,"stargazers_count":16,"open_issues_count":56,"forks_count":32,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-10-25T08:21:57.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"SQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/folio-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-19T21:17:29.000Z","updated_at":"2025-10-07T14:52:31.000Z","dependencies_parsed_at":"2023-02-19T12:16:16.322Z","dependency_job_id":"1b585926-1775-4a56-9288-1964d3ef517b","html_url":"https://github.com/folio-org/folio-analytics","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/folio-org/folio-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Ffolio-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Ffolio-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Ffolio-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Ffolio-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folio-org","download_url":"https://codeload.github.com/folio-org/folio-analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folio-org%2Ffolio-analytics/sbom","scorecard":{"id":406123,"data":{"date":"2025-08-11","repo":{"name":"github.com/folio-org/folio-analytics","commit":"cd45a778db50e9a5cbeb10d880e112d0f4f6d0a4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"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":"Maintained","score":0,"reason":"1 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":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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: Apache License 2.0: 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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"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-18T21:18:08.937Z","repository_id":37490981,"created_at":"2025-08-18T21:18:08.937Z","updated_at":"2025-08-18T21:18:08.937Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28853194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: 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":[],"created_at":"2024-12-17T07:30:04.471Z","updated_at":"2026-01-28T22:00:30.798Z","avatar_url":"https://github.com/folio-org.png","language":"SQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# folio-analytics\n\nCopyright (C) 2018-2025 The Open Library Foundation\n\nThis software is distributed under the terms of the Apache License,\nVersion 2.0. See the file \"[LICENSE](LICENSE)\" for more information.\n\n\n## Releases\n\nEach release of folio-analytics is tested with a specific FOLIO\nrelease, but it may also work with other FOLIO releases.\n\n|     FOLIO     |           LDP            |                Metadb                |\n| ------------- | :----------------------: | :----------------------------------: |\n| Kiwi          |   folio-analytics 1.2    |                                      |\n| Lotus         |   folio-analytics 1.3    |                                      |\n| Morning Glory |   folio-analytics 1.4    |                                      |\n| Nolana        |   folio-analytics 1.5    |  folio-analytics 1.7 (Metadb 1.2)    |\n| Orchid        |   folio-analytics 1.6    |                                      |\n| Poppy         |   folio-analytics 1.7    |                                      |\n| Quesnelia     |                          |                                      |\n| Ramsons       |                          |                                      |\n| Sunflower     |                          |                                      |\n\n\n## Overview\n\nThis repository contains reports and other analytics developed for\nFOLIO and designed to run on the [Library Data\nPlatform](https://github.com/library-data-platform/ldp).  At present\nmost of the content here consists of SQL reports developed by the\nFOLIO reporting community and based on the requirements of [FOLIO\npartner libraries](https://www.folio.org/community/support/).  In\naddition to report development, FOLIO has a [Reporting Special\nInterest Group](https://wiki.folio.org/display/RPT/) that discusses\nreporting requirements and other related topics.\n\n\n## How to use this repository\n\nMetadb/LDP-based queries are written in SQL.  To use these queries,\nyou will need to connect to a Metadb or LDP database instance using a\nreporting tool that supports SQL.  Examples of reporting tools that\nwill execute SQL include DBeaver, Aqua Data Studio, and Tableau.\n\nIf none of the queries provided match your needs, you can look for an\nexisting query to use as a starting point and edit the query to create\nthe desired output.  The [Metadb\nDocumentation](https://metadb.dev/doc/) and [LDP User\nGuide](https://github.com/library-data-platform/ldp/blob/main/doc/User_Guide.md)\ninclude guidelines for writing queries.\n\n\n## Queries\n\nMetadb SQL queries are stored in the [sql_metadb\ndirectory](sql_metadb) of this repository.  Queries are separated into\ntwo categories: [derived table queries](sql_metadb/derived_tables) and\n[report queries](sql_metadb/report_queries).  LDP SQL queries are\nstored in the [sql directory](sql).\n\nDerived table queries are designed to combine tables that are commonly\nused together or to otherwise simply querying.\n\nReport queries are created in response to specific report requests\nfrom FOLIO member institutions.  Each query is located in a separate\ndirectory.  A full report may contain several individual queries.\nConsult the README.md file in the [report\nqueries](sql_metadb/report_queries) folder for a query table of\ncontents, and look for additional README.md files in the query folders\nto explain how to run the reports.\n\n\n## Branches\n\nThere are two primary types of branches:\n\n* The main branch (`main`).  This is a development branch where new\n  features are first merged.  This branch is relatively unstable.  It\n  is also the default view when browsing the repository on GitHub.\n\n* Release branches (`release-*`).  These are releases made from\n  `main`.  They are managed as stable branches; i.e. they may receive\n  bug fixes but generally no new features.  Production deployments\n  should install release tags.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolio-org%2Ffolio-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolio-org%2Ffolio-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolio-org%2Ffolio-analytics/lists"}