npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

graphics-api-remotion

v1.0.9

Published

Context-aware graphics API for Remotion - fetch illustrations, icons, and doodles from 5 free sources. No API keys required.

Readme

graphics-api-remotion

Context-aware graphics API for Remotion - Fetch illustrations, icons, and doodles from 5 free sources. Zero API keys required.

npm version License: MIT

✨ Features

  • 🎯 Context-aware - Describe your scene, get matching graphics
  • 🔑 No API keys - All 5 providers work out of the box
  • 🎬 Remotion-ready - Prefetch utilities for SSR
  • 📦 ESM native - Full TypeScript support
  • 🎨 SVG focus - Crisp graphics at any resolution

📦 Installation

npm install graphics-api-remotion

🚀 Quick Start

Context-Aware Query

import { query, getGraphicsForContext } from 'graphics-api-remotion';

// Describe your scene → get matching graphics
const graphics = await query("developer coding startup success");
// Returns icons, illustrations, and doodles matching your context

// Get categorized results
const scene = await getGraphicsForContext("team celebrating launch");
// → { icons: [...], illustrations: [...], doodles: [...] }

Remotion Integration

Important: Remotion can't use external URLs during render. Use prefetchGraphics():

import { Composition } from 'remotion';
import { query, prefetchGraphics } from 'graphics-api-remotion';

export const MyVideo = () => (
  <Composition
    id="Scene"
    component={SceneComponent}
    calculateMetadata={async ({ props }) => {
      // 1. Query graphics by context
      const graphics = await query(props.storyline);
      // 2. Prefetch to data URIs (required for Remotion render)
      const prefetched = await prefetchGraphics(graphics);
      return { props: { ...props, graphics: prefetched } };
    }}
  />
);

🎨 Providers (5 Sources, No Auth)

| Provider | Content | Count | Features | |----------|---------|-------|----------| | Phosphor | Icons | 1,200+ | 6 weights (thin→fill) | | Lucide | Icons | 1,500+ | Consistent stroke style | | Iconoodle | Icons, Doodles, Illustrations | 2,000+ | 19 themed packs | | Storyset | Illustrations | 2,000+ | Professional SVGs | | Doodle Ipsum | Doodles | Unlimited | 4 styles |

📚 Direct Provider Access

For specific needs, access providers directly:

import { phosphor, lucide, iconoodle, storyset, doodleIpsum } from 'graphics-api-remotion';

// Phosphor icons (6 weights)
const icon = await phosphor.get({ name: 'check', weight: 'bold' });
const icons = await phosphor.search(['arrow', 'user', 'star']);

// Lucide icons
const settings = await lucide.get({ name: 'settings' });

// Iconoodle (19 packs - icons, doodles, AND illustrations)
await iconoodle.search(['payment'], { pack: 'doodles' });
await iconoodle.search(['cat'], { pack: 'doodles-cute-animals' });
await iconoodle.search(['robot'], { pack: 'doodles-ai-icon-doodles' });
await iconoodle.search(['pizza'], { pack: 'doodles-fast-food-doodle-art' });
console.log(iconoodle.packs); // List all 19 packs

// Storyset (professional illustrations)
const illustrations = await storyset.search(['technology', 'developer']);

// Doodle Ipsum (4 styles: flat, hand-drawn, outlined, abstract)
const doodle = doodleIpsum.getRandom({ style: 'flat', width: 200, height: 200 });

📍 Context Keyword Reference

| Context | Returns | |---------|---------| | "send payment" | credit-card, wallet, arrow-right | | "user login" | log-in, user, key, lock | | "success celebrate" | trophy, check, star | | "developer coding" | code, terminal + tech illustrations | | "team meeting" | users + business illustrations | | "error warning" | alert-triangle, x-circle |

🔧 Prefetch Functions

| Function | Purpose | |----------|---------| | prefetchGraphics(graphics[]) | Batch convert to data URIs | | prefetchGraphic(graphic) | Single convert to data URI | | svgToDataUri(svg) | Convert SVG string to data URI | | getPrefetchedUrl(graphic) | Get URL (uses embedded SVG if available) |

🎭 Iconoodle Packs

| Pack | Content | |------|---------| | doodles | Main (2,000+ items) | | doodles-cute-animals | Animals | | doodles-fast-food-doodle-art | Food | | doodles-hand-drawn-lifestyle-doodle | Lifestyle | | doodles-internet-network-doodles | Tech/Network | | doodles-ai-icon-doodles | AI/Robot | | doodles-educational-doodles | Education | | christmas-illustration | Holiday | | brutalist-doodles | Bold/Minimal | | 3d-like-shape-doodles | 3D shapes | | candy-icons | Colorful | | cars-icons | Vehicles |

🧪 Testing

npm run test:endpoints    # Provider connectivity
npm run test:remotion     # Remotion integration
npm run test:prefetch     # Prefetch verification

📄 License

MIT © siva-sub


Links: npmGitHub