{"id":21577879,"url":"https://github.com/leeyunjai/blockly-sample","last_synced_at":"2026-05-16T23:08:31.441Z","repository":{"id":112349488,"uuid":"599967315","full_name":"leeyunjai/blockly-sample","owner":"leeyunjai","description":"sample code for blockly custom","archived":false,"fork":false,"pushed_at":"2024-05-31T07:04:36.000Z","size":1220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T14:15:41.910Z","etag":null,"topics":["blockly","blockly-import","python","python3"],"latest_commit_sha":null,"homepage":"","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/leeyunjai.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-10T09:27:54.000Z","updated_at":"2024-05-31T07:04:39.000Z","dependencies_parsed_at":"2023-05-13T14:00:15.343Z","dependency_job_id":null,"html_url":"https://github.com/leeyunjai/blockly-sample","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/leeyunjai%2Fblockly-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeyunjai%2Fblockly-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeyunjai%2Fblockly-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeyunjai%2Fblockly-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leeyunjai","download_url":"https://codeload.github.com/leeyunjai/blockly-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244175612,"owners_count":20410718,"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":["blockly","blockly-import","python","python3"],"created_at":"2024-11-24T13:08:52.869Z","updated_at":"2026-05-16T23:08:26.397Z","avatar_url":"https://github.com/leeyunjai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockly Sample Code using Node.js\r\nThis repo contains sample code for using Blockly in a Node.js environment.\r\n\r\n## Included Files\r\nThe following files are included in this repository:\r\n\r\n- main.js\r\n- index.html\r\n- index.js\r\n- static folder (contains blockly_compressed.js, python_compressed.js, blocks_compressed.js, ko.js, pythonblocks.js, and socket.io.min.js)\r\n\r\n## main.js\r\nThis file sets up the Express server and creates a socket connection using socket.io. It also serves the index.html file when the root URL is accessed.\r\n\r\n## index.html\r\nThis file contains the HTML for the user interface. It includes the necessary Blockly and socket.io JavaScript files, as well as buttons for generating code, generating JSON, and loading saved code.\r\n\r\n## index.js\r\nThis file uses the Blockly.inject method to create the Blockly workspace, and sets up event listeners for the buttons in the user interface. The generated code is emitted through the socket connection to the server.\r\n\r\n## Usage\r\nTo run this code, you will need to have Node.js and npm installed. Clone the repository and navigate to the directory in the terminal, then run the following commands:\r\n\r\nnode main.js\r\n```\r\nThe user interface can be accessed at `http://localhost:3000`.\\\r\n```\r\n\r\n![](sc.png)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeyunjai%2Fblockly-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleeyunjai%2Fblockly-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeyunjai%2Fblockly-sample/lists"}