{"id":23380452,"url":"https://github.com/buntralino/buntralino","last_synced_at":"2025-04-10T22:44:05.599Z","repository":{"id":267636843,"uuid":"901883006","full_name":"buntralino/buntralino","owner":"buntralino","description":"Bun library for Buntralino. Buntralino unites Bun and Neutralino.js to make a simpler, lighter alternative to Electron and NW.js. Use Neutralino.js API at client and send harder tasks to Bun while keeping your development process easy.","archived":false,"fork":false,"pushed_at":"2024-12-23T15:42:54.000Z","size":46,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T19:39:49.168Z","etag":null,"topics":["bun","cross-platform","cross-platform-development","neutralino","xpda"],"latest_commit_sha":null,"homepage":"https://buntralino.github.io/","language":"TypeScript","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/buntralino.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-12-11T13:47:54.000Z","updated_at":"2025-02-13T11:04:42.000Z","dependencies_parsed_at":"2024-12-12T09:39:59.774Z","dependency_job_id":null,"html_url":"https://github.com/buntralino/buntralino","commit_stats":null,"previous_names":["cosmomyzrailgorynych/buntralino","buntralino/buntralino"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntralino%2Fbuntralino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntralino%2Fbuntralino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntralino%2Fbuntralino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntralino%2Fbuntralino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buntralino","download_url":"https://codeload.github.com/buntralino/buntralino/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312190,"owners_count":21082637,"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":["bun","cross-platform","cross-platform-development","neutralino","xpda"],"created_at":"2024-12-21T20:15:56.671Z","updated_at":"2025-04-10T22:44:05.590Z","avatar_url":"https://github.com/buntralino.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Buntralino logo](https://buntralino.github.io/Buntralino.png)\n\n# Buntralino library for the Bun side\n\nBuntralino unites Bun and Neutralino.js to make a simpler, lighter alternative to Electron and NW.js. Use Neutralino.js API at client and send harder tasks to Bun while keeping your development process easy.\n\nBuntralino is a hybrid app development framework that lets you use web technologies (HTML, CSS, JavaScript, TypeScript) to make desktop apps. Buntralino applications work by creating a Bun application that launches and manages Neutralino.js windows. Neutralino.js windows can exchange information with Bun and each other in a client-server model through websockets, with you using a nice promise-based API. Bun is a faster alternative to Node.js or Deno, while Neutralino.js uses native OS' browser and augments it with native functions.\n\n## Usage\n\n```sh\nbun install --save buntralino\n```\n```typescript\nimport * as buntralino from 'buntralino';\n\n/**\n * Function map that allows running named functions with `buntralino.run` on the client (Neutralino) side.\n */\nconst functionMap = {\n    sayHello: async (payload: {\n        message: string\n    }) =\u003e {\n        await Bun.sleep(1000);\n        return `Bun says \"${payload.message}\"!`;\n    }\n};\n\nbuntralino.registerMethodMap(functionMap);\n// or buntralino.registerMethod('sayHello', functionMap.sayHello);\n\nawait buntralino.create('/', {\n    // Name windows to easily manipulate them and distinguish them in events\n    name: 'main'\n    // Any options for Neutralino.window.create can go here\n});\n\n// Exit the app completely when the main window is closed without the `shutdown` command.\nbuntralino.events.on('close', (windowName: string) =\u003e {\n    if (windowName === 'main') {\n        // eslint-disable-next-line no-process-exit\n        process.exit();\n    }\n});\n```\n\nDocs on all the functions coming SOON! But the sources are readable and straightforward, you can read them in `window.ts`.\n\n## Development\n\n```sh\ngit clone https://github.com/CosmoMyzrailGorynych/buntralino.git\ncd ./buntralino\nbun install\n# And you're ready to code!\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuntralino%2Fbuntralino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuntralino%2Fbuntralino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuntralino%2Fbuntralino/lists"}