| name | ideogram-local-dev-loop |
| description | Configure Ideogram local development with mock responses and testing.
Use when setting up a development environment, configuring test workflows,
or establishing a fast iteration cycle with Ideogram.
Trigger with phrases like "ideogram dev setup", "ideogram local development",
"ideogram dev environment", "develop with ideogram", "ideogram testing".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(npx:*), Grep |
| version | 1.10.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","ideogram","testing","workflow","development"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Ideogram Local Dev Loop
Overview
Set up a fast local development workflow for Ideogram integrations. Includes a typed client wrapper, mock server for offline development (avoids burning credits), and vitest integration for automated testing.
Prerequisites
- Completed
ideogram-install-auth setup
- Node.js 18+ with npm/pnpm
IDEOGRAM_API_KEY environment variable set
Instructions
Step 1: Create Project Structure
my-ideogram-project/
โโโ src/
โ โโโ ideogram/
โ โ โโโ client.ts # Typed Ideogram client wrapper
โ โ โโโ types.ts # Request/response type definitions
โ โ โโโ mock-server.ts # Local mock for offline dev
โ โโโ index.ts
โโโ tests/
โ โโโ ideogram.test.ts
โโโ .env.local # Local secrets (git-ignored)
โโโ .env.example # Template for team
โโโ tsconfig.json
โโโ package.json
Step 2: Install Dependencies
set -euo pipefail
npm install dotenv
npm install -D typescript tsx vitest @types/node
Step 3: Type Definitions
export type StyleType = "AUTO" | "GENERAL" | "REALISTIC" | "DESIGN" | "RENDER_3D" | "ANIME";
export type AspectRatio = "ASPECT_1_1" | "ASPECT_16_9" | "ASPECT_9_16" | "ASPECT_3_2" | "ASPECT_2_3"
| "ASPECT_4_3" | "ASPECT_3_4" | "ASPECT_10_16" | "ASPECT_16_10" | "ASPECT_1_3" | "ASPECT_3_1";
export type Model = "V_1" | | | | | ;
= | | ;
{
: ;
?: ;
?: ;
?: ;
?: ;
?: ;
?: ;
?: ;
}
{
: ;
: ;
: ;
: ;
: ;
: ;
}
{
: ;
: [];
}