{"id":32284218,"url":"https://github.com/scientisst/scientisst_db","last_synced_at":"2026-02-22T00:01:23.459Z","repository":{"id":46199919,"uuid":"336423461","full_name":"scientisst/scientisst_db","owner":"scientisst","description":"Simple and powerful NoSQL document-based local database.","archived":false,"fork":false,"pushed_at":"2022-04-14T22:19:31.000Z","size":369,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-15T11:26:30.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/scientisst.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-02-06T00:40:38.000Z","updated_at":"2024-01-11T11:01:41.000Z","dependencies_parsed_at":"2022-09-10T22:02:09.560Z","dependency_job_id":null,"html_url":"https://github.com/scientisst/scientisst_db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scientisst/scientisst_db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientisst%2Fscientisst_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientisst%2Fscientisst_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientisst%2Fscientisst_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientisst%2Fscientisst_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scientisst","download_url":"https://codeload.github.com/scientisst/scientisst_db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scientisst%2Fscientisst_db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29699335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"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":[],"created_at":"2025-10-23T01:28:31.623Z","updated_at":"2026-02-22T00:01:23.444Z","avatar_url":"https://github.com/scientisst.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scientisst_db\n\n[![Pub](https://img.shields.io/pub/v/scientisst_db.svg)](https://pub.dev/packages/scientisst_db)\n\nOpen source Flutter plugin that implements a NoSQL document-based local database.\nThe syntax of this package is similar to other well-known databases, organizing its data in collections and documents.\n\nMade by the [ScientISST](https://scientisst.com) team.\n\n## Installation\n\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  scientisst_db: ^0.1.2\n```\n\n## Architecture\n\n![Architecture scheme](https://raw.githubusercontent.com/scientisst/scientisst_db/master/doc/scientisst_db_scheme.png)\n\nThe database stores data in the Applications Documents Directory, provided by [`path_provider`](https://pub.dev/packages/path_provider).\n\nThe database directory is stored in a root folder called `scientisst_db`.\n\nThe first layer is constituted only by `collections`, which have their corresponding directory. Each `collection` directory is constituted by three separate folders: `collections`, `documents`, and `metadata`. The `collection` children `documents` are stored in the `documents` folder, where each `document` has its separate file with a filename corresponding to its `ObjectId`. The `ObjectId` is generated according to MongoDB's [standard](https://docs.mongodb.com/manual/reference/method/ObjectId/) or can be an arbitrary `String`. The `document` data is stored in a JSON formatted text file.\n\nEach `document` has a corresponding `metadata` file which is stored in the `metadata` folder inside the `collection` directory, with a filename equal to the `ObjectId`, encoded also in the JSON format.\n\nA `document` can store `collections` (sub-collections), which are stored in a folder inside the `collections` directory under the parent `collection` directory. This folder has the same filename as the `document` `ObjectId` and it follows the same `collection` structure.\n\n## Examples\n\nSee the full example [here](https://github.com/scientisst/scientisst_db/blob/master/example/example.dart).\n\nSome basic examples:\n\n---\n\nAdd a document to a collection:\n\n```dart\nDocumentReference doc = await ScientISSTdb.instance.collection(\"movies\").add(\n  {\n    \"title\": \"Eternal Sunshine of the Spotless Mind\",\n    \"year\": 2004,\n    \"characters\": [\n      \"Joel\",\n      \"Clementine\",\n    ],\n  },\n);\n```\n\n---\n\nUpdate a document:\n\n```dart\nawait doc.update(\n  {\n    \"title\": \"Hello world\",\n  },\n);\n```\n\n---\n\nDelete a document:\n\n```dart\nawait ScientISSTdb.instance.collection(\"movies\").document(\"507f1f77bcf86cd7994ca120\").delete();\n```\n\n---\n\nGet all documents from a collection:\n\n```dart\nawait ScientISSTdb.instance.collection(\"movies\").getDocuments();\n```\n\n---\n\nOrder documents by field value:\n\n```dart\nawait ScientISSTdb.instance\n    .collection(\"movies\")\n    .orderBy(\"year\", ascending: false)\n    .getDocuments();\n```\n\n## Future\n\n- Improve the `Exceptions` thrown.\n\nIf you have any suggestion or problem, let us know and we'll try to improve or fix them.\n\n## License\n\nGNU General Public License v3.0, see the [LICENSE](https://github.com/scientisst/scientisst_db/tree/master/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientisst%2Fscientisst_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientisst%2Fscientisst_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientisst%2Fscientisst_db/lists"}