
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
a library for quickly creating web components
zero dependencies - just javascript
Simply just... because. I like to create fun and helpful things - plus there seemed like a slight gap for a web-based, no-build, no-dependencies, no-nothing, prototyping library (at least for me); So here we are.
Probably not... Performance wasn't something I was overly aiming for - it's usable, and works well for smaller prototypes and apps but I wouldn't go off making a full-scale app with it... But then maybe?
yarn add smol-lib
or https://cdn.jsdelivr.net/npm/smol-lib@latest
or copy /lib/index.js into your project.
// via - package import
import { createComponent } from 'smol-lib';
createComponent('my-component', () => {
return ({ render }) => render`
<p class="my-component">
Hello from my component!
</p>
`;
}, `
@keyframes rainbow {
0% {
color: hsl(0, 100%, 50%);
}
33% {
color: hsl(100, 100%, 50%);
}
77% {
color: hsl(300, 100%, 50%);
}
100% {
color: hsl(360, 100%, 50%);
}
}
.my-component {
animation: rainbow 1s infinite;
}
`);
}
// via - CDN (https://cdn.jsdelivr.net/npm/smol-lib@latest)
<script type="module" src="https://cdn.jsdelivr.net/npm/smol-lib@latest" onload="onload()"></script>
<script>
function onload() {
smol.createComponent('my-component', () => {
return ({ render }) => render`
<p class="my-component">
Hello from my component!
</p>
`;
}, `
@keyframes rainbow {
0% {
color: hsl(0, 100%, 50%);
}
33% {
color: hsl(100, 100%, 50%);
}
77% {
color: hsl(300, 100%, 50%);
}
100% {
color: hsl(360, 100%, 50%);
}
}
.my-component {
animation: rainbow 1s infinite;
}
`);
}
</script>
No docs as of yet, which obviously is not helpful.
However I am working on an example site/app that will have the docs on it... it's in development (no ETA) but you can check it out at
smol-library.web.app
(source code in /example)
FAQs
a library for quickly creating web components
The npm package smol-lib receives a total of 0 weekly downloads. As such, smol-lib popularity was classified as not popular.
We found that smol-lib 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.