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

@unlimiting/unlimitgen

v0.1.3

Published

Unified CLI for image/video generation via Gemini/OpenAI/Grok

Downloads

398

Readme

ugen

Gemini / OpenAI / Grok(xAI) 모델로 이미지/동영상을 생성하는 CLI입니다.

  • 이미지
    • Gemini: gemini-3-pro-image-preview, gemini-2.5-flash-image-preview, imagen-4.0-generate-001, imagen-4.0-ultra-generate-001, imagen-4.0-fast-generate-001
    • OpenAI: gpt-image-1.5, gpt-image-1, gpt-image-1-mini
    • Grok: grok-imagine-image, grok-imagine-image-pro
  • 동영상
    • Gemini: veo-3.1-generate-preview, veo-3.1-fast-generate-preview
    • OpenAI: sora-2, sora-2-pro
    • Grok: grok-imagine-video

참고: xAI(Grok)는 공식 문서의 OpenAI 호환 SDK 경로를 사용합니다.

설치

npm install
npm run build
npm link

그 뒤 ugen 명령을 사용할 수 있습니다.

인증(비밀번호 입력 + 저장)

토큰을 저장하려면 아래 명령을 사용하세요.

ugen auth --provider gemini
ugen auth --provider openai
ugen auth --provider grok

토큰 저장 후에는 생성 명령에서 자동으로 읽습니다. 우선순위는 환경변수 > 저장 토큰 > 즉시 비밀번호 입력 입니다.

  • Gemini: GEMINI_API_KEY 또는 GOOGLE_API_KEY
  • OpenAI: OPENAI_API_KEY
  • Grok(xAI): XAI_API_KEY

핵심 사용법

모델 목록과 모델별 옵션 키 보기:

ugen models
ugen models --provider gemini --modality video

이미지 생성(입력 순서 보장):

ugen generate image \
  --provider openai \
  --model gpt-image-1.5 \
  --part text:"고양이 우주비행사" text:"필름 카메라 스타일" \
  --option size=1024x1024 quality=high

이미지 + 텍스트 혼합 입력(여러 개, 순서 보장):

ugen generate image \
  --provider gemini \
  --model gemini-2.5-flash-image-preview \
  --part text:"첫 이미지의 구도를 유지" image:./ref1.png text:"두 번째 이미지 색감을 반영" image:./ref2.jpg

동영상 생성:

ugen generate video \
  --provider openai \
  --model sora-2 \
  --part text:"네온 도시를 달리는 고양이" image:./first-frame.png \
  --option seconds=8 size=1280x720

고급 옵션(JSON) 병합:

ugen generate video \
  --provider gemini \
  --model veo-3.1-generate-preview \
  --part text:"바닷가 일출 타임랩스" \
  --options-json '{"numberOfVideos":1,"durationSeconds":8,"aspectRatio":"16:9"}'

옵션 구조

  • --part <type:value...>
    • 반복 가능
    • text:..., image:/path/to/file 지원
    • 입력 순서는 그대로 모델 요청에 반영
  • --option <key=value...>
    • 반복 가능
    • 숫자/불리언/null 자동 파싱
  • --options-json <json>
    • --option 위에 merge
  • 비디오 전용
    • --poll-interval-ms (기본 5000)
    • --timeout-ms (기본 900000)

구현 메모

  • Gemini SDK: @google/genai
  • OpenAI SDK: openai
  • xAI(Grok): OpenAI 호환 SDK(base URL https://api.x.ai/v1)
  • 출력물: 기본 ./outputs

npm 배포(Trusted Publish)

  • 워크플로우: .github/workflows/publish.yml

Release(Published) 생성 시 OIDC 기반 trusted publish로 배포됩니다.

ugen 스킬 문서

  • 경로: skills/ugen/SKILL.md
  • 설치/인증/사용 흐름/트러블슈팅을 사용자 관점에서 정리한 가이드입니다.

옵션 정보 출처(공식 문서)

  • Google GenAI SDK (generateImages, generateVideos, generateContent): https://www.npmjs.com/package/@google/genai
  • OpenAI TypeScript SDK (images.generate/edit, videos.create/retrieve/downloadContent): https://github.com/openai/openai-node
  • OpenAI Sora 모델/비디오 가이드: https://platform.openai.com/docs/models/sora-2
  • xAI API docs (OpenAI 호환 사용): https://docs.x.ai/docs/overview