
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
@kittycad/web-view
Advanced tools
Various helpers to get a Zoo KittyCAD WebRTC stream onto a web page!
Various helpers to get a Zoo KittyCAD WebRTC stream onto a web page!
path -> strings.npm install @kittycad/web-view @kittycad/lib
You will need to copy node_modules/@kittycad/kcl-wasm-lib/kcl_wasm_lib_bg.wasm
to the root of a directory that will be served by your web server.
make serve
make build
import * as zoo from '@kittycad/lib'
import { ZooWebView } from '@kittycad/web-view'
document.addEventListener('DOMContentLoaded', () => {
const token = 'api-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
const zooClient = new zoo.Client({
token,
baseUrl: 'wss://api.zoo.dev',
})
const zooWebView = new ZooWebView({
zooClient,
size: {
width: 256,
height: 256,
},
})
document.body.appendChild(zooWebView.el)
zooWebView.addEventListener('ready', (ev: Event) => {
const executor = ev.target.rtc.executor()
const project = new Map<string, string>()
project.set('main.kcl', `
import "ok.kcl"
sketch001 = startSketchOn(XY)
profile001 = startProfile(sketch001, at = [-3.5, -2.23])
|> line(end = [4.53, 5.73])
|> line(end = [5.18, -3.74])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(profile001, length = 5 * 1)
|> appearance(color="#0000FF")
`)
project.set('ok.kcl', `
sketch001 = startSketchOn(XY)
profile001 = startProfile(sketch001, at = [-1.5, -2.23])
|> line(end = [4.53, 5.73])
|> line(end = [5.18, -3.74])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(profile001, length = 5 * 1)
|> appearance(color="#FF0000")
`)
void executor.submit(project).then(() => {
console.log('All done running!')
})
})
})
By default, starting one web-view stops any other running web-views. Set
allowMultiple: true when a project needs any number running at once.

FAQs
Various helpers to get a Zoo KittyCAD WebRTC stream onto a web page!
The npm package @kittycad/web-view receives a total of 678 weekly downloads. As such, @kittycad/web-view popularity was classified as not popular.
We found that @kittycad/web-view demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.