@nodetool-ai/websocket 0.8.4-a24.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.nodetool-build-stamp +1 -1
- package/dist/example-workflows.d.ts +2 -0
- package/dist/example-workflows.d.ts.map +1 -1
- package/dist/example-workflows.js +16 -4
- package/dist/example-workflows.js.map +1 -1
- package/dist/examples/nodetool-base/A Campaign Concept from a Brief.json +135 -0
- package/dist/examples/nodetool-base/A Gradient Card as PNG.json +128 -0
- package/dist/examples/nodetool-base/A Poster in Portrait.json +129 -0
- package/dist/examples/nodetool-base/A Repeating Texture Tile.json +129 -0
- package/dist/examples/nodetool-base/A Run Button for Any Job.json +152 -0
- package/dist/examples/nodetool-base/A Webhook That Answers.json +170 -0
- package/dist/examples/nodetool-base/AI Spokesperson.json +328 -0
- package/dist/examples/nodetool-base/Action Items from a Meeting Recording.json +198 -0
- package/dist/examples/nodetool-base/Ad Copy in Three Registers.json +135 -0
- package/dist/examples/nodetool-base/Ad Loop from a Product Photo.json +277 -0
- package/dist/examples/nodetool-base/Add Reverb to a Voice.json +125 -0
- package/dist/examples/nodetool-base/Album Art from a Mood.json +129 -0
- package/dist/examples/nodetool-base/Assemble a UGC Product Video.json +158 -0
- package/dist/examples/nodetool-base/Audio To Image.json +184 -0
- package/dist/examples/nodetool-base/B-Roll Reel from a Brief.json +339 -0
- package/dist/examples/nodetool-base/Batch a List.json +171 -0
- package/dist/examples/nodetool-base/Black and White, Hard.json +147 -0
- package/dist/examples/nodetool-base/Blog Post to Social Thread.json +135 -0
- package/dist/examples/nodetool-base/Blur a Channel.json +205 -0
- package/dist/examples/nodetool-base/Blur an Image.json +179 -0
- package/dist/examples/nodetool-base/Boost Saturation.json +178 -0
- package/dist/examples/nodetool-base/Brand Asset Generator.json +585 -0
- package/dist/examples/nodetool-base/Brand a UGC Product Video.json +402 -0
- package/dist/examples/nodetool-base/Bring a Still to Life.json +250 -0
- package/dist/examples/nodetool-base/Bullet Points to Press Release.json +135 -0
- package/dist/examples/nodetool-base/Chapter Markers for a Long Recording.json +198 -0
- package/dist/examples/nodetool-base/Chat With Your Documents.json +569 -0
- package/dist/examples/nodetool-base/Chunk a Transcript for Indexing.json +202 -0
- package/dist/examples/nodetool-base/Circles and Lines.json +126 -0
- package/dist/examples/nodetool-base/Clean Up a Rough Voice Recording.json +208 -0
- package/dist/examples/nodetool-base/Clip on Kie.json +173 -0
- package/dist/examples/nodetool-base/Cold Outreach Co-Pilot.json +423 -0
- package/dist/examples/nodetool-base/Color Boost Video.json +250 -0
- package/dist/examples/nodetool-base/Compose Directed Campaign Formats.json +764 -0
- package/dist/examples/nodetool-base/Concept Art Iteration Board.json +439 -0
- package/dist/examples/nodetool-base/Concept Art, Then a Moving Version.json +173 -0
- package/dist/examples/nodetool-base/Conditional Logic Engine.json +535 -0
- package/dist/examples/nodetool-base/Count a List.json +168 -0
- package/dist/examples/nodetool-base/Count to Three with a Loop.json +157 -0
- package/dist/examples/nodetool-base/Crop an Image.json +181 -0
- package/dist/examples/nodetool-base/Crop then Fit.json +208 -0
- package/dist/examples/nodetool-base/Crush It to 8 Bits.json +123 -0
- package/dist/examples/nodetool-base/Cut Out the Subject.json +184 -0
- package/dist/examples/nodetool-base/Cut a Landscape Clip for Vertical.json +123 -0
- package/dist/examples/nodetool-base/Cut a Product Out of Its Background.json +238 -0
- package/dist/examples/nodetool-base/Data Generator.json +216 -0
- package/dist/examples/nodetool-base/Denoise Footage.json +178 -0
- package/dist/examples/nodetool-base/Direct a Short Film.json +305 -0
- package/dist/examples/nodetool-base/Directed Film to Timeline.json +385 -0
- package/dist/examples/nodetool-base/Does This Text Mention the Deadline.json +130 -0
- package/dist/examples/nodetool-base/Draft Answers for an FAQ.json +135 -0
- package/dist/examples/nodetool-base/Draw a Badge in SVG.json +126 -0
- package/dist/examples/nodetool-base/Drop Duplicates.json +170 -0
- package/dist/examples/nodetool-base/Drop the First Few.json +148 -0
- package/dist/examples/nodetool-base/Dungeon and Ruins Starter Pack.json +786 -0
- package/dist/examples/nodetool-base/Edit a Still with Words.json +284 -0
- package/dist/examples/nodetool-base/Editorial Still from a Line.json +197 -0
- package/dist/examples/nodetool-base/Emboss a Still.json +120 -0
- package/dist/examples/nodetool-base/Every Combination.json +225 -0
- package/dist/examples/nodetool-base/Every Hour, On the Hour.json +162 -0
- package/dist/examples/nodetool-base/Executive Summary of a Long Document.json +135 -0
- package/dist/examples/nodetool-base/Explainer Clip from a Paragraph.json +244 -0
- package/dist/examples/nodetool-base/Extract the Claims Worth Checking.json +135 -0
- package/dist/examples/nodetool-base/Fade Audio In and Out.json +203 -0
- package/dist/examples/nodetool-base/Fade Audio Out.json +202 -0
- package/dist/examples/nodetool-base/Fill a Template.json +149 -0
- package/dist/examples/nodetool-base/Find Every Number in a Sentence.json +127 -0
- package/dist/examples/nodetool-base/Find and Replace.json +224 -0
- package/dist/examples/nodetool-base/Find the Edges.json +123 -0
- package/dist/examples/nodetool-base/Fit an Image.json +179 -0
- package/dist/examples/nodetool-base/Five Headlines for a Landing Page.json +135 -0
- package/dist/examples/nodetool-base/Flashcard Generator.json +297 -0
- package/dist/examples/nodetool-base/Gate Out the Room Noise.json +124 -0
- package/dist/examples/nodetool-base/Generate a Native-Audio UGC Testimonial.json +276 -0
- package/dist/examples/nodetool-base/Generate a Silent Bed.json +126 -0
- package/dist/examples/nodetool-base/Generate then Upscale a Poster.json +164 -0
- package/dist/examples/nodetool-base/Hacker News Agent.json +183 -0
- package/dist/examples/nodetool-base/Hook & Thumbnail Factory.json +498 -0
- package/dist/examples/nodetool-base/How Long Is This Transcript.json +185 -0
- package/dist/examples/nodetool-base/Image Enhance.json +272 -0
- package/dist/examples/nodetool-base/Image To Audio Story.json +180 -0
- package/dist/examples/nodetool-base/Image to Video Animation.json +346 -0
- package/dist/examples/nodetool-base/Inspect a Clip's Audio.json +187 -0
- package/dist/examples/nodetool-base/Inspect a Clip.json +163 -0
- package/dist/examples/nodetool-base/Invert a Still.json +120 -0
- package/dist/examples/nodetool-base/Keep Only the Long Lines.json +220 -0
- package/dist/examples/nodetool-base/Keep Only the Matches.json +148 -0
- package/dist/examples/nodetool-base/Key Out a Green Screen.json +124 -0
- package/dist/examples/nodetool-base/Last One Wins.json +144 -0
- package/dist/examples/nodetool-base/Lip-sync a Clip to a Voice Track.json +313 -0
- package/dist/examples/nodetool-base/Localise a Product Listing.json +135 -0
- package/dist/examples/nodetool-base/Localise a Script and Revoice It.json +242 -0
- package/dist/examples/nodetool-base/Localized Explainer.json +430 -0
- package/dist/examples/nodetool-base/Low-poly Adventure Starter Pack.json +786 -0
- package/dist/examples/nodetool-base/Low-poly Seaside Starter Pack.json +786 -0
- package/dist/examples/nodetool-base/Master a Voice Track.json +180 -0
- package/dist/examples/nodetool-base/Meeting Transcript Summarizer.json +524 -0
- package/dist/examples/nodetool-base/Model Arena.json +550 -0
- package/dist/examples/nodetool-base/Moodboard Frame from a Theme.json +129 -0
- package/dist/examples/nodetool-base/Movie Posters.json +660 -0
- package/dist/examples/nodetool-base/Movie Trailer Generator.json +418 -0
- package/dist/examples/nodetool-base/Music Video Visualizer.json +720 -0
- package/dist/examples/nodetool-base/Name a File from Its Narration.json +231 -0
- package/dist/examples/nodetool-base/Narrate a Script.json +169 -0
- package/dist/examples/nodetool-base/Narration with a Music Bed.json +360 -0
- package/dist/examples/nodetool-base/Normalize a Clip's Audio.json +201 -0
- package/dist/examples/nodetool-base/One Tagline, Six Markets.json +135 -0
- package/dist/examples/nodetool-base/Pad a Canvas.json +188 -0
- package/dist/examples/nodetool-base/Per-SKU Ad Factory.json +511 -0
- package/dist/examples/nodetool-base/Photo Enhancement Suite.json +417 -0
- package/dist/examples/nodetool-base/Picture in Picture.json +231 -0
- package/dist/examples/nodetool-base/Pitch a Voice Up.json +122 -0
- package/dist/examples/nodetool-base/Pixelate a Still.json +122 -0
- package/dist/examples/nodetool-base/Platformer Playground Starter Pack.json +786 -0
- package/dist/examples/nodetool-base/Podcast Episode to Show Notes.json +198 -0
- package/dist/examples/nodetool-base/Podcast Repurposing Studio.json +745 -0
- package/dist/examples/nodetool-base/Pokemon Maker.json +282 -0
- package/dist/examples/nodetool-base/Poster on Kie.json +172 -0
- package/dist/examples/nodetool-base/Posterize to Four Bits.json +122 -0
- package/dist/examples/nodetool-base/Private Assistant.json +236 -0
- package/dist/examples/nodetool-base/Product Mockup Generator.json +608 -0
- package/dist/examples/nodetool-base/Product Spot from Text.json +330 -0
- package/dist/examples/nodetool-base/Product Video Generator.json +344 -0
- package/dist/examples/nodetool-base/Prompt Template.json +221 -0
- package/dist/examples/nodetool-base/Propose Three Campaign Directions.json +614 -0
- package/dist/examples/nodetool-base/Pull a Field out of JSON Text.json +128 -0
- package/dist/examples/nodetool-base/Pull a Still from a Clip.json +179 -0
- package/dist/examples/nodetool-base/Pull the Quotable Lines Out of an Interview.json +198 -0
- package/dist/examples/nodetool-base/Put a Product on a Studio Backdrop.json +252 -0
- package/dist/examples/nodetool-base/Put a Voice Over a Music Bed.json +358 -0
- package/dist/examples/nodetool-base/README_EXAMPLES.md +59 -0
- package/dist/examples/nodetool-base/Re-delimit a List.json +199 -0
- package/dist/examples/nodetool-base/Read a Clip's Frame Rate.json +120 -0
- package/dist/examples/nodetool-base/Redact Email Addresses.json +129 -0
- package/dist/examples/nodetool-base/Redact and Tidy a Log Line.json +266 -0
- package/dist/examples/nodetool-base/Relight a Product for a Seasonal Campaign.json +131 -0
- package/dist/examples/nodetool-base/Render a Directed Campaign Hero.json +338 -0
- package/dist/examples/nodetool-base/Reopen a Directed Campaign.json +1748 -0
- package/dist/examples/nodetool-base/Research Agent.json +231 -0
- package/dist/examples/nodetool-base/Research a Brand from Its Website.json +445 -0
- package/dist/examples/nodetool-base/Restyle a Photo as an Illustration.json +136 -0
- package/dist/examples/nodetool-base/Reverse Audio.json +201 -0
- package/dist/examples/nodetool-base/Reverse a Clip.json +176 -0
- package/dist/examples/nodetool-base/Revise an Accepted Campaign Hero.json +486 -0
- package/dist/examples/nodetool-base/Rewrite This So a Customer Understands It.json +135 -0
- package/dist/examples/nodetool-base/Rotate Footage.json +178 -0
- package/dist/examples/nodetool-base/SEO Content Engine.json +708 -0
- package/dist/examples/nodetool-base/SEO Title and Meta Description.json +135 -0
- package/dist/examples/nodetool-base/Sci-fi Game Model Starter Pack.json +693 -0
- package/dist/examples/nodetool-base/Sci-fi Outpost Expansion.json +601 -0
- package/dist/examples/nodetool-base/Score a Clip from Its Own Mood.json +229 -0
- package/dist/examples/nodetool-base/Score a Silent Clip.json +382 -0
- package/dist/examples/nodetool-base/Script to Narrated Clip.json +224 -0
- package/dist/examples/nodetool-base/Script to Screen.json +940 -0
- package/dist/examples/nodetool-base/Sharpen Footage.json +179 -0
- package/dist/examples/nodetool-base/Shot List from a Synopsis.json +136 -0
- package/dist/examples/nodetool-base/Single Shot from a Line.json +199 -0
- package/dist/examples/nodetool-base/Slice Text.json +159 -0
- package/dist/examples/nodetool-base/Slow a Clip Without Dropping Pitch.json +122 -0
- package/dist/examples/nodetool-base/Soften a Plate.json +178 -0
- package/dist/examples/nodetool-base/Solarize a Still.json +122 -0
- package/dist/examples/nodetool-base/Speak a Line, Then Trim the Silence.json +157 -0
- package/dist/examples/nodetool-base/Spin a Packshot into a Turntable Clip.json +137 -0
- package/dist/examples/nodetool-base/Split a Channel.json +178 -0
- package/dist/examples/nodetool-base/Split a Log into Records.json +128 -0
- package/dist/examples/nodetool-base/Stabilize Handheld.json +179 -0
- package/dist/examples/nodetool-base/Still on Replicate.json +172 -0
- package/dist/examples/nodetool-base/Subject Lines Worth Testing.json +135 -0
- package/dist/examples/nodetool-base/Subtitle Lines from a Script.json +170 -0
- package/dist/examples/nodetool-base/Subtitle Text from a Recording.json +198 -0
- package/dist/examples/nodetool-base/Summarise a Recorded Call.json +198 -0
- package/dist/examples/nodetool-base/Swirl and Echo.json +154 -0
- package/dist/examples/nodetool-base/Take While the Numbers Are Small.json +148 -0
- package/dist/examples/nodetool-base/Take a Product Shot to Print Resolution.json +209 -0
- package/dist/examples/nodetool-base/Take the First Few Seconds of a Bed.json +127 -0
- package/dist/examples/nodetool-base/Take the First Few.json +170 -0
- package/dist/examples/nodetool-base/Telephone Voice.json +174 -0
- package/dist/examples/nodetool-base/Themes Across Customer Feedback.json +135 -0
- package/dist/examples/nodetool-base/Three Ratios.json +315 -0
- package/dist/examples/nodetool-base/Tidy Up Messy Text.json +199 -0
- package/dist/examples/nodetool-base/Top-down Native Asset Pack.json +955 -0
- package/dist/examples/nodetool-base/Trailer Beats from a Premise.json +136 -0
- package/dist/examples/nodetool-base/Transcribe Audio.json +138 -0
- package/dist/examples/nodetool-base/Transcribe a Clip.json +198 -0
- package/dist/examples/nodetool-base/Translate Marketing Copy to German.json +135 -0
- package/dist/examples/nodetool-base/Translate a Script for Dubbing.json +224 -0
- package/dist/examples/nodetool-base/Trim Audio to a Range.json +203 -0
- package/dist/examples/nodetool-base/Trim a Blurb to Length.json +128 -0
- package/dist/examples/nodetool-base/Trim a Clip.json +180 -0
- package/dist/examples/nodetool-base/Turn Research Notes into a Comparison Table.json +136 -0
- package/dist/examples/nodetool-base/Turn Specs into Product Copy.json +135 -0
- package/dist/examples/nodetool-base/Turn a Changelog into Release Notes.json +135 -0
- package/dist/examples/nodetool-base/Turn a Logo into Print-Ready Vector.json +126 -0
- package/dist/examples/nodetool-base/Turn a Support Thread into a Bug Report.json +135 -0
- package/dist/examples/nodetool-base/Turn a Talk into a Blog Post.json +198 -0
- package/dist/examples/nodetool-base/Upscale a Still.json +186 -0
- package/dist/examples/nodetool-base/Vectorize a Generated Logo.json +162 -0
- package/dist/examples/nodetool-base/Video Restyle Studio.json +281 -0
- package/dist/examples/nodetool-base/Vignette a Portrait.json +124 -0
- package/dist/examples/nodetool-base/Voice a Script in Two Voices.json +217 -0
- package/dist/examples/nodetool-base/Warm Up a Cold Clip.json +124 -0
- package/dist/examples/nodetool-base/Watch a Folder, Act on What Lands.json +177 -0
- package/dist/examples/nodetool-base/Widen a Mono Voice.json +151 -0
- package/dist/examples/nodetool-base/Workflow As A Tool.json +257 -0
- package/dist/examples/nodetool-base/Write a Listing from the Product Photo.json +139 -0
- package/dist/examples/nodetool-base/Write the Prompt, Then Make the Image.json +200 -0
- package/dist/examples/nodetool-base/gallery_thumbnail_generator.ts +384 -0
- package/dist/fake-runtime.d.ts.map +1 -1
- package/dist/fake-runtime.js +5 -1
- package/dist/fake-runtime.js.map +1 -1
- package/dist/http-api.d.ts.map +1 -1
- package/dist/http-api.js +20 -3
- package/dist/http-api.js.map +1 -1
- package/dist/lib/openverse.d.ts +47 -0
- package/dist/lib/openverse.d.ts.map +1 -0
- package/dist/lib/openverse.js +255 -0
- package/dist/lib/openverse.js.map +1 -0
- package/dist/model-execution-availability.d.ts.map +1 -1
- package/dist/model-execution-availability.js +7 -2
- package/dist/model-execution-availability.js.map +1 -1
- package/dist/screenshot-server.js +87 -49
- package/dist/screenshot-server.js.map +1 -1
- package/dist/trpc/router.d.ts +2 -0
- package/dist/trpc/router.d.ts.map +1 -1
- package/dist/trpc/router.js +2 -0
- package/dist/trpc/router.js.map +1 -1
- package/dist/trpc/routers/games.d.ts +179 -0
- package/dist/trpc/routers/games.d.ts.map +1 -1
- package/dist/trpc/routers/games.js +1 -1
- package/dist/trpc/routers/games.js.map +1 -1
- package/dist/trpc/routers/models.d.ts +270 -0
- package/dist/trpc/routers/models.d.ts.map +1 -1
- package/dist/trpc/routers/models.js +37 -19
- package/dist/trpc/routers/models.js.map +1 -1
- package/dist/trpc/routers/openverse.d.ts +91 -0
- package/dist/trpc/routers/openverse.d.ts.map +1 -0
- package/dist/trpc/routers/openverse.js +98 -0
- package/dist/trpc/routers/openverse.js.map +1 -0
- package/dist/trpc/sandbox-coverage.d.ts.map +1 -1
- package/dist/trpc/sandbox-coverage.js +11 -0
- package/dist/trpc/sandbox-coverage.js.map +1 -1
- package/dist/websocket-client-session.d.ts +8 -0
- package/dist/websocket-client-session.d.ts.map +1 -1
- package/dist/websocket-client-session.js +31 -1
- package/dist/websocket-client-session.js.map +1 -1
- package/package.json +27 -28
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "",
|
|
3
|
+
"access": "private",
|
|
4
|
+
"created_at": "2026-06-25T12:00:00.000Z",
|
|
5
|
+
"updated_at": "2026-07-17T12:00:00.000Z",
|
|
6
|
+
"name": "Hook & Thumbnail Factory",
|
|
7
|
+
"tool_name": null,
|
|
8
|
+
"description": "One video topic in, a full thumbnail pack out: scroll-stopping hook lines plus a color-graded, ready-to-post thumbnail for each. The differentiator is the fan-out — one hook stream drives a whole gallery of matching images in a single run.",
|
|
9
|
+
"tags": [
|
|
10
|
+
"image",
|
|
11
|
+
"content",
|
|
12
|
+
"social",
|
|
13
|
+
"video",
|
|
14
|
+
"example"
|
|
15
|
+
],
|
|
16
|
+
"thumbnail": null,
|
|
17
|
+
"thumbnail_url": null,
|
|
18
|
+
"graph": {
|
|
19
|
+
"edges": [
|
|
20
|
+
{
|
|
21
|
+
"id": "0373f51d-ff16-457c-8871-7b28c2a4cb15",
|
|
22
|
+
"source": "input_topic",
|
|
23
|
+
"sourceHandle": "output",
|
|
24
|
+
"target": "hook_brief",
|
|
25
|
+
"targetHandle": "topic",
|
|
26
|
+
"ui_properties": {
|
|
27
|
+
"className": "str"
|
|
28
|
+
},
|
|
29
|
+
"edge_type": "data"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "e631105c-8b57-4304-bbd6-790378f7807d",
|
|
33
|
+
"source": "input_audience",
|
|
34
|
+
"sourceHandle": "output",
|
|
35
|
+
"target": "hook_brief",
|
|
36
|
+
"targetHandle": "audience",
|
|
37
|
+
"ui_properties": {
|
|
38
|
+
"className": "str"
|
|
39
|
+
},
|
|
40
|
+
"edge_type": "data"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "a1b2c3d4-count-brief",
|
|
44
|
+
"source": "input_count",
|
|
45
|
+
"sourceHandle": "output",
|
|
46
|
+
"target": "hook_brief",
|
|
47
|
+
"targetHandle": "count",
|
|
48
|
+
"ui_properties": {
|
|
49
|
+
"className": "int"
|
|
50
|
+
},
|
|
51
|
+
"edge_type": "data"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "5f7839de-32fd-43f1-b2ab-93de5cdc91c4",
|
|
55
|
+
"source": "hook_brief",
|
|
56
|
+
"sourceHandle": "output",
|
|
57
|
+
"target": "hooks",
|
|
58
|
+
"targetHandle": "prompt",
|
|
59
|
+
"ui_properties": {
|
|
60
|
+
"className": "str"
|
|
61
|
+
},
|
|
62
|
+
"edge_type": "data"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "6d86d394-8a74-4f7a-aeed-5f7d7f55bbc5",
|
|
66
|
+
"source": "hooks",
|
|
67
|
+
"sourceHandle": "item",
|
|
68
|
+
"target": "thumb_brief",
|
|
69
|
+
"targetHandle": "hook",
|
|
70
|
+
"ui_properties": {
|
|
71
|
+
"className": "str"
|
|
72
|
+
},
|
|
73
|
+
"edge_type": "data"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "5c7c4403-f00a-46e8-b68f-9a21a9a2227e",
|
|
77
|
+
"source": "input_topic",
|
|
78
|
+
"sourceHandle": "output",
|
|
79
|
+
"target": "thumb_brief",
|
|
80
|
+
"targetHandle": "topic",
|
|
81
|
+
"ui_properties": {
|
|
82
|
+
"className": "str"
|
|
83
|
+
},
|
|
84
|
+
"edge_type": "data"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "2082cf18-f8b9-455e-9c37-ffddc4fefd7d",
|
|
88
|
+
"source": "hooks",
|
|
89
|
+
"sourceHandle": "item",
|
|
90
|
+
"target": "preview_hooks",
|
|
91
|
+
"targetHandle": "value",
|
|
92
|
+
"ui_properties": {
|
|
93
|
+
"className": "str"
|
|
94
|
+
},
|
|
95
|
+
"edge_type": "data"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "b4d3e81f-2221-45da-a93b-ee2143c19f74",
|
|
99
|
+
"source": "thumb_brief",
|
|
100
|
+
"sourceHandle": "output",
|
|
101
|
+
"target": "thumbnail",
|
|
102
|
+
"targetHandle": "prompt",
|
|
103
|
+
"ui_properties": {
|
|
104
|
+
"className": "str"
|
|
105
|
+
},
|
|
106
|
+
"edge_type": "data"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "c5d6e7f8-thumb-grade",
|
|
110
|
+
"source": "thumbnail",
|
|
111
|
+
"sourceHandle": "output",
|
|
112
|
+
"target": "punch",
|
|
113
|
+
"targetHandle": "image",
|
|
114
|
+
"ui_properties": {
|
|
115
|
+
"className": "image"
|
|
116
|
+
},
|
|
117
|
+
"edge_type": "data"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "2806e15a-b3d8-4526-9170-137ca0f9b746",
|
|
121
|
+
"source": "punch",
|
|
122
|
+
"sourceHandle": "output",
|
|
123
|
+
"target": "preview_thumb",
|
|
124
|
+
"targetHandle": "value",
|
|
125
|
+
"ui_properties": {
|
|
126
|
+
"className": "image"
|
|
127
|
+
},
|
|
128
|
+
"edge_type": "data"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "d9e0f1a2-grade-collect",
|
|
132
|
+
"source": "punch",
|
|
133
|
+
"sourceHandle": "output",
|
|
134
|
+
"target": "collect_thumbs",
|
|
135
|
+
"targetHandle": "input_item",
|
|
136
|
+
"ui_properties": {
|
|
137
|
+
"className": "image"
|
|
138
|
+
},
|
|
139
|
+
"edge_type": "data"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "e3f4a5b6-collect-output",
|
|
143
|
+
"source": "collect_thumbs",
|
|
144
|
+
"sourceHandle": "output",
|
|
145
|
+
"target": "output_gallery",
|
|
146
|
+
"targetHandle": "value",
|
|
147
|
+
"ui_properties": {
|
|
148
|
+
"className": "list"
|
|
149
|
+
},
|
|
150
|
+
"edge_type": "data"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"nodes": [
|
|
154
|
+
{
|
|
155
|
+
"id": "comment-intro",
|
|
156
|
+
"type": "nodetool.workflows.base_node.Comment",
|
|
157
|
+
"data": {
|
|
158
|
+
"comment": "# 🎬 Hook & Thumbnail Factory\n\nGive a video topic and audience. The graph writes scroll-stopping hook lines and, for each hook, a matching color-graded thumbnail, all from one run.\n\n**How it works:** \"Video topic\", \"Target audience\" and \"How many hooks\" (4 by default) fill \"Build hook brief\". \"Stream hooks\" is a List Generator that emits one hook at a time, and \"Hook ideas\" previews each one. For every hook, \"Build thumbnail prompt\" combines it with the topic, \"Generate thumbnail\" renders a 16:9 image, and \"Color grade for punch\" raises contrast to 1.18 and brightness by 0.03. \"Latest thumbnail\" previews each image and \"Collect gallery\" gathers them into \"Thumbnail gallery\". Pick a text model on \"Stream hooks\" and an image model on \"Generate thumbnail\". Each thumbnail is one paid image.\n\n**Try this:** Set \"How many hooks\" to 2 for a cheaper test run, then raise \"contrast\" on \"Color grade for punch\" to 1.35 and compare how much the thumbnails pop."
|
|
159
|
+
},
|
|
160
|
+
"ui_properties": {
|
|
161
|
+
"selected": false,
|
|
162
|
+
"position": {
|
|
163
|
+
"x": 0,
|
|
164
|
+
"y": 0
|
|
165
|
+
},
|
|
166
|
+
"zIndex": 0,
|
|
167
|
+
"width": 560,
|
|
168
|
+
"height": 403,
|
|
169
|
+
"selectable": true,
|
|
170
|
+
"bypassed": false
|
|
171
|
+
},
|
|
172
|
+
"dynamic_properties": {},
|
|
173
|
+
"dynamic_outputs": {}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "input_topic",
|
|
177
|
+
"type": "nodetool.input.StringInput",
|
|
178
|
+
"data": {
|
|
179
|
+
"name": "Video Topic",
|
|
180
|
+
"description": "What the short-form video is about.",
|
|
181
|
+
"value": "How compound interest quietly builds wealth"
|
|
182
|
+
},
|
|
183
|
+
"ui_properties": {
|
|
184
|
+
"selected": false,
|
|
185
|
+
"position": {
|
|
186
|
+
"x": 0,
|
|
187
|
+
"y": 655
|
|
188
|
+
},
|
|
189
|
+
"zIndex": 0,
|
|
190
|
+
"width": 280,
|
|
191
|
+
"title": "1️⃣ Video topic",
|
|
192
|
+
"selectable": true,
|
|
193
|
+
"bypassed": false
|
|
194
|
+
},
|
|
195
|
+
"dynamic_properties": {},
|
|
196
|
+
"dynamic_outputs": {}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "input_audience",
|
|
200
|
+
"type": "nodetool.input.StringInput",
|
|
201
|
+
"data": {
|
|
202
|
+
"name": "Target Audience",
|
|
203
|
+
"description": "Who you are making it for — shapes tone and references.",
|
|
204
|
+
"value": "Gen Z just starting to invest"
|
|
205
|
+
},
|
|
206
|
+
"ui_properties": {
|
|
207
|
+
"selected": false,
|
|
208
|
+
"position": {
|
|
209
|
+
"x": 0,
|
|
210
|
+
"y": 880
|
|
211
|
+
},
|
|
212
|
+
"zIndex": 0,
|
|
213
|
+
"width": 280,
|
|
214
|
+
"title": "2️⃣ Target audience",
|
|
215
|
+
"selectable": true,
|
|
216
|
+
"bypassed": false
|
|
217
|
+
},
|
|
218
|
+
"dynamic_properties": {},
|
|
219
|
+
"dynamic_outputs": {}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "input_count",
|
|
223
|
+
"type": "nodetool.input.IntegerInput",
|
|
224
|
+
"data": {
|
|
225
|
+
"name": "Number of Hooks",
|
|
226
|
+
"description": "How many hook lines (and thumbnails) to produce. Each thumbnail is one FLUX image, so higher counts cost and take proportionally longer.",
|
|
227
|
+
"value": 4,
|
|
228
|
+
"min": 1,
|
|
229
|
+
"max": 10
|
|
230
|
+
},
|
|
231
|
+
"ui_properties": {
|
|
232
|
+
"selected": false,
|
|
233
|
+
"position": {
|
|
234
|
+
"x": 0,
|
|
235
|
+
"y": 1105
|
|
236
|
+
},
|
|
237
|
+
"zIndex": 0,
|
|
238
|
+
"width": 280,
|
|
239
|
+
"title": "3️⃣ How many hooks",
|
|
240
|
+
"selectable": true,
|
|
241
|
+
"bypassed": false
|
|
242
|
+
},
|
|
243
|
+
"dynamic_properties": {},
|
|
244
|
+
"dynamic_outputs": {}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "hook_brief",
|
|
248
|
+
"type": "nodetool.text.Prompt",
|
|
249
|
+
"data": {
|
|
250
|
+
"prompt": "You are a short-form video strategist. Write exactly {{ count }} scroll-stopping hook lines for a video.\n\nTOPIC: {{ topic }}\nAUDIENCE: {{ audience }}\n\nRules:\n- Each hook is a single line, spoken in the first 2 seconds.\n- Lead with curiosity, a bold claim, or a relatable pain the audience feels.\n- No clickbait the video can't pay off; no emojis; no numbering.\n- Keep each hook under 12 words so it fits on screen.\n\nOutput format: return the {{ count }} hooks as a plain list, one hook per line, nothing else."
|
|
251
|
+
},
|
|
252
|
+
"ui_properties": {
|
|
253
|
+
"selected": false,
|
|
254
|
+
"position": {
|
|
255
|
+
"x": 380,
|
|
256
|
+
"y": 753
|
|
257
|
+
},
|
|
258
|
+
"zIndex": 0,
|
|
259
|
+
"width": 340,
|
|
260
|
+
"height": 460,
|
|
261
|
+
"title": "4️⃣ Build hook brief",
|
|
262
|
+
"selectable": true,
|
|
263
|
+
"bypassed": false
|
|
264
|
+
},
|
|
265
|
+
"dynamic_properties": {
|
|
266
|
+
"topic": null,
|
|
267
|
+
"audience": null,
|
|
268
|
+
"count": null
|
|
269
|
+
},
|
|
270
|
+
"dynamic_outputs": {}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "hooks",
|
|
274
|
+
"type": "nodetool.generators.ListGenerator",
|
|
275
|
+
"data": {
|
|
276
|
+
"model": {
|
|
277
|
+
"type": "language_model",
|
|
278
|
+
"provider": "",
|
|
279
|
+
"id": "",
|
|
280
|
+
"name": "",
|
|
281
|
+
"path": null,
|
|
282
|
+
"supported_tasks": []
|
|
283
|
+
},
|
|
284
|
+
"max_tokens": 100000
|
|
285
|
+
},
|
|
286
|
+
"ui_properties": {
|
|
287
|
+
"selected": false,
|
|
288
|
+
"position": {
|
|
289
|
+
"x": 820,
|
|
290
|
+
"y": 761
|
|
291
|
+
},
|
|
292
|
+
"zIndex": 0,
|
|
293
|
+
"width": 360,
|
|
294
|
+
"height": 420,
|
|
295
|
+
"title": "5️⃣ Stream hooks",
|
|
296
|
+
"selectable": true,
|
|
297
|
+
"bypassed": false
|
|
298
|
+
},
|
|
299
|
+
"dynamic_properties": {},
|
|
300
|
+
"dynamic_outputs": {}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "thumb_brief",
|
|
304
|
+
"type": "nodetool.text.Prompt",
|
|
305
|
+
"data": {
|
|
306
|
+
"prompt": "You are an art director for viral thumbnails. Turn one hook into a single image description.\n\nVIDEO TOPIC: {{ topic }}\nHOOK ON SCREEN: {{ hook }}\n\nDescribe one bold, high-contrast 16:9 thumbnail: a clear focal subject, punchy saturated colors, dramatic lighting, and generous negative space on one side for a big text headline the creator will add later. Must read at small mobile sizes.\n\nConstraints: no words, letters, numbers, logos, or watermarks rendered in the image. No tiny details, no busy clutter.\n\nOutput format: one vivid paragraph, image description only."
|
|
307
|
+
},
|
|
308
|
+
"ui_properties": {
|
|
309
|
+
"selected": false,
|
|
310
|
+
"position": {
|
|
311
|
+
"x": 1280,
|
|
312
|
+
"y": 483
|
|
313
|
+
},
|
|
314
|
+
"zIndex": 0,
|
|
315
|
+
"width": 340,
|
|
316
|
+
"height": 460,
|
|
317
|
+
"title": "6️⃣ Build thumbnail prompt",
|
|
318
|
+
"selectable": true,
|
|
319
|
+
"bypassed": false
|
|
320
|
+
},
|
|
321
|
+
"dynamic_properties": {
|
|
322
|
+
"topic": null,
|
|
323
|
+
"hook": null
|
|
324
|
+
},
|
|
325
|
+
"dynamic_outputs": {}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"id": "thumbnail",
|
|
329
|
+
"type": "nodetool.image.TextToImage",
|
|
330
|
+
"data": {
|
|
331
|
+
"model": {
|
|
332
|
+
"type": "image_model",
|
|
333
|
+
"provider": "",
|
|
334
|
+
"id": "",
|
|
335
|
+
"name": "",
|
|
336
|
+
"path": null,
|
|
337
|
+
"supported_tasks": []
|
|
338
|
+
},
|
|
339
|
+
"negative_prompt": "blurry, low contrast, watermark, text, letters, tiny details, clutter",
|
|
340
|
+
"aspect_ratio": "16:9",
|
|
341
|
+
"resolution": "2K"
|
|
342
|
+
},
|
|
343
|
+
"ui_properties": {
|
|
344
|
+
"selected": false,
|
|
345
|
+
"position": {
|
|
346
|
+
"x": 1740,
|
|
347
|
+
"y": 634
|
|
348
|
+
},
|
|
349
|
+
"zIndex": 0,
|
|
350
|
+
"width": 320,
|
|
351
|
+
"height": 360,
|
|
352
|
+
"title": "7️⃣ Generate thumbnail",
|
|
353
|
+
"selectable": true,
|
|
354
|
+
"bypassed": false
|
|
355
|
+
},
|
|
356
|
+
"dynamic_properties": {},
|
|
357
|
+
"dynamic_outputs": {}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"id": "punch",
|
|
361
|
+
"type": "lib.image.color.BrightnessContrast",
|
|
362
|
+
"data": {
|
|
363
|
+
"brightness": 0.03,
|
|
364
|
+
"contrast": 1.18
|
|
365
|
+
},
|
|
366
|
+
"ui_properties": {
|
|
367
|
+
"selected": false,
|
|
368
|
+
"position": {
|
|
369
|
+
"x": 2160,
|
|
370
|
+
"y": 776
|
|
371
|
+
},
|
|
372
|
+
"zIndex": 0,
|
|
373
|
+
"width": 280,
|
|
374
|
+
"title": "8️⃣ Color grade for punch",
|
|
375
|
+
"selectable": true,
|
|
376
|
+
"bypassed": false
|
|
377
|
+
},
|
|
378
|
+
"dynamic_properties": {},
|
|
379
|
+
"dynamic_outputs": {}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"id": "collect_thumbs",
|
|
383
|
+
"type": "nodetool.control.Collect",
|
|
384
|
+
"data": {
|
|
385
|
+
"input_item": []
|
|
386
|
+
},
|
|
387
|
+
"ui_properties": {
|
|
388
|
+
"selected": false,
|
|
389
|
+
"position": {
|
|
390
|
+
"x": 2540,
|
|
391
|
+
"y": 1002
|
|
392
|
+
},
|
|
393
|
+
"zIndex": 0,
|
|
394
|
+
"width": 280,
|
|
395
|
+
"title": "9️⃣ Collect gallery",
|
|
396
|
+
"selectable": true,
|
|
397
|
+
"bypassed": false
|
|
398
|
+
},
|
|
399
|
+
"dynamic_properties": {},
|
|
400
|
+
"dynamic_outputs": {}
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": "output_gallery",
|
|
404
|
+
"type": "nodetool.output.Output",
|
|
405
|
+
"data": {
|
|
406
|
+
"name": "thumbnail_gallery"
|
|
407
|
+
},
|
|
408
|
+
"ui_properties": {
|
|
409
|
+
"selected": false,
|
|
410
|
+
"position": {
|
|
411
|
+
"x": 3000,
|
|
412
|
+
"y": 964
|
|
413
|
+
},
|
|
414
|
+
"zIndex": 0,
|
|
415
|
+
"width": 280,
|
|
416
|
+
"title": "🖼️ Thumbnail gallery",
|
|
417
|
+
"selectable": true,
|
|
418
|
+
"bypassed": false
|
|
419
|
+
},
|
|
420
|
+
"dynamic_properties": {},
|
|
421
|
+
"dynamic_outputs": {}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"id": "preview_hooks",
|
|
425
|
+
"type": "nodetool.workflows.base_node.Preview",
|
|
426
|
+
"data": {
|
|
427
|
+
"name": "hooks"
|
|
428
|
+
},
|
|
429
|
+
"ui_properties": {
|
|
430
|
+
"selected": false,
|
|
431
|
+
"position": {
|
|
432
|
+
"x": 1280,
|
|
433
|
+
"y": 1039
|
|
434
|
+
},
|
|
435
|
+
"zIndex": 0,
|
|
436
|
+
"width": 360,
|
|
437
|
+
"height": 300,
|
|
438
|
+
"title": "🪝 Hook ideas",
|
|
439
|
+
"selectable": true,
|
|
440
|
+
"bypassed": false
|
|
441
|
+
},
|
|
442
|
+
"dynamic_properties": {},
|
|
443
|
+
"dynamic_outputs": {}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"id": "preview_thumb",
|
|
447
|
+
"type": "nodetool.workflows.base_node.Preview",
|
|
448
|
+
"data": {
|
|
449
|
+
"name": "thumbnail"
|
|
450
|
+
},
|
|
451
|
+
"ui_properties": {
|
|
452
|
+
"selected": false,
|
|
453
|
+
"position": {
|
|
454
|
+
"x": 2540,
|
|
455
|
+
"y": 632
|
|
456
|
+
},
|
|
457
|
+
"zIndex": 0,
|
|
458
|
+
"width": 360,
|
|
459
|
+
"height": 320,
|
|
460
|
+
"title": "🖼️ Latest thumbnail",
|
|
461
|
+
"selectable": true,
|
|
462
|
+
"bypassed": false
|
|
463
|
+
},
|
|
464
|
+
"dynamic_properties": {},
|
|
465
|
+
"dynamic_outputs": {}
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
"input_schema": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"Video Topic": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"label": ""
|
|
475
|
+
},
|
|
476
|
+
"Target Audience": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"label": ""
|
|
479
|
+
},
|
|
480
|
+
"Number of Hooks": {
|
|
481
|
+
"type": "integer",
|
|
482
|
+
"label": ""
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"Video Topic"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"output_schema": null,
|
|
490
|
+
"settings": {},
|
|
491
|
+
"package_name": "nodetool-base",
|
|
492
|
+
"path": null,
|
|
493
|
+
"run_mode": "workflow",
|
|
494
|
+
"workspace_id": null,
|
|
495
|
+
"required_providers": null,
|
|
496
|
+
"required_models": null,
|
|
497
|
+
"html_app": null
|
|
498
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "",
|
|
3
|
+
"access": "private",
|
|
4
|
+
"created_at": "2026-07-30T12:00:00.000Z",
|
|
5
|
+
"updated_at": "2026-07-30T12:00:00.000Z",
|
|
6
|
+
"name": "How Long Is This Transcript",
|
|
7
|
+
"tool_name": null,
|
|
8
|
+
"description": "Transcribe a clip and count the tokens. Worth knowing before you feed a transcript to a model that bills per token or caps context.",
|
|
9
|
+
"tags": [
|
|
10
|
+
"audio",
|
|
11
|
+
"text",
|
|
12
|
+
"example"
|
|
13
|
+
],
|
|
14
|
+
"thumbnail": null,
|
|
15
|
+
"thumbnail_url": null,
|
|
16
|
+
"graph": {
|
|
17
|
+
"nodes": [
|
|
18
|
+
{
|
|
19
|
+
"id": "intro-comment",
|
|
20
|
+
"type": "nodetool.workflows.base_node.Comment",
|
|
21
|
+
"data": {
|
|
22
|
+
"comment": "# How Long Is This Transcript\n\nTranscribes a clip and counts the tokens in the transcript. Check this before sending a transcript to a model that bills per token or limits context.\n\n**How it works:** \"Clip\" passes the video to \"Extract audio\". \"Transcribe\" turns the audio into English text. \"Count tokens\" is a Code node that counts the tokens in that text, and \"Count\" shows the number. Pick a speech recognition model on \"Transcribe\".\n\n**Try this:** Set the language on \"Transcribe\" to match a non-English clip, then compare its token count with an English clip of the same length."
|
|
23
|
+
},
|
|
24
|
+
"ui_properties": {
|
|
25
|
+
"position": {
|
|
26
|
+
"x": 0,
|
|
27
|
+
"y": 0
|
|
28
|
+
},
|
|
29
|
+
"zIndex": 0,
|
|
30
|
+
"width": 560,
|
|
31
|
+
"selectable": true,
|
|
32
|
+
"height": 286
|
|
33
|
+
},
|
|
34
|
+
"dynamic_properties": {},
|
|
35
|
+
"dynamic_outputs": {}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "in",
|
|
39
|
+
"type": "nodetool.input.VideoInput",
|
|
40
|
+
"data": {
|
|
41
|
+
"name": "clip",
|
|
42
|
+
"value": {
|
|
43
|
+
"type": "video",
|
|
44
|
+
"uri": "package://nodetool-base/recipe-inputs/presenter.mp4"
|
|
45
|
+
},
|
|
46
|
+
"description": "The clip to measure"
|
|
47
|
+
},
|
|
48
|
+
"ui_properties": {
|
|
49
|
+
"position": {
|
|
50
|
+
"x": 0,
|
|
51
|
+
"y": 490
|
|
52
|
+
},
|
|
53
|
+
"zIndex": 0,
|
|
54
|
+
"width": 280,
|
|
55
|
+
"selectable": true,
|
|
56
|
+
"title": "1 Clip"
|
|
57
|
+
},
|
|
58
|
+
"dynamic_properties": {},
|
|
59
|
+
"dynamic_outputs": {}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "ex",
|
|
63
|
+
"type": "nodetool.video.ExtractAudio",
|
|
64
|
+
"data": {},
|
|
65
|
+
"ui_properties": {
|
|
66
|
+
"position": {
|
|
67
|
+
"x": 380,
|
|
68
|
+
"y": 514
|
|
69
|
+
},
|
|
70
|
+
"zIndex": 0,
|
|
71
|
+
"width": 280,
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"title": "2 Extract audio"
|
|
74
|
+
},
|
|
75
|
+
"dynamic_properties": {},
|
|
76
|
+
"dynamic_outputs": {}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "asr",
|
|
80
|
+
"type": "nodetool.text.AutomaticSpeechRecognition",
|
|
81
|
+
"data": {
|
|
82
|
+
"model": {
|
|
83
|
+
"type": "asr_model",
|
|
84
|
+
"provider": "",
|
|
85
|
+
"id": "",
|
|
86
|
+
"name": "",
|
|
87
|
+
"path": null
|
|
88
|
+
},
|
|
89
|
+
"language": "en",
|
|
90
|
+
"prompt": "",
|
|
91
|
+
"temperature": 0
|
|
92
|
+
},
|
|
93
|
+
"ui_properties": {
|
|
94
|
+
"position": {
|
|
95
|
+
"x": 760,
|
|
96
|
+
"y": 486
|
|
97
|
+
},
|
|
98
|
+
"zIndex": 0,
|
|
99
|
+
"width": 280,
|
|
100
|
+
"selectable": true,
|
|
101
|
+
"title": "3 Transcribe"
|
|
102
|
+
},
|
|
103
|
+
"dynamic_properties": {},
|
|
104
|
+
"dynamic_outputs": {}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "ct",
|
|
108
|
+
"type": "nodetool.code.Code",
|
|
109
|
+
"data": {
|
|
110
|
+
"code": "import { count } from \"@nodetool-ai/sandbox-tokens\";\nreturn { output: await count(String(inputs.text ?? \"\"), inputs.encoding ?? \"cl100k_base\") };"
|
|
111
|
+
},
|
|
112
|
+
"ui_properties": {
|
|
113
|
+
"position": {
|
|
114
|
+
"x": 1140,
|
|
115
|
+
"y": 366
|
|
116
|
+
},
|
|
117
|
+
"zIndex": 0,
|
|
118
|
+
"width": 280,
|
|
119
|
+
"selectable": true,
|
|
120
|
+
"title": "4 Count tokens"
|
|
121
|
+
},
|
|
122
|
+
"dynamic_properties": {
|
|
123
|
+
"text": "",
|
|
124
|
+
"encoding": "cl100k_base"
|
|
125
|
+
},
|
|
126
|
+
"dynamic_outputs": {}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "out",
|
|
130
|
+
"type": "nodetool.output.Output",
|
|
131
|
+
"data": {
|
|
132
|
+
"name": "token_count"
|
|
133
|
+
},
|
|
134
|
+
"ui_properties": {
|
|
135
|
+
"position": {
|
|
136
|
+
"x": 1520,
|
|
137
|
+
"y": 498
|
|
138
|
+
},
|
|
139
|
+
"zIndex": 0,
|
|
140
|
+
"width": 280,
|
|
141
|
+
"selectable": true,
|
|
142
|
+
"title": "5 Count"
|
|
143
|
+
},
|
|
144
|
+
"dynamic_properties": {},
|
|
145
|
+
"dynamic_outputs": {}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"edges": [
|
|
149
|
+
{
|
|
150
|
+
"id": "e1",
|
|
151
|
+
"source": "in",
|
|
152
|
+
"sourceHandle": "output",
|
|
153
|
+
"target": "ex",
|
|
154
|
+
"targetHandle": "video"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "e2",
|
|
158
|
+
"source": "ex",
|
|
159
|
+
"sourceHandle": "output",
|
|
160
|
+
"target": "asr",
|
|
161
|
+
"targetHandle": "audio"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "e3",
|
|
165
|
+
"source": "asr",
|
|
166
|
+
"sourceHandle": "text",
|
|
167
|
+
"target": "ct",
|
|
168
|
+
"targetHandle": "text"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "e4",
|
|
172
|
+
"source": "ct",
|
|
173
|
+
"sourceHandle": "output",
|
|
174
|
+
"target": "out",
|
|
175
|
+
"targetHandle": "value"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"input_schema": null,
|
|
180
|
+
"output_schema": null,
|
|
181
|
+
"settings": null,
|
|
182
|
+
"package_name": "nodetool-base",
|
|
183
|
+
"path": null,
|
|
184
|
+
"run_mode": null
|
|
185
|
+
}
|