
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
pico-engine-browser
Advanced tools
An implementation of the pico-engine targeting web browsers
This project bundles pico-engine into a single .js file that can be run inside a web browser.
src/index.js
is the main entry point.
To build it
npm run build
The output is dist/pico-engine.js
and dist/pico-engine.min.js
<script src="pico-engine.min.js"></script>
<script>
async function main(){
// start it up
var pe = await PicoEngine();
window.pe = pe;// make it global so we can use it in the devtools console
console.log('started');
// now you can use pe (instance of pico-engine-core)
// i.e.
var res = await pe.registerRulesetURL('https://raw.githubusercontent.com/Picolab/pico-engine/master/test-rulesets/hello-world.krl');
console.log(res);
var rootECI = await pe.getRootECI()
var myself = await pe.runQuery({
eci: rootECI,
rid: 'io.picolabs.wrangler',
name: 'myself'
})
console.log('myself:', myself);
}
main().catch(console.error)
</script>
If you want to run more than one instance of pico-engine inside the same browser, you need to provide a browser-unique name.
For example:
var pe1 = await PicoEngine('engine1');
var pe2 = await PicoEngine('engine2');
MIT
FAQs
An implementation of the pico-engine targeting web browsers
We found that pico-engine-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.