{"_id":"framethrower-ai","_rev":"7-7337aece35072f3d480fd12a9212cc49","name":"framethrower-ai","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"framethrower-ai","version":"1.0.0","keywords":["framethrower","cinematography","film","frames","search","visual-reference","moodboard","ai","api"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","_id":"framethrower-ai@1.0.0","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"homepage":"https://framethrower.ai/developers","bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"dist":{"shasum":"5587fb1ceff55606cdbc16013c97a49e8f002082","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.0.0.tgz","fileCount":5,"integrity":"sha512-XUj6hLYoiiYoYmnZ5e7kt/bfQWelZTtrJ4wAY/JnLkoXs3ROV2j/R0Rcm9jYksALLQ0T1o0+Kmwd39/alFqJHA==","signatures":[{"sig":"MEYCIQCHwVVuDQ1IImrsfKX9HqPOqhWufKZifizbUMGJx1t8kQIhALEd18zo3Nwo8CfMuTiaDn3StXSWvLwUc1p50N0WyWVJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18505},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"repository":{"url":"git+https://github.com/framethrower-ai/framethrower-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"FrameThrower API client — search film frames by concept, color, mood, or composition","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/framethrower-ai_1.0.0_1784922752715_0.1770478751432114","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"framethrower-ai","version":"1.0.1","keywords":["framethrower","cinematography","film","frames","search","visual-reference","moodboard","ai","api"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","_id":"framethrower-ai@1.0.1","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"homepage":"https://framethrower.ai/developers","bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"dist":{"shasum":"8b5ff31861bdeb230af24c9f955d5eb506eb2095","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.0.1.tgz","fileCount":6,"integrity":"sha512-h9LOeLATSCZIsyTHbqRDiUfwNgtqqFB61A3vh74Sqt9qBt/0PbCSAQ3LM1ZM02tZO7k6lXnIUhDmTeszjwpf3A==","signatures":[{"sig":"MEUCICJBXp2gDDk0QI1kP0TO7T3GDhaZqcBaK0Z7OnCXWNjBAiEAsIXln5MfYrN1K3BKK+SfciS8Z+czmhjWqmi+B8XgD2E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20457},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"repository":{"url":"git+https://github.com/framethrower-ai/framethrower-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"FrameThrower API client — search film frames by concept, color, mood, or composition","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/framethrower-ai_1.0.1_1784923658582_0.35747333826737293","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"framethrower-ai","version":"1.0.2","keywords":["framethrower","cinematography","film","frames","search","visual-reference","moodboard","ai","api"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","_id":"framethrower-ai@1.0.2","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"homepage":"https://framethrower.ai/developers","bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"dist":{"shasum":"c8b2356ea6421e744ac32dcff56f1883db027394","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.0.2.tgz","fileCount":6,"integrity":"sha512-gRRvvRvZvHO0WUUibtpgPC4lJqplY61d3zd5dcZrQPsxynfn4hktKu5WvaU+waXB5U+Jbglp7bdGOSsGhhXWsQ==","signatures":[{"sig":"MEUCIHheUGYrLYkDFPPl7V/IS32b8lcy8hI3lhW9IvcWCTmWAiEAyxw4FtuFxf9V43FrpaBYb5fvE1D2DYSS8Zlumbn+Vlc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20613},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"repository":{"url":"git+https://github.com/framethrower-ai/framethrower-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"FrameThrower API client — search film frames by concept, color, mood, or composition","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/framethrower-ai_1.0.2_1784924104873_0.567048787734654","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"framethrower-ai","version":"1.0.3","keywords":["framethrower","cinematography","film","frames","search","visual-reference","moodboard","ai","api"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","_id":"framethrower-ai@1.0.3","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"homepage":"https://framethrower.ai/developers","bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"dist":{"shasum":"4879b315895899025f4425fdbcc79bf5855247bc","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.0.3.tgz","fileCount":6,"integrity":"sha512-OH5iiW5hNUfGjou4vtMkWt2SHGYFXPn9WlZxWDNJdf7iKxrRLlZGfKw7E4xDekB2H9xu6UgZt9Td8x54OxWgUQ==","signatures":[{"sig":"MEUCIFuRKRdD64O8WMgarriBSCdiPvFC/s75F4XtLKfxcA3XAiEAyg2DW2SPc9nx46O5xo9sDAIW48A8Z53wac1Bfz+6lQU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21247},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"repository":{"url":"git+https://github.com/framethrower-ai/framethrower-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"FrameThrower API client — search film frames by concept, color, mood, or composition","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/framethrower-ai_1.0.3_1784924434935_0.6617702342712213","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"framethrower-ai","version":"1.1.0","keywords":["framethrower","cinematography","film","frames","search","visual-reference","moodboard","ai","api"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","_id":"framethrower-ai@1.1.0","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"homepage":"https://framethrower.ai/developers","bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"dist":{"shasum":"ea31cac5e85d079869529af3387530c171871d85","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.1.0.tgz","fileCount":6,"integrity":"sha512-np9+LEtljURH606LYtCChcTQqFwtxqMMVmNy69MUMnH8hiaEcXDZ7gT7vgtyZL15cytayPNEjW5VMxy6uGkkDA==","signatures":[{"sig":"MEUCIQDRCo/MxFOX8ohb7gjPfTd4wy3GYn5rtfNs6LoEAeOK4gIgTL7xKG6dh5T3AQ+QHZELyiR9wd2EtYBKmY9Zg/n9uWY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28144},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"repository":{"url":"git+https://github.com/framethrower-ai/framethrower-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"FrameThrower API client — search film frames by concept, color, mood, or composition","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/framethrower-ai_1.1.0_1784927574004_0.7330568045097658","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"framethrower-ai","version":"1.1.1","keywords":["framethrower","cinematography","film","frames","search","visual-reference","moodboard","ai","api"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","_id":"framethrower-ai@1.1.1","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"homepage":"https://framethrower.ai/developers","bugs":{"url":"https://framethrower.ai/developers"},"dist":{"shasum":"5959ad70f8d594c5e599768a3d99f87b59475a30","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.1.1.tgz","fileCount":6,"integrity":"sha512-7suJ2GkpQu8RDak4RRzLhxhsMo3sgC4ElughSFgOnTTAtiushP6y6JIFqBAPH13BQOoYE51MW7LF/HcDgRtWrQ==","signatures":[{"sig":"MEQCIDVTUElqrFBAOdWzHHX9E8p6+OGE121JuoAP77VahKdoAiB7wEzzIYCQtr+e493fv7uFKgloSnBTJtMIgp/8P817JQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28102},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"_npmVersion":"11.8.0","description":"FrameThrower API client — search film frames by concept, color, mood, or composition","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/framethrower-ai_1.1.1_1784928454647_0.6965451192174199","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"framethrower-ai","description":"Official client for the FrameThrower API — a film stills database of 5,489 films, indexed frame by frame on lighting, lens, shot size, colour and mood. Search in plain language, by image, or by colour.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"version":"1.1.2","scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepublishOnly":"npm run build"},"keywords":["framethrower","cinematography","film","movie-stills","film-frames","frames","search","visual-search","visual-reference","moodboard","lookbook","previs","storyboard","shot-list","mcp","mcp-server","ai-agents","creative-tools","api","sdk"],"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","homepage":"https://framethrower.ai/developers","bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0"},"repository":{"type":"git","url":"git+https://github.com/framethrower-ai/framethrower-sdk.git"},"engines":{"node":">=18"},"gitHead":"77a1c9208d2cd52e735d97a63afc7b13b88aab96","_id":"framethrower-ai@1.1.2","_nodeVersion":"25.5.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-8HZ7hkPisP7dPx2YE9MwzphkcFdB5+xteAqxymr26lV+C+K2QnUTHyhLmRYf0Tm/86WNj4MI1SGS/40VmM5yog==","shasum":"f82e8649a9ee988f2d78a1282a4c3a536a2d75a4","tarball":"https://registry.npmjs.org/framethrower-ai/-/framethrower-ai-1.1.2.tgz","fileCount":7,"unpackedSize":32074,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDLlRjYRwMy3Xso5OtBTgf9uwmdvtgzpCEicnSaNHoLggIhAIM+IJwHwbTfKdsr9Hcqv9RD04+F97caexn0Gb+IvY5V"}]},"_npmUser":{"name":"framethrower","email":"leo@genartrevolution.com"},"directories":{},"maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/framethrower-ai_1.1.2_1786538791219_0.5617307610454583"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-24T19:52:32.672Z","modified":"2026-08-12T12:46:31.475Z","1.0.0":"2026-07-24T19:52:32.892Z","1.0.1":"2026-07-24T20:07:38.726Z","1.0.2":"2026-07-24T20:15:05.016Z","1.0.3":"2026-07-24T20:20:35.086Z","1.1.0":"2026-07-24T21:12:54.150Z","1.1.1":"2026-07-24T21:27:34.807Z","1.1.2":"2026-08-12T12:46:31.348Z"},"bugs":{"url":"https://github.com/framethrower-ai/framethrower-sdk/issues"},"author":{"name":"FrameThrower AI, Inc."},"license":"MIT","homepage":"https://framethrower.ai/developers","keywords":["framethrower","cinematography","film","movie-stills","film-frames","frames","search","visual-search","visual-reference","moodboard","lookbook","previs","storyboard","shot-list","mcp","mcp-server","ai-agents","creative-tools","api","sdk"],"description":"Official client for the FrameThrower API — a film stills database of 5,489 films, indexed frame by frame on lighting, lens, shot size, colour and mood. Search in plain language, by image, or by colour.","maintainers":[{"name":"framethrower","email":"leo@genartrevolution.com"}],"readme":"# framethrower-ai\n\nThe official JavaScript/TypeScript client for the **FrameThrower API** — a film\nstills database of **5,489 films**, indexed frame by frame on lighting, lens\ncharacter, shot size, colour and mood.\n\nSearch in plain language, by reference image, or by colour. Every result comes\nback with its film, director, cinematographer, colour palette and a deep link.\n\n```bash\nnpm install framethrower-ai\n```\n\n```js\nimport FrameThrower from 'framethrower-ai'\n\nconst ft = new FrameThrower('ft_your_token')\n\nconst frames = await ft.search('neon-lit rainy street at night', { limit: 5 })\n\nfor (const f of frames) {\n  console.log(f.film.title, f.film.year, '—', f.url)\n}\n```\n\n## What it costs\n\n**$2 of credits free on signup, no card, no plan.** After that it is usage-based:\n**$1 = 1,000 credits**, and a search costs 2 — so **$1 buys 500 searches**.\nCredits never expire. There are **no rate limits**.\n\n| | |\n|---|---|\n| Free on signup | $2 of credits (2,000), no card |\n| Rate | $1 = 1,000 credits |\n| A search | 2 credits |\n| An image search | 10 credits |\n| Autocomplete | free |\n| Rate limits | none |\n\n## Get a token\n\n1. Sign up at [framethrower.ai](https://framethrower.ai/register) — free, no card\n2. Go to [Settings → API](https://framethrower.ai/settings?tab=api)\n3. **Create token**, copy it\n\nYour free signup credits work through the API from the first call. No paid plan\nis required.\n\n## All methods\n\nCosts are per call.\n\n| Method | Credits | Description |\n|--------|---------|-------------|\n| `ft.search(query, { limit?, mode? })` | 2 | Text search — `mode: 'hybrid'` (default) or `'description'` |\n| `ft.searchByColor(hex or hex[], limit?)` | 2 | Colour palette search |\n| `ft.searchByImage(url, limit?)` | 10 | Image similarity search — runs a model on the image |\n| `ft.browse({ shot_type?, director?, ... })` | 2 | Filter by craft attribute |\n| `ft.similar(frameId, { mode?, limit? })` | 2 | Find similar frames |\n| `ft.similarFrom(frameIds[], { mode?, limit? })` | 2 | Similar from several at once |\n| `ft.frame(id)` | 2 | Frame detail + the AI prompt for that frame |\n| `ft.random(limit?)` | 2 | Random sample |\n| `ft.films({ q?, sort?, minFrames?, page? })` | 2 | Film catalogue with poster + `frameCount` |\n| `ft.film(slug)` | 2 | Film detail |\n| `ft.filmFrames(slug, { page?, perPage? })` | 2 | A film's frames |\n| `ft.filmFramesPage(slug, { page?, perPage? })` | 2 | Same, plus the film's total frame count |\n| `ft.suggest(query)` | **0** | Autocomplete films and people — free |\n\n## More ways in\n\n```js\n// Colour\nconst warm = await ft.searchByColor(['#e8a87c', '#1b4332'])\n\n// A reference image\nconst matches = await ft.searchByImage('https://example.com/photo.jpg')\n\n// Craft attributes\nconst shots = await ft.browse({ shot_type: 'close-up', lens_character: 'anamorphic' })\n\n// A frame's full detail, including the AI prompt describing it\nconst detail = await ft.frame(frames[0].id)\nconsole.log(detail.prompt)\n\n// More like this one\nconst more = await ft.similar(frames[0].id, { mode: 'visual' })\n\n// The catalogue, best-covered films first\nconst films = await ft.films({ q: 'kubrick', sort: 'frames' })\nconsole.log(films[0].title, films[0].frameCount)  // 2001: A Space Odyssey 68\n```\n\n## From a frame to its film\n\nEvery frame carries its film's `slug` and `frameCount`, so any result is a\njumping-off point:\n\n```js\nconst [frame] = await ft.search('rain on a window')\nframe.film.slug        // 'blade-runner-1982'\nframe.film.frameCount  // 57\nconst siblings = await ft.filmFrames(frame.film.slug)\n```\n\n## Search modes\n\n`hybrid` (the default) fuses the frame's image embedding with its\nscene-description embedding — use it unless you have a reason not to.\n`description` ranks on the written descriptions alone, which is better when the\nquery is about story, action, or named objects.\n\n## Running out of credits\n\nA call with an insufficient balance returns **HTTP 402** with everything needed\nto recover, so an agent can explain itself rather than failing silently:\n\n```json\n{\n  \"error\": \"Not enough credits: this call costs 2, your balance is 0.\",\n  \"code\": \"insufficient_credits\",\n  \"cost\": 2,\n  \"balance\": 0,\n  \"buy_credits\": \"https://framethrower.ai/settings?tab=billing\"\n}\n```\n\nEvery metered response also carries `X-Credits-Cost` and `X-Credits-Remaining`,\nso you can track spend without a second call.\n\n## What you get back — and what you don't\n\nResponses carry metadata, thumbnail URLs, extracted colour palettes and deep\nlinks back to FrameThrower. **Never raw image bytes.** This is a reference and\ndiscovery tool, not an image-delivery pipe: the frames are not ours to license,\nand rights remain with their owners. See\n[intended use](https://framethrower.ai/legal/intended-use).\n\n## Also available\n\n- **MCP server** — [framethrower.ai/mcp](https://framethrower.ai/mcp). Four tools\n  (`search_frames`, `find_by_craft`, `find_similar`, `get_frame_details`) over\n  OAuth 2.1, for Claude, Cursor and any MCP client.\n- **REST API** — 11 endpoints. The machine-readable spec is at\n  [framethrower.ai/api/v1](https://framethrower.ai/api/v1); docs at\n  [framethrower.ai/developers](https://framethrower.ai/developers).\n\n## About\n\nFrameThrower is the reference app for the future creative: one of the largest\nfilm still libraries on the internet, callable from a REST API, an MCP server\nand an npm SDK. Built by senior filmmakers and ads creatives, for working film\nprofessionals.\n\nMIT licensed.\n","readmeFilename":"README.md","repository":{"type":"git","url":"git+https://github.com/framethrower-ai/framethrower-sdk.git"}}