{"id":20596042,"url":"https://github.com/davidfig/yy-menu","last_synced_at":"2026-04-11T22:31:41.939Z","repository":{"id":57404917,"uuid":"124338788","full_name":"davidfig/yy-menu","owner":"davidfig","description":"A menu system for web apps inspired by Electron","archived":false,"fork":false,"pushed_at":"2018-05-19T03:22:26.000Z","size":5080,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T20:38:40.968Z","etag":null,"topics":["accelerator","menu","traditional","webapps","windows"],"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/davidfig.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":"2018-03-08T04:54:46.000Z","updated_at":"2019-03-23T15:10:34.000Z","dependencies_parsed_at":"2022-09-03T16:21:33.527Z","dependency_job_id":null,"html_url":"https://github.com/davidfig/yy-menu","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/davidfig%2Fyy-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fyy-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fyy-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Fyy-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfig","download_url":"https://codeload.github.com/davidfig/yy-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231436,"owners_count":20093636,"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":["accelerator","menu","traditional","webapps","windows"],"created_at":"2024-11-16T08:14:52.875Z","updated_at":"2026-04-11T22:31:36.914Z","avatar_url":"https://github.com/davidfig.png","language":"JavaScript","readme":"# yy-menu\nA traditional menu system for web apps inspired by Electron. Also includes an implementation of Accelerators to allow keyboard access to the menu (and global keyboard access across the app).\n\n## rationalization\n\nThis came together because I wanted to cross-build and release electron apps as web-apps. I needed a replacement for Electron.Menu, Electron.MenuItem, and Electron.Accelerators. \n\n## installation\n\n    npm i yy-menu\n\n## simple example\n```js\nvar Menu = require('yy-menu');\nvar MenuItem = Menu.MenuItem;\n\nvar menu = new Menu();\nmenu.append(new MenuItem({ label: '\u0026Test', accelerator: 'ctrl+b', click: clickCallback }));\n\nvar submenu = new Menu();\nsubmenu.append(new MenuItem({ label: 'Check\u0026box', type: 'checkbox', checked: true }));\n\nmenu.append(new MenuItem({ label: 'Sub\u0026menu', submenu: submenu }));\n\n// set menu as the application (i.e., top level) menu\nMenu.setApplicationMenu(menu);\n\n// register a keyboard shortcut unrelated to menu\nMenu.GlobalAccelerator.register('ctrl-a', pressA);\n\nfunction clickCallback() { console.log('You clicked me!'); }\nfunction pressA() { console.log('you pressed A'); }\n```\n\n## live demo\n\n[https://davidfig.github.io/yy-menu](https://davidfig.github.io/yy-menu/)\n\n## API\n[https://davidfig.github.io/yy-menu/jsdoc](https://davidfig.github.io/yy-menu/jsdoc)\n\n## License  \nMIT License  \n(c) 2018 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fyy-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfig%2Fyy-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Fyy-menu/lists"}