
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Lilkit is kit for creating portable Javascript components/apps that can be used anywhere.
Lilkit is kit for creating portable Javascript components that can be used anywhere.
Goal is to render only once and all additional updates are carried on existing HTML structure with observables. Every element is updating it own content or children and no virtual dom is required.
Simple example what's possible:
import {div, ul, li, button} from 'https://cdn.skypack.dev/lilkit/elements';
const MyLilDiv = (...children) => div({ className: "lil" }, children);
const array = [1,2,3];
const view = div({},
div({ textContent: "Hello from nested div!" }),
MyLilDiv(
ul({},
...array.map(i => li({ textContent: i }))
)
),
button({ textContent: "click me!", onclick: () => alert("Hello!") })
);
// view is valid HTMLElement
document.getElementById("deployHere").appendChild(view);
More complicated example with reactivity:
import { div, ul, li, input, button } from 'https://cdn.skypack.dev/lilkit/elements';
import { ObservableVariable, LilPlainComponent } from 'https://cdn.skypack.dev/lilkit/core';
class MyLilComponent extends LilPlainComponent {
constructor(props) {
super();
this.title = new ObservableVariable("");
this.readingList = new ObservableVariable([ { text: 'HN' } ]);
}
myNextRead(readItem) {
this.readingList.val = [...this.readingList.val, { text: readItem }];
}
render() {
const view = div({},
input({ onchange: (e) => { this.title.val = e.target.value; } }),
button({
textContent: "Add",
onclick: () => { this.myNextRead(this.title.val) }
}),
ul({}, this.readingList.map(e => li({ textContent: e.text })))
);
return view;
}
}
// Class component can be used in others LilElements.
const app = div({},
new MyLilComponent({ somePropHere: "value" })
// will automatically trigger `render()` method
);
document.getElementById("deployHere").appendChild(app);
npm i lilkit
FAQs
Lilkit is kit for creating portable Javascript components/apps that can be used anywhere.
We found that lilkit 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.