{"id":18373051,"url":"https://github.com/reon90/glfwjs","last_synced_at":"2025-04-13T02:57:22.387Z","repository":{"id":38012493,"uuid":"241851505","full_name":"Reon90/glfwJS","owner":"Reon90","description":"The N-API bindings for GLFW ","archived":false,"fork":false,"pushed_at":"2025-01-09T09:45:10.000Z","size":3131,"stargazers_count":53,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T02:56:45.074Z","etag":null,"topics":["c","glfw","javascript","n-api","nodejs","opengl","vulkan"],"latest_commit_sha":null,"homepage":"","language":"C","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/Reon90.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":"2020-02-20T10:07:33.000Z","updated_at":"2025-03-12T22:29:20.000Z","dependencies_parsed_at":"2025-02-25T08:01:47.209Z","dependency_job_id":"627f0fd3-1a6e-4380-8cd7-06f74e2967b5","html_url":"https://github.com/Reon90/glfwJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reon90%2FglfwJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reon90%2FglfwJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reon90%2FglfwJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reon90%2FglfwJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reon90","download_url":"https://codeload.github.com/Reon90/glfwJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657872,"owners_count":21140844,"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":["c","glfw","javascript","n-api","nodejs","opengl","vulkan"],"created_at":"2024-11-06T00:08:23.506Z","updated_at":"2025-04-13T02:57:22.362Z","avatar_url":"https://github.com/Reon90.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glfwJS\n\nThe N-API bindings for [GLFW](https://www.glfw.org/) multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop. It provides a simple API for creating windows, contexts and surfaces, receiving input and events.\n\n## Example\n```js\nif (!glfwInit()) {\n    process.exit(1);\n}\n\nconst window = glfwCreateWindow(kWidth, kHeight, \"Simple example\", null, null);\nif (!window) {\n    glfwTerminate();\n    process.exit(1);\n}\nglfwMakeContextCurrent(window);\n\nglfwSwapInterval(1);\nglfwSetKeyCallback(window, key_callback);\n\nfunction drawLoop() {\n    if (!glfwWindowShouldClose(window)) {\n        setTimeout(drawLoop, 0);\n    } else {\n        glfwDestroyWindow(window);\n        glfwTerminate();\n        process.exit(0);\n    }\n\n    glfwSwapBuffers(window);\n    glfwPollEvents();\n}\ndrawLoop();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freon90%2Fglfwjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freon90%2Fglfwjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freon90%2Fglfwjs/lists"}