Loading...
Loading...
Comprehensive Buntralino integration for cross-platform desktop apps using Bun main process and Neutralino windows. Use for Buntralino architecture, CLI usage, Bun API window management, client API calls, method registration, event broadcasting, troubleshooting, and Neutralino-focused UI integration with JavaScript and TypeScript references.
npx skill4agent add jagritgumber/bunskills buntralinoimport * as buntralino from 'buntralino';
buntralino.registerMethod('sayHello', async (payload) => {
const name = payload?.name ?? 'world';
return { message: `Hello, ${name}!` };
});
await buntralino.create('/', {
name: 'main',
title: 'My App',
width: 800,
height: 600,
center: true
});import * as buntralino from 'buntralino-client';
await buntralino.ready;
const response = await buntralino.run('sayHello', { name: 'Ada' });
displayMessage(response.message);import * as buntralino from 'buntralino';
buntralino.registerMethod('processData', async (payload) => {
try {
const result = await heavyProcessing(payload.input);
return { ok: true, result };
} catch (error) {
return { ok: false, error: String(error) };
}
});import * as buntralino from 'buntralino-client';
await buntralino.ready;
const response = await buntralino.run('processData', { input: 'data' });
if (response.ok) {
updateUI(response.result);
} else {
showError(response.error);
}import * as buntralino from 'buntralino';
buntralino.broadcast('dataUpdated', { timestamp: Date.now() });Neutralino.events.on('dataUpdated', (event) => {
updateUI(event.detail);
});import * as buntralino from 'buntralino';
await buntralino.create('/settings', { name: 'settings', width: 640, height: 480 });
await buntralino.sendEvent('settings', 'settingsLoaded', { ready: true });