{"id":16014625,"url":"https://github.com/dillonkearns/elm-electron","last_synced_at":"2025-06-21T08:05:28.610Z","repository":{"id":57222586,"uuid":"98488352","full_name":"dillonkearns/elm-electron","owner":"dillonkearns","description":"Type-safe interprocess communication for Electron apps built with Elm.","archived":false,"fork":false,"pushed_at":"2017-08-06T21:54:48.000Z","size":5378,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-17T21:37:33.071Z","etag":null,"topics":["electron","elm","ipc"],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/dillonkearns.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}},"created_at":"2017-07-27T03:09:00.000Z","updated_at":"2023-10-02T03:19:31.000Z","dependencies_parsed_at":"2022-08-29T04:10:11.088Z","dependency_job_id":null,"html_url":"https://github.com/dillonkearns/elm-electron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dillonkearns/elm-electron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonkearns%2Felm-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonkearns%2Felm-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonkearns%2Felm-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonkearns%2Felm-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dillonkearns","download_url":"https://codeload.github.com/dillonkearns/elm-electron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillonkearns%2Felm-electron/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260498480,"owners_count":23018265,"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":["electron","elm","ipc"],"created_at":"2024-10-08T15:04:22.840Z","updated_at":"2025-06-21T08:05:23.587Z","avatar_url":"https://github.com/dillonkearns.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm-Electron\n\nCommunicate between your Elm pages and your main NodeJS Electron process\nwith the type-safety your accustomed to in Elm.\n\n![Type-Safe IPC Messages](/demo.gif)\n\n## Usage\nSee [github.com/dillonkearns/elm-electron-starter](https://github.com/dillonkearns/elm-electron-starter) for reference or to setup a brand new project.\n\nSee [github.com/dillonkearns/mobster](https://github.com/dillonkearns/mobster)\nfor a real-world example of this library in action.\n\n* `cd` into your electron project.\n* `npm install --save-dev elm-electron`.\n* Add a script in your `package.json` `scripts` section similar to:\n```javascript\n\"scripts\": {\n  ...\n  \"generate-ipc\": \"elm-electron src/Ipc.elm --ts src/ipc.ts --elm src/IpcSerializer.elm\"\n}\n```\n\nWhere `src/Ipc.elm` is the location of your `Ipc.Msg` union type and `src/ipc.ts` is the location where you would like to save the generated typescript discriminated union.\n\nImport the generated code in your Electron nodejs typescript code with `import { Ipc } from 'src/ipc.ts'` (or whatever the relative path to your generated file is).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillonkearns%2Felm-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdillonkearns%2Felm-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillonkearns%2Felm-electron/lists"}