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

somanylemons-sdk

v0.1.4

Published

TypeScript SDK for the SoManyLemons Public API — branded video reels, LinkedIn content, image quotes.

Readme

SoManyLemons TypeScript SDK

Typed TypeScript client for the SoManyLemons Public API. Submit recordings, render branded reels and image quotes, manage brands and drafts — from any Node.js, Deno, or Bun app.

Zero runtime dependencies — uses native fetch (Node 18+).

Install

npm install somanylemons-sdk

Quickstart

import { SMLClient } from "somanylemons-sdk";

const client = new SMLClient({ apiKey: "sml_your_key_here" });

// List recordings
const jobs = await client.jobs.list({ limit: 5 });
for (const job of jobs) {
  console.log(job.id, job.title, job.clip_count, "clips");
}

// Submit a video and wait for rendered clips
const job = await client.reels.createAndWait({
  url: "https://example.com/recording.mp4",
  brand_profile_id: 1,
  caption_style: "LEMON",
});
for (const clip of job.clips ?? []) {
  console.log(clip.url);
}

// Render an image quote with a pinned template
const image = await client.imageQuotes.create({
  quote_text: "Labor productivity is the story of the next five years.",
  brand_profile_id: 1,
  template_id: 42,
});
console.log(image.image_url);

Configuration

| Option | Env var | Default | Notes | |---|---|---|---| | apiKey | SML_API_KEY | — (required) | Your sml_xxx key | | baseUrl | SML_API_URL | https://api.somanylemons.com | Override for QAS / local | | timeout | — | 30000 | Milliseconds per request | | maxRetries | — | 3 | Retries on 5xx and 429 | | allowInsecureHttp | — | false | Allow http:// (for localhost) | | allowForeignHost | — | false | Allow non-somanylemons.com hosts |

Resources

| Attribute | Endpoints | |---|---| | client.jobs | List, get, poll recordings | | client.reels | Create reels (async or blocking via createAndWait) | | client.transcribe | Transcribe URL (async or blocking) | | client.imageQuotes | Render branded quote images | | client.brands | Manage brand profiles | | client.drafts | Content queue | | client.templates | List available templates | | client.content | Generate / score / rewrite posts, extract quotes, usage |

Error handling

import { SMLClient, QuotaError, RateLimitError, JobFailedError } from "somanylemons-sdk";

const client = new SMLClient({ apiKey: "sml_xxx" });

try {
  const job = await client.reels.createAndWait({ url: "..." });
} catch (err) {
  if (err instanceof QuotaError) {
    console.log(`Over quota: ${err.rendersUsed}/${err.renderLimit}`);
  } else if (err instanceof RateLimitError) {
    console.log(`Rate limited, retry after ${err.retryAfter}s`);
  } else if (err instanceof JobFailedError) {
    console.log(`Render failed: ${err.message}`);
  }
}

Security

  • Keys never appear in toString() or logs. The transport masks the key.
  • HTTPS enforced by default. http:// URLs are rejected unless allowInsecureHttp: true.
  • Foreign hosts rejected by default. Only *.somanylemons.com and localhost are accepted.
  • Sensible retries. 5xx and 429 retry with backoff; 4xx fails fast.

License

MIT