
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
@armniko/assets
Advanced tools
A tiny, zero-dependency JavaScript/TypeScript library for fetching and managing assets with in-memory caching and automatic font registration for canvas and dynamic text rendering.
A tiny, zero-dependency JavaScript/TypeScript library for fetching and managing assets with in-memory caching and automatic font registration for canvas and dynamic text rendering.
Supported formats:
woff, woff2, ttf, otf (downloaded fonts are automatically registered in the browser, making them
immediately available for canvas and dynamic text rendering)png, webp, jpg, jpeg, svg, gifwebm, mp3, ogg, m4a, aac, wavjsonnpm install @armniko/assets
import {Assets, AssetsBatch, type Progress} from '@armniko/assets';
const assetsBatch: AssetsBatch = new AssetsBatch({
assets: [
'url/to/asset-1.png', // access loaded asset: assets.image('asset-1')
{asset2: 'url/to/asset-2.jpg'}, // access loaded asset: assets.image('asset2')
],
onLoad: (name: string, progress: Progress): void => {
console.log('Loaded: ' + name, progress.percents());
},
onComplete: (): void => {
console.log('Done!');
},
onError: (url: string, error: Error): void => {
console.log(url, error);
}
});
const assets: Assets = new Assets();
assets.fetch(assetsBatch);
| v1.4.1 | Update readme. |
| v1.4.0 |
Added JSON loader. Added asset() method to get assets without knowing type. |
| v1.3.0 |
Added audio loader. Added webp format. Migrated from webpack to vite. |
| v1.2.0 |
Option to specify custom asset name. Added font loader. |
| v1.1.0 | Precompile UMD and ESM. |
| v1.0.0 | Initial version. |
FAQs
A tiny, zero-dependency JavaScript/TypeScript library for fetching and managing assets with in-memory caching and automatic font registration for canvas and dynamic text rendering.
The npm package @armniko/assets receives a total of 53 weekly downloads. As such, @armniko/assets popularity was classified as not popular.
We found that @armniko/assets demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.