{"id":21487057,"url":"https://github.com/dtinth/synchroscope","last_synced_at":"2025-08-29T02:38:02.257Z","repository":{"id":8809212,"uuid":"10505942","full_name":"dtinth/synchroscope","owner":"dtinth","description":"Realtime Angular.js scope syncing across multiple clients with Socket.IO","archived":false,"fork":false,"pushed_at":"2013-10-15T11:28:04.000Z","size":512,"stargazers_count":86,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-11T04:28:37.191Z","etag":null,"topics":["angularjs","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dtinth.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2013-06-05T15:30:54.000Z","updated_at":"2022-09-22T00:52:18.000Z","dependencies_parsed_at":"2022-09-02T11:51:34.685Z","dependency_job_id":null,"html_url":"https://github.com/dtinth/synchroscope","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dtinth/synchroscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fsynchroscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fsynchroscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fsynchroscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fsynchroscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtinth","download_url":"https://codeload.github.com/dtinth/synchroscope/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtinth%2Fsynchroscope/sbom","scorecard":{"id":358455,"data":{"date":"2025-08-11","repo":{"name":"github.com/dtinth/synchroscope","commit":"e5bd12bdef40f6f5cfb067a1b457d7d754087575"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/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":"Maintained","score":0,"reason":"0 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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/dtinth/open-gitops.github/SECURITY.md:1","Info: Found linked content: github.com/dtinth/open-gitops.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/dtinth/open-gitops.github/SECURITY.md:1","Info: Found text in security policy: github.com/dtinth/open-gitops.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-18T10:11:19.334Z","repository_id":8809212,"created_at":"2025-08-18T10:11:19.334Z","updated_at":"2025-08-18T10:11:19.334Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272612178,"owners_count":24964388,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["angularjs","socket-io"],"created_at":"2024-11-23T13:26:08.484Z","updated_at":"2025-08-29T02:38:02.201Z","avatar_url":"https://github.com/dtinth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"synchroscope ($YNC) [![(Build Status)](https://travis-ci.org/dtinth/synchroscope.png?branch=master)](https://travis-ci.org/dtinth/synchroscope)\n===================\n\n__synchroscope__ makes it very easy in to share AngularJS scope variables across multiple clients.\nIt can be used to make a real-time interactive web application that runs on multiple devices.\n\n\nDemo\n----\n\n* [AngularJS Todos Demo](http://jsfiddle.net/thai/MxNJM/)\n* [Tic Tac Toe Game](http://jsfiddle.net/thai/8Gsyr/)\n\n\nDemo Server\n-----------\n\nA demo server for Synchroscope is available at \u003chttp://synchroscope.herokuapp.com/\u003e, so you can\nexperiment with Synchroscope.\n\nNote that the server may restart (and the database reset) at any time!\n\n\nClient\n------\n\nSymlink or copy `client/sync.js` to your Angular project, and include it along with `socket.io.js`.\n\nIf you include [__CryptoJS.MD5__](https://code.google.com/p/crypto-js/) on your page, synchroscope will generate\nrevision IDs based on the cryptographic hash of the content instead of random string,\nwhich may help prevent editing conflicts a little bit.\n\n```html\n\u003cscript src=\"/socket.io/socket.io.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/md5.js\"\u003e\u003c/script\u003e\u003c!-- recommended --\u003e\n\u003cscript src=\"path/to/sync.js\"\u003e\u003c/script\u003e\n```\n\nThen, declare a dependency on `synchroscope` module,\nask for the `$ync` service, and just call it:\n\n```javascript\nangular.module('myApp', ['synchroscope'])\n  .controller('MyController', function($scope, $ync) {\n\n    $scope.hello = 'initial data'\n    $scope.world = 'for synchroscope demo'\n    $scope.foo = 'TRY IT!'\n\n    var keys = ['hello', 'world']  // keys that you want to share\n    var room = 'test'              // room name\n    var sync = $ync($scope, keys, room)\n    \n  })\n```\n\nAs soon as you call `$ync`, the keys `hello` and `world` will be\nsynchronized across all browser clients who are in the same server and same room.\n\nWhen the initial synchronization is made, the `$scope.$ynchronized` property will become __true__.\nYou can check that property to display loading screen or something.\n\n### Specifying the Room and Server\n\nThe third argument for the $ync function can be in form of:\n\n* `http://hostname:port/synchroscope#roomName`\n    * The server and path is specified before the hash sign.\n* `roomName`\n    * The server is assumed to be the same server, with path /synchroscope. This is the same as `/synchroscope#roomName`.\n\n\nServer\n------\n\nLet's assume that `io` is a Socket.IO server object obtained by something like this:\n`var io = require('socket.io').listen(server)`. Just add this line to your server:\n\n```javascript\nrequire('synchroscope').listen(io.of('/synchroscope'))\n```\n\n\nProjects Using synchroscope\n---------\n\n* [Freshy Camp Registration Webapp](http://me.dt.in.th/page/Synchroscope). Synchroscope was made for this app. Actually, it was extracted from this app.\n* [shoutpraises](https://github.com/dtinth/shoutpraises). Web based remotely controlled worship lyrics presentation application.\n\nLimitations\n-----------\n\n* All synchronized data must be `JSON.stringify`able (with the exception of undefined, which is handled specially).\n* This server stores all states in-memory. This server will not scale across multiple processes.\n* Each variable synchronizes on its own. If a client sets 2 variable at the same time,\n  it is possible that other clients may receive one variable before another.\n* When the server is restarted, funny things may happen. (clients may go out of sync)\n    * If you restart your web server often, then it may be a good idea to run a synchroscope server separately...\n        as easy as `node --eval 'require(\"synchroscope\").listen(require(\"socket.io\").listen(8008).of(\"/synchroscope\"))'`.\n\n\n\n\nLicense\n-------\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtinth%2Fsynchroscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtinth%2Fsynchroscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtinth%2Fsynchroscope/lists"}