Communitygithub.com

nanoodlecom/nanoodle-js

Run nanoodle workflows from JavaScript — zero-dependency executor for saved noodle-graph.json files

nanoodle-js 是什么?

nanoodle-js is a Claude Code agent skill that run nanoodle workflows from JavaScript — zero-dependency executor for saved noodle-graph.json files.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add nanoodlecom/nanoodle-js

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Poster generator

Runs the bundled nanoodle workflow workflows/poster.noodle-graph.json against the NanoGPT API: a text input (Idea) feeds an LLM that writes a vivid image prompt, which feeds an image model that renders the poster (Poster). Requires Node.js >= 20 and the nanoodle npm package (npx nanoodle fetches it).

API key

The run needs a NanoGPT API key. Use whichever is available:

  • NANOGPT_API_KEY already set in the environment — prefer this; no extra flags.
  • A .env file containing NANOGPT_API_KEY=... — pass --env-file <path> only when the key is not already in the environment. (With this CLI, --env-file overrides ambient NANOGPT_API_KEY.)

Never print the key.

Run

From this skill's directory (or prefix paths if running from elsewhere):

npx nanoodle run workflows/poster.noodle-graph.json \
  --input "Idea=<the user's poster idea, e.g. a cozy ramen shop on a rainy night>" \
  --out ./poster-out

Add --env-file .env only when the key is not already exported. The CLI always prints a machine-readable JSON summary (paths, cost, balance) to stdout; add --json to silence the stderr progress lines.

Optional style override (workflow also exposes this input):

--input "System prompt=<custom image-prompt writer instructions>"

Inspect the interface anytime with:

npx nanoodle inspect workflows/poster.noodle-graph.json

Outputs

  • Media is saved under --out (default ./noodle-out) as Poster.<ext> where <ext> follows the image MIME (often jpg or png). Use the outputs.Poster path from the JSON summary on stdout — do not hard-code .png.
  • The CLI also prints progress, saved-file lines, and total cost (with remaining balance when the API reports it) to stderr.

Cost

Each run costs about $0.04 in NanoGPT credit (the image-generation step dominates; the LLM prompt-writing step is a fraction of a cent).

相关技能