{"id":16186830,"url":"https://github.com/robloach/emscripten_clipboard","last_synced_at":"2025-10-28T22:30:48.132Z","repository":{"id":247142799,"uuid":"825104269","full_name":"RobLoach/emscripten_clipboard","owner":"RobLoach","description":"Use the Clipboard from Emscripten.","archived":false,"fork":false,"pushed_at":"2024-07-07T15:36:46.000Z","size":6,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-21T09:08:52.396Z","etag":null,"topics":["emscripten","single-header"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobLoach.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-06T19:34:40.000Z","updated_at":"2024-12-10T04:42:46.000Z","dependencies_parsed_at":"2024-10-27T19:26:53.701Z","dependency_job_id":"9b6cdb50-af1b-4418-a9d8-fa05ffc4c02d","html_url":"https://github.com/RobLoach/emscripten_clipboard","commit_stats":null,"previous_names":["robloach/emscripten_clipboard"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Femscripten_clipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Femscripten_clipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Femscripten_clipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Femscripten_clipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/emscripten_clipboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238732049,"owners_count":19521350,"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":["emscripten","single-header"],"created_at":"2024-10-10T07:19:42.375Z","updated_at":"2025-10-28T22:30:47.750Z","avatar_url":"https://github.com/RobLoach.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emscripten_clipboard\n\nAn attempt at allowing Clipboard usage through Emscripten. Due to browser permissions, the user is required to paste directly into the application to get the clipboard contents.\n\n## Example\n\n``` c\n#define EMSCRIPTEN_CLIPBOARD_IMPLEMENTATION\n#include \"emscripten_clipboard.h\"\n\n// Create the clipboard, and initialize it.\nemscripten_clipboard clipboard;\nemscripten_clipboard_init(\u0026clipboard);\n\n// Set the contents of the clipboard.\nemscripten_clipboard_set(\u0026clipboard, \"Hello, World!\");\n\n// Retrieve the contents. This can be iffy, due to browser permissions.\nconst char* text = emscripten_clipboard_get(\u0026clipboard);\n```\n\n## API\n\n``` c\nvoid emscripten_clipboard_init(emscripten_clipboard* clipboard);\nconst char* emscripten_clipboard_get(emscripten_clipboard* clipboard);\nvoid emscripten_clipboard_set(emscripten_clipboard* clipboard, const char* text);\n```\n\n## Dependencies\n\n- Emscripten\n\n## Development\n\n``` bash\nnpm start\n```\n\n## License\n\n[LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Femscripten_clipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Femscripten_clipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Femscripten_clipboard/lists"}