{"id":47880388,"url":"https://github.com/getditto/template-app-cpp-todo","last_synced_at":"2026-04-04T01:44:36.384Z","repository":{"id":203394443,"uuid":"709471553","full_name":"getditto/template-app-cpp-todo","owner":"getditto","description":null,"archived":true,"fork":false,"pushed_at":"2023-10-24T20:37:42.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T01:44:34.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getditto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-24T19:36:31.000Z","updated_at":"2025-02-21T15:36:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"091d545d-9b56-4e9a-bab9-54ce56abfc54","html_url":"https://github.com/getditto/template-app-cpp-todo","commit_stats":null,"previous_names":["getditto/template-app-cpp-todo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getditto/template-app-cpp-todo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Ftemplate-app-cpp-todo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Ftemplate-app-cpp-todo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Ftemplate-app-cpp-todo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Ftemplate-app-cpp-todo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getditto","download_url":"https://codeload.github.com/getditto/template-app-cpp-todo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getditto%2Ftemplate-app-cpp-todo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31384845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"ssl_error","status_checked_at":"2026-04-04T01:22:33.970Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2026-04-04T01:44:35.829Z","updated_at":"2026-04-04T01:44:36.374Z","avatar_url":"https://github.com/getditto.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# template-app-cpp-todo\n\n## Downloading and Unpacking Ditto\n\nDownload Ditto.tar.gz and unpack an archive containing the libditto.a static library and Ditto header:\n\n```\n//Linux aarch64\ncurl -O https://software.ditto.live/cpp-linux-aarch64/Ditto/4.3.0/dist/Ditto.tar.gz \u0026\u0026 tar xvfz Ditto.tar.gz\n\n//Linux x86_64\ncurl -O https://software.ditto.live/cpp-linux-x86_64/Ditto/4.3.0/dist/Ditto.tar.gz \u0026\u0026 tar xvfz Ditto.tar.gz\n```\n\n## Linking to Ditto\n\nAdd -lditto as a compilation step in the main.cpp source file: \n```\n# This command assumes:\n# You have unzipped the Ditto.tar.gz in a relative directory ./sdk/\n# Your main code entry point is in ./src/main.cpp\n\ng++ -std=c++17 ./src/main.cpp -I ./sdk -lditto -ldl -lrt -pthread -L ./sdk -o dist/main;\n\n # Once executed, your output will be available at: ./dist/main\n```\n\n## Importing Ditto\n\nFrom the source code of your app, using #include \u003cDitto.h\u003e,  import Ditto and provide your access credentials:\n```\nauto identity =\n    Identity::OnlinePlayground(\"YOUR_APP_ID\", \"PLAYGROUND_TOKEN\", true);\ntry {\n  Ditto ditto = Ditto(identity, dir);\n  ditto.set_minimum_log_level(LogLevel::debug);\n  ditto.start_sync();\n} catch (const DittoError \u0026err) {\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetditto%2Ftemplate-app-cpp-todo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetditto%2Ftemplate-app-cpp-todo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetditto%2Ftemplate-app-cpp-todo/lists"}