{"id":13551434,"url":"https://github.com/simolus3/drift","last_synced_at":"2026-04-01T23:57:38.418Z","repository":{"id":37010083,"uuid":"168944140","full_name":"simolus3/drift","owner":"simolus3","description":"Drift is an easy to use, reactive, typesafe persistence library for Dart \u0026 Flutter.","archived":false,"fork":false,"pushed_at":"2026-02-23T12:14:35.000Z","size":35039,"stargazers_count":3160,"open_issues_count":213,"forks_count":445,"subscribers_count":35,"default_branch":"develop","last_synced_at":"2026-02-25T02:58:55.343Z","etag":null,"topics":["dart","dart-build-system","flutter","persistence","reactive","sqlite"],"latest_commit_sha":null,"homepage":"https://drift.simonbinder.eu/","language":"Dart","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/simolus3.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":"2019-02-03T12:42:56.000Z","updated_at":"2026-02-24T14:31:49.000Z","dependencies_parsed_at":"2026-01-27T23:05:01.039Z","dependency_job_id":null,"html_url":"https://github.com/simolus3/drift","commit_stats":{"total_commits":3693,"total_committers":162,"mean_commits":"22.796296296296298","dds":0.2740319523422692,"last_synced_commit":"e4e58827b704522071c082f5a10de5a8e0044417"},"previous_names":["simolus3/moor"],"tags_count":232,"template":false,"template_full_name":null,"purl":"pkg:github/simolus3/drift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fdrift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fdrift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fdrift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fdrift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simolus3","download_url":"https://codeload.github.com/simolus3/drift/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simolus3%2Fdrift/sbom","scorecard":{"id":283005,"data":{"date":"2025-08-11","repo":{"name":"github.com/simolus3/drift","commit":"9bbb57a74070b24ddc9611d0f2f625224c89808f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 24 issue activity found in the last 90 days -- score normalized to 10","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":0,"reason":"Found 1/30 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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/setup.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: extras/assets/sqlite3.wasm:1","Warn: binary detected: extras/integration_tests/legacy_web/test/sql-wasm.wasm:1"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact drift-2.28.1 not signed: https://api.github.com/repos/simolus3/drift/releases/236065603","Warn: release artifact drift-2.28.0 not signed: https://api.github.com/repos/simolus3/drift/releases/232060575","Warn: release artifact drift-2.27.0 not signed: https://api.github.com/repos/simolus3/drift/releases/225335091","Warn: release artifact drift-2.26.1 not signed: https://api.github.com/repos/simolus3/drift/releases/216311108","Warn: release artifact drift-2.26.0 not signed: https://api.github.com/repos/simolus3/drift/releases/204528191","Warn: release artifact drift-2.28.1 does not have provenance: https://api.github.com/repos/simolus3/drift/releases/236065603","Warn: release artifact drift-2.28.0 does not have provenance: https://api.github.com/repos/simolus3/drift/releases/232060575","Warn: release artifact drift-2.27.0 does not have provenance: https://api.github.com/repos/simolus3/drift/releases/225335091","Warn: release artifact drift-2.26.1 does not have provenance: https://api.github.com/repos/simolus3/drift/releases/216311108","Warn: release artifact drift-2.26.0 does not have provenance: https://api.github.com/repos/simolus3/drift/releases/204528191"],"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":-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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:168: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:250: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:294: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:296: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:309: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:346: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:374: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:378: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:185: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:206: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/main.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/publish.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/setup.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/setup.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/setup.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/setup.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/setup.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/setup.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/setup.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/simolus3/drift/setup.yml/develop?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating dart to dart@sha256:4553ec26e16610349e875f57a5bf75e19fa4a57d01bc86bbfc7cecec81d5ee35","Warn: containerImage not pinned by hash: docs/mkdocs/Dockerfile:2: pin your Docker image by updating squidfunk/mkdocs-material:9 to squidfunk/mkdocs-material:9@sha256:405aeb6dbf1fcddd1082993eacf288a46648ea56b846323f001aee619015a23b","Warn: pipCommand not pinned by hash: docs/mkdocs/Dockerfile:5","Warn: pipCommand not pinned by hash: docs/mkdocs/Dockerfile:6","Info:   0 out of  21 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 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-17T16:25:18.843Z","repository_id":37010083,"created_at":"2025-08-17T16:25:18.844Z","updated_at":"2025-08-17T16:25:18.844Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29811860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"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":["dart","dart-build-system","flutter","persistence","reactive","sqlite"],"created_at":"2024-08-01T12:01:48.265Z","updated_at":"2026-02-28T22:08:10.904Z","avatar_url":"https://github.com/simolus3.png","language":"Dart","readme":"# Drift\n\n[![Build Status](https://github.com/simolus3/drift/actions/workflows/main.yml/badge.svg)](https://github.com/simolus3/drift/actions/workflows/main.yml/badge.svg)\n[![Using melos](https://img.shields.io/badge/maintained%20with-melos-f700ff.svg?style=flat-square)](https://github.com/invertase/melos)\n\n| Core                                                                                      | Generator                                                                                              |\n| :---------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------: |\n| [![Main version](https://img.shields.io/pub/v/drift.svg)](https://pub.dev/packages/drift) | [![Generator version](https://img.shields.io/pub/v/drift_dev.svg)](https://pub.dev/packages/drift_dev) |\n\nDrift is a reactive persistence library for Flutter and Dart, built on top of\nSQLite.\nDrift is\n\n- __Flexible__: Drift lets you write queries in both SQL and Dart,\nproviding fluent apis for both languages. You can filter and order results\nor use joins to run queries on multiple tables. You can even use complex\nSQL features like `WITH` and `WINDOW` clauses.\n- __🔥 Feature rich__: Drift has builtin support for transactions, schema\nmigrations, complex filters and expressions, batched updates and joins. We\neven have a builtin IDE for SQL!\n- __📦 Modular__: Thanks to builtin support for daos and `import`s in SQL files, drift helps you keep your database code simple.\n- __🛡️ Safe__: Drift generates type-safe code based on your tables and queries. If you make a mistake in your queries, drift will find it at compile time and\nprovide helpful and descriptive lints.\n- __⚡ Fast__: Even though drift lets you write powerful queries, it can keep\nup with the performance of key-value stores like shared preferences and Hive. Drift is the only major persistence library with builtin threading support, allowing you to run database code across isolates with zero additional effort.\n- __Reactive__: Turn any SQL query into an auto-updating stream! This includes complex queries across many tables\n- __⚙️ Cross-Platform support__: Drift works on Android, iOS, macOS, Windows, Linux and the web. [This template](https://github.com/simolus3/drift/tree/develop/examples/app) is a Flutter todo app that works on all platforms.\n- __🗡️ Battle tested and production ready__: Drift is stable and well tested with a wide range of unit and integration tests. It powers production Flutter apps.\n\nWith drift, persistence on Flutter is fun!\n\n__To start using drift, read our detailed [docs](https://drift.simonbinder.eu/docs/getting-started/).__\n\nIf you have any questions, feedback or ideas, feel free to [create an\nissue](https://github.com/simolus3/drift/issues/new). If you enjoy this\nproject, I'd appreciate your [🌟 on GitHub](https://github.com/simolus3/drift/).\n\n## Sponsors\n\nDrift is proudly Sponsored by [Stream 💙](https://getstream.io/chat/sdk/flutter/?utm_source=Moor\u0026utm_medium=Github_Repo_Content_Ad\u0026utm_content=Developer\u0026utm_campaign=Moor_July2022_FlutterChatSDK_klmh22)\n\n\u003cp align=\"center\"\u003e\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://getstream.io/chat/sdk/flutter/?utm_source=Moor\u0026utm_medium=Github_Repo_Content_Ad\u0026utm_content=Developer\u0026utm_campaign=Moor_July2022_FlutterChatSDK_klmh22\" target=\"_blank\"\u003e\u003cimg width=\"250px\" src=\"https://stream-blog.s3.amazonaws.com/blog/wp-content/uploads/fc148f0fc75d02841d017bb36e14e388/Stream-logo-with-background-.png\"/\u003e\u003c/a\u003e\u003cbr/\u003e\u003cspan\u003e\u003ca href=\"https://getstream.io/chat/sdk/flutter/?utm_source=Moor\u0026utm_medium=Github_Repo_Content_Ad\u0026utm_content=Developer\u0026utm_campaign=Moor_July2022_FlutterChatSDK_klmh22\" target=\"_blank\"\u003eTry the Flutter Chat Tutorial \u0026nbsp💬\u003c/a\u003e\u003c/span\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/p\u003e\n\n## Working on this project\n\nThis repository contains a number of packages making up the drift project, most\nnotably:\n\n- `drift`: The main runtime for drift, which provides most APIs.\n- `drift_dev`: The compiler for drift tables, databases and daos. It\n   also contains a fully-featured SQL IDE for the Dart analyzer.\n- `sqlparser`: A SQL parser and static analyzer, written in pure Dart. This package can be used without drift to perform analysis on SQL statements.\nIt's on pub at\n[![sqlparser](https://img.shields.io/pub/v/sqlparser.svg)](https://pub.dev/packages/sqlparser)\n\nWe use [melos](https://melos.invertase.dev/) to manage the different packages\nin this repository.\n\nYou can install it with `dart pub global activate melos`. To activate it in this\nrepository, run `dart pub get` in this directory followed by `melos bootstrap`.\n\n","funding_links":[],"categories":["Dart","Plugins"],"sub_categories":["Storage"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimolus3%2Fdrift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimolus3%2Fdrift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimolus3%2Fdrift/lists"}