{"id":28960439,"url":"https://github.com/fmstrat/sxncd-flutter","last_synced_at":"2025-06-24T01:13:28.289Z","repository":{"id":279695052,"uuid":"939032221","full_name":"Fmstrat/SxncD-flutter","owner":"Fmstrat","description":"The Flutter library for SxncD, an Open Source Synchronization Server for use with any apps that that support a standard file import/export.","archived":false,"fork":false,"pushed_at":"2025-02-26T18:25:14.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T22:41:11.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fmstrat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2025-02-25T22:07:53.000Z","updated_at":"2025-02-26T21:44:30.000Z","dependencies_parsed_at":"2025-02-26T22:41:14.335Z","dependency_job_id":"06f5747c-a25f-4c2f-abc9-3db1eb457403","html_url":"https://github.com/Fmstrat/SxncD-flutter","commit_stats":null,"previous_names":["fmstrat/sxncd-flutter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fmstrat/SxncD-flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2FSxncD-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2FSxncD-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2FSxncD-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2FSxncD-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fmstrat","download_url":"https://codeload.github.com/Fmstrat/SxncD-flutter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fmstrat%2FSxncD-flutter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261584268,"owners_count":23180680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-06-24T01:13:27.573Z","updated_at":"2025-06-24T01:13:28.279Z","avatar_url":"https://github.com/Fmstrat.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/Fmstrat/sxncd-flutter/main/assets/logo.svg\" width=\"600\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n# SxncD Flutter Library\n\nThe Flutter library for [SxncD](https://github.com/Fmstrat/SxncD), an Open Source Synchronization Server for use with any apps that that support a standard file import/export.\n\n## Usage\n\n```dart\nimport 'package:sxncd/sxncd.dart';\n\n// When settings are changed:\nString savedTs = DateTime.now().toIso8601String();\nString settings = '{ \"bool\": true }';\n\n// When it's time to sync\nSxncdResponse syncResponse = await sxncdSync(\n    \"http://host.tld\", // The URL of the SxncD server\n    \"730bd41d5df...\",  // The API key\n    \"My Device\",       // The device name\n    settings,          // The settings data\n    savedTs,           // The last time settings were saved\n    \"password\",        // An optional password to E2E encrypt data\n);\n```\n\n## Response object\n\n**success**\n\n*bool*\n\nValues:\n```\ntrue\nfalse\n```\n\u003cbr\u003e\n\n**data**\n\n*String?*\n\nValues:\n```\n\u003cthe most recent settings data\u003e\n```\n\u003cbr\u003e\n\n**action**\n\n*String?*\n\nValues:\n```\ncreated       | A new settings entry was created.\nnone          | The server-side data and device data are already up to date.\nexistingNewer | The server-side data is newer than what was sent by the device.\nincomingNewer | The devices data is newer than the server-side data, so the\n                server has stored this new data.\n```\n\u003cbr\u003e\n\n**error**\n\n*String?*\n\nValues:\n```\n\u003cIf success is false, the reason why\u003e\n```\n\u003cbr\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmstrat%2Fsxncd-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmstrat%2Fsxncd-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmstrat%2Fsxncd-flutter/lists"}