{"id":31974710,"url":"https://github.com/splitio/split-electron","last_synced_at":"2025-10-14T20:20:37.850Z","repository":{"id":182632398,"uuid":"668804107","full_name":"splitio/split-electron","owner":"splitio","description":"Example of integrating Split JS and node.js SDK in an Electron app.","archived":false,"fork":false,"pushed_at":"2023-07-20T16:34:04.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-21T14:38:30.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/splitio.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-07-20T16:15:58.000Z","updated_at":"2023-07-20T16:34:57.000Z","dependencies_parsed_at":"2023-07-20T23:15:51.677Z","dependency_job_id":null,"html_url":"https://github.com/splitio/split-electron","commit_stats":null,"previous_names":["splitio/split-electron"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splitio/split-electron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fsplit-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fsplit-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fsplit-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fsplit-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitio","download_url":"https://codeload.github.com/splitio/split-electron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fsplit-electron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021032,"owners_count":26086947,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-10-14T20:20:21.751Z","updated_at":"2025-10-14T20:20:37.843Z","avatar_url":"https://github.com/splitio.png","language":"JavaScript","readme":"# split-electron-app\n\nThis is a simple example of Split in an Electron app.  \n\nUse the node.js SDK in preload.js to bring in the correct treatment without flicker.\n\nUse JS SDK in index.html to hook the SDK_UPDATE event and change the display in response to feature flag changes.\n\nYou will need to find client and server-side API keys to put into the samples.  Create a multivariant_demo feature flag and use the Syntax menu item to generate JavaScript and node.js example; the API keys are included in the example.\n\n- The multivariant_demo split mentioned has red, green, blue treatments and the following dynamic config:\n\nCreate a feature flag called multivariant_demo. You can cut-and-paste the JSON into the red, green, and blue treatments.\n\n```\nred: {\"text\":\"Bring a Cute Dog Home\",\"image\":\"http://www.cortazar-split.com/dog_by_the_door.jpeg\",\"image_width\":\"100%\"}\nblue: {\"text\":\"Adopt a Cute Dog\",\"image\":\"http://www.cortazar-split.com/dog_origin.jpeg\",\"image_width\":\"100%\"}\ngreen: {\"text\":\"This pet is chillin'\",\"image\":\"http://www.cortazar-split.com/dog_on_the_couch.jpeg\",\"image_width\":\"100%\"}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitio%2Fsplit-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitio%2Fsplit-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitio%2Fsplit-electron/lists"}