
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@scidian/osui
Advanced tools
The Onsight UI Library. A lightweight, customizable, modular UI library based on native HTML5 components.
Also includes an easy to use property inspector similar to dat.gui or lil-gui.
osui.module.js, import from file...// Import property inspector only
import { Gooey } from 'osui.module.js';
// Or, import entire library
import * as OSUI from 'osui.module.js';
npm install @scidian/osui
import * as OSUI from '@scidian/osui';
import * as OSUI from 'https://unpkg.com/@scidian/osui/build/osui.module.js';
const params = {
myBoolean: true,
myFunction: () => console.log('hello world'),
myListInt: 0,
myListString: 'b',
myNumber: 75.54,
myNumber2: 50,
myString: 'California',
myArray: [ 1, 0, 0 ],
myColorString: '#ffffff',
myColorInt: 0xffffff,
myColorObject: { r: 1, g: 1, b: 1 },
myColorArray: [ 1, 1, 1 ],
};
const myList = [ 'a', 'b', 'c', 'd', 'e' ];
const gui = new OSUI.Gooey('Title');
const folder = gui.addFolder('Folder Name');
folder.add(params, 'myBoolean'); // checkbox
folder.add(params, 'myFunction'); // button
folder.add(params, 'myListInt', myList); // list by number
folder.add(params, 'myListString', myList); // list by value
folder.add(params, 'myNumber', min, max, step, precision); // slider
folder.add(params, 'myNumber2'); // if no min / max, number only
folder.add(params, 'myString'); // text box
folder.add(params, 'myVector'); // any length array of numbers
folder.addColor(params, 'myColor______'); // string / int / object / array
folder.add(params, 'myNumber').name('Width').min(0).max(100).step(5).precision(1);
// Fires constantly when slider is being changed
folder.add(params, 'myNumber').onChange(() => width = params.myNumber);
// Fire when slider is done being changed
folder.add(params, 'myNumber').onFinishChange(() => width = params.myNumber);
controller if gui needs to be updated externally.params = { myNumber: 5.0 };
const gui = new OSUI.Gooey();
const folder = gui.addFolder('Folder Name');
const controller = folder.add(params, 'myNumber');
// ...somwhere later, params changes...
params.myNumber += 2.0;
// ...tells element to update itself from new value
controller.updateDisplay();
gui.color('#bb0000'); // Sets gui color
gui.opacity(0.5); // Set background opacity
gui.scale(1.0); // Scale multiplier
gui.width(200); // Set panel width
Osui is released under the terms of the MIT license, so it is free to use in your free or commercial projects.
Copyright (c) 2022-2023 Stephens Nunnally and Scidian Studios
FAQs
Lightweight JavaScript UI library.
We found that @scidian/osui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.