creatorriver 0.2.1 → 0.3.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # creatorriver
2
2
 
3
- Find creators, reveal their email and send outreach from your terminal or AI agent, using [Creator River](https://www.creatorriver.com).
3
+ Search 1.8M+ YouTube, TikTok and Instagram creators in plain language, every one with a contact email, and run outreach from your terminal or AI agent, using [Creator River](https://www.creatorriver.com). Searching is free; you spend credits when you open a creator, reveal an email (refunded if it bounces) or send more than the free daily emails. 100 credits cost $1, and new accounts get 100 free.
4
4
 
5
5
  ```bash
6
6
  npx creatorriver --help
@@ -108,7 +108,32 @@ var limit = (max, fallback) => z3.number().int().min(1).max(max).optional().desc
108
108
  var count = (what) => z3.number().int().min(0).optional().describe(what);
109
109
  var PLATFORMS = ["youtube", "instagram", "tiktok"];
110
110
  var LAST_POST_WITHIN_DAYS = [7, 14, 30, 90, 180];
111
+ var CREATOR_NICHES = [
112
+ "music",
113
+ "gaming",
114
+ "tech",
115
+ "beauty",
116
+ "food",
117
+ "sports",
118
+ "fitness",
119
+ "travel",
120
+ "pets",
121
+ "fashion",
122
+ "health",
123
+ "education",
124
+ "comedy",
125
+ "cars",
126
+ "parenting"
127
+ ];
111
128
  var engagementRate = (what) => z3.number().min(0).max(1).optional().describe(what);
129
+ var REPLY_DISPOSITIONS = ["positive", "neutral", "negative"];
130
+ var CAMPAIGN_STATUS_STAGES = [
131
+ "discovery",
132
+ "outreach",
133
+ "negotiation",
134
+ "collaboration",
135
+ "monitoring"
136
+ ];
112
137
  var CAMPAIGN_STATUSES = [
113
138
  "draft",
114
139
  "active",
@@ -132,15 +157,27 @@ var searchCreators = defineOperation({
132
157
  path: "/searches",
133
158
  kind: "read",
134
159
  summary: "Find creators by description and filters",
135
- description: "Searches the creator database by meaning: describe the creators you want in plain words (niche, content, audience), and optionally narrow by platform, creator country, audience country, language, size, engagement rate and how recently they posted. Free, but each call counts against the daily search limit (see get_account). Results show each creator\u2019s name but no handle or profile link. Pass campaignId to rank against that campaign\u2019s brief and record the search in it.",
160
+ description: "Searches the creator database by meaning: describe the creators you want in plain words (niche, content, audience), and optionally narrow by platform, niche, creator country, audience country, language, size, engagement rate and how recently they posted. To find creators like ones the user already knows, pass their handles or profile links as exampleCreators. Free, but each call counts against the daily search limit (see get_account). Results show each creator\u2019s name but no handle or profile link. Pass campaignId to rank against that campaign\u2019s brief and record the search in it.",
136
161
  input: z3.object({
137
- query: z3.string().trim().min(1).max(1e3).describe("The creators you want, in plain words"),
162
+ query: z3.string().trim().min(1).max(1e3).describe(
163
+ "The creators you want, in plain words: niche, what their content is like, who watches it"
164
+ ),
138
165
  platforms: z3.array(z3.enum(PLATFORMS)).optional().describe("Only creators on these platforms"),
139
- markets: z3.array(z3.string().trim().min(1)).optional().describe("Only creators in these countries, e.g. us, gb, jp"),
166
+ niches: z3.array(z3.enum(CREATOR_NICHES)).optional().describe(
167
+ "Only creators whose main content is one of these niches. Creators who cover many topics are filed under none, so leave this out for broad lifestyle searches"
168
+ ),
169
+ exampleCreators: z3.array(z3.string().trim().min(1).max(300)).max(10).optional().describe(
170
+ "Creators to find more like: @handles or profile links, e.g. @mkbhd or https://www.tiktok.com/@khaby.lame. The query still says what they should share. Ones not found are listed in warnings"
171
+ ),
172
+ markets: z3.array(z3.string().trim().min(1)).optional().describe(
173
+ "Only creators based in these countries: two-letter codes, e.g. us, gb, jp"
174
+ ),
140
175
  audienceCountries: z3.array(z3.string().trim().min(1)).optional().describe(
141
- "Only creators whose largest audience is in these countries, e.g. us, gb, th"
176
+ "Only creators whose largest audience is in these countries: two-letter codes, e.g. us, gb, th"
177
+ ),
178
+ languages: z3.array(z3.string().trim().min(1)).optional().describe(
179
+ "Only creators posting in these languages: two-letter codes, e.g. en, es, ja"
142
180
  ),
143
- languages: z3.array(z3.string().trim().min(1)).optional().describe("Only creators posting in these languages, e.g. english"),
144
181
  lastPostWithinDays: z3.number().int().refine(
145
182
  (days) => LAST_POST_WITHIN_DAYS.includes(days),
146
183
  {
@@ -163,6 +200,60 @@ var searchCreators = defineOperation({
163
200
  limit: limit(100, 20)
164
201
  })
165
202
  });
203
+ var findSimilarCreators = defineOperation({
204
+ name: "find_similar_creators",
205
+ command: ["creators", "similar"],
206
+ method: "POST",
207
+ path: "/creators/{creatorId}/similar",
208
+ kind: "read",
209
+ summary: "Find creators like one you already have",
210
+ description: "Finds creators whose content is closest to one creator\u2019s, on the same platform: pass the creatorId of a search result, no handle or unlock needed. Free, but each call counts against the daily search limit (see get_account). With campaignId, creators already in that campaign or excluded from it are left out. Results show names but no handles, as search_creators does, each with a matchScore from 0 to 1; the search is kept, so list_searches and get_search can read it again.",
211
+ input: z3.object({
212
+ creatorId: creatorId.describe(
213
+ "The creator to find more like, from search_creators or another result"
214
+ ),
215
+ campaignId: campaignId.optional().describe("Leave out creators this campaign already has or excluded"),
216
+ markets: z3.array(z3.string().trim().min(1)).optional().describe(
217
+ "Only creators based in these countries: two-letter codes, e.g. us, gb, jp"
218
+ ),
219
+ languages: z3.array(z3.string().trim().min(1)).optional().describe(
220
+ "Only creators posting in these languages: two-letter codes, e.g. en, es, ja"
221
+ ),
222
+ minFollowers: count("At least this many followers"),
223
+ maxFollowers: count("At most this many followers"),
224
+ minAvgViews: count("At least this many average views per post"),
225
+ maxAvgViews: count("At most this many average views per post"),
226
+ limit: limit(100, 20)
227
+ })
228
+ });
229
+ var listSearches = defineOperation({
230
+ name: "list_searches",
231
+ command: ["searches", "list"],
232
+ method: "GET",
233
+ path: "/searches",
234
+ kind: "read",
235
+ summary: "List past searches",
236
+ description: "Lists the searches run before, newest first, with their query, filters and how many results they had, including find_similar_creators ones. Free, and does not count against the daily search limit. To see a search\u2019s results again, call get_search instead of searching again.",
237
+ input: z3.object({
238
+ campaignId: campaignId.optional().describe("Only the searches run for this campaign"),
239
+ page: z3.number().int().min(1).optional().describe("Page number, from 1"),
240
+ limit: limit(100, 20)
241
+ })
242
+ });
243
+ var getSearch = defineOperation({
244
+ name: "get_search",
245
+ command: ["searches", "get"],
246
+ method: "GET",
247
+ path: "/searches/{searchId}",
248
+ kind: "read",
249
+ summary: "Read a past search\u2019s results again",
250
+ description: "Returns a past search and its results, in the order they were ranked, as search_creators returned them. Free, and does not count against the daily search limit.",
251
+ input: z3.object({
252
+ searchId: z3.string().trim().min(1).describe(
253
+ "Search id, from search_creators, find_similar_creators or list_searches"
254
+ )
255
+ })
256
+ });
166
257
  var getCreator = defineOperation({
167
258
  name: "get_creator",
168
259
  command: ["creators", "get"],
@@ -182,7 +273,7 @@ var unlockCreator = defineOperation({
182
273
  method: "POST",
183
274
  path: "/creators/{creatorId}/unlock",
184
275
  kind: "spend",
185
- summary: "Unlock a creator\u2019s name, handle and profile link",
276
+ summary: "Unlock a creator\u2019s handle and profile link",
186
277
  description: "Unlocks the creator and returns the full profile with handle, profile link and recent video titles and links. Costs 0.5 credits the first time for each creator; unlocking again is free. It does not reveal the email address; use reveal_contact for that.",
187
278
  input: z3.object({ creatorId })
188
279
  });
@@ -214,6 +305,22 @@ var createCampaign = defineOperation({
214
305
  status: z3.enum(CAMPAIGN_STATUSES).optional().describe("Workflow status (default draft)")
215
306
  })
216
307
  });
308
+ var updateCampaign = defineOperation({
309
+ name: "update_campaign",
310
+ command: ["campaigns", "update"],
311
+ method: "PATCH",
312
+ path: "/campaigns/{campaignId}",
313
+ kind: "write",
314
+ summary: "Change a campaign\u2019s name, brief or status",
315
+ description: "Changes a campaign: its name, its brief, its status, or whether it is archived. Pass only what changes. Free. A new brief is kept as the next revision, and searches with this campaignId rank against it from then on; creators already in the campaign stay.",
316
+ input: z3.object({
317
+ campaignId,
318
+ name: z3.string().trim().min(1).max(200).optional().describe("New name"),
319
+ brief: z3.string().trim().min(1).max(1e4).optional().describe("New brief: product, goal and the creators you want"),
320
+ status: z3.enum(CAMPAIGN_STATUSES).optional().describe("New workflow status"),
321
+ archived: z3.boolean().optional().describe("true hides the campaign from the list; false brings it back")
322
+ })
323
+ });
217
324
  var getCampaignStatus = defineOperation({
218
325
  name: "get_campaign_status",
219
326
  command: ["campaigns", "status"],
@@ -221,9 +328,13 @@ var getCampaignStatus = defineOperation({
221
328
  path: "/campaigns/{campaignId}/status",
222
329
  kind: "read",
223
330
  summary: "Show a campaign\u2019s pipeline",
224
- description: "Shows where a campaign stands: the searches run for it, and its creators by stage (outreach, negotiation, collaboration), each with the next action. Free. Use it to decide what to do next across a campaign.",
331
+ description: "Shows where a campaign stands: the searches run for it, and its creators by stage (outreach, negotiation, collaboration), each with the next action and who the conversation is waiting on. Free. Counts cover the whole campaign; each stage lists its most recently active items first. To go through every creator at one stage, pass stage and read page 1, 2, \u2026 until you have count items. Use it to decide what to do next across a campaign.",
225
332
  input: z3.object({
226
333
  campaignId,
334
+ stage: z3.enum(CAMPAIGN_STATUS_STAGES).optional().describe(
335
+ "List items for this stage only; the other stages still show their counts"
336
+ ),
337
+ page: z3.number().int().min(1).optional().describe("Page of the stage\u2019s items, from 1 (needs stage)"),
227
338
  limit: limit(100, 12).describe(
228
339
  "How many items to return per stage, 1-100 (default 12)"
229
340
  )
@@ -265,24 +376,79 @@ var getConversation = defineOperation({
265
376
  description: "Returns the email thread with a creator in a campaign: its stage, who it is waiting on, the next action and agreed facts, plus every message and event, oldest first. Free. Check it for replies after send_email. The thread is null until the first email is sent.",
266
377
  input: z3.object({ campaignId, creatorId })
267
378
  });
379
+ var price = z3.string().trim().min(1).max(200).optional().describe("Price the creator named or agreed, as said, e.g. $300 per video");
380
+ var liveWindow = z3.string().trim().min(1).max(200).optional().describe("When the content would go live, as said, e.g. late March");
381
+ var recordReply = defineOperation({
382
+ name: "record_reply",
383
+ command: ["conversations", "record"],
384
+ method: "POST",
385
+ path: "/campaigns/{campaignId}/creators/{creatorId}/replies",
386
+ kind: "write",
387
+ summary: "Record a reply the creator sent outside Creator River",
388
+ description: "Records a reply that reached the user some other way (a DM, another inbox, a call) and how it went. positive or neutral moves the creator to negotiation (a confirmed collaboration stays), waiting on the user; negative records that they declined and closes the conversation. Free. Replies to emails sent with send_email arrive on their own (see get_conversation), so never record those. Needs an email sent first. Recording the same reply again changes nothing.",
389
+ input: z3.object({
390
+ campaignId,
391
+ creatorId,
392
+ disposition: z3.enum(REPLY_DISPOSITIONS).describe(
393
+ "How the reply went: positive (interested), neutral, or negative (declined)"
394
+ ),
395
+ summary: z3.string().trim().min(1).max(5e3).describe("What the creator said, quoted or in a sentence"),
396
+ price,
397
+ liveWindow
398
+ })
399
+ });
400
+ var confirmCollaboration = defineOperation({
401
+ name: "confirm_collaboration",
402
+ command: ["conversations", "confirm"],
403
+ method: "POST",
404
+ path: "/campaigns/{campaignId}/creators/{creatorId}/collaboration",
405
+ kind: "write",
406
+ summary: "Record that a creator agreed to collaborate",
407
+ description: "Records that the creator agreed to work with the user, with the agreed terms, and moves them to the collaboration stage, waiting on the user to prepare it. Free. Call it only once the creator has clearly said yes to the terms; it sends nothing to the creator. Needs an email sent first. Confirming the same terms again changes nothing.",
408
+ input: z3.object({
409
+ campaignId,
410
+ creatorId,
411
+ terms: z3.string().trim().min(1).max(5e3).describe("What was agreed: deliverables, fee, dates, usage"),
412
+ deliverables: z3.array(z3.string().trim().min(1).max(500)).max(20).optional().describe("Each agreed deliverable, e.g. one 60-second integration"),
413
+ price,
414
+ liveWindow
415
+ })
416
+ });
417
+ var excludeCreator = defineOperation({
418
+ name: "exclude_creator",
419
+ command: ["campaigns", "exclude"],
420
+ method: "POST",
421
+ path: "/campaigns/{campaignId}/creators/{creatorId}/exclusion",
422
+ kind: "write",
423
+ summary: "Take a creator out of a campaign",
424
+ description: "Takes a creator out of a campaign for good: they move to closed and reveal_contact will not add them to this campaign again. Their conversation stays readable. Free; credits already spent are not refunded. Use it when the user rules a creator out.",
425
+ input: z3.object({ campaignId, creatorId })
426
+ });
268
427
  var operations = [
269
428
  getAccount,
270
429
  searchCreators,
430
+ findSimilarCreators,
431
+ listSearches,
432
+ getSearch,
271
433
  getCreator,
272
434
  unlockCreator,
273
435
  listCampaigns,
274
436
  createCampaign,
437
+ updateCampaign,
275
438
  getCampaignStatus,
276
439
  revealContact,
277
440
  sendEmail,
278
- getConversation
441
+ getConversation,
442
+ recordReply,
443
+ confirmCollaboration,
444
+ excludeCreator
279
445
  ];
280
446
 
281
447
  // src/cli.ts
282
448
  import { Command, CommanderError } from "commander";
283
449
 
284
450
  // package.json
285
- var version = "0.2.1";
451
+ var version = "0.3.0";
286
452
 
287
453
  // src/http.ts
288
454
  var DEFAULT_API_URL = "https://www.creatorriver.com";
@@ -505,11 +671,12 @@ async function waitForLogin(endpoint2, io, login, waitSeconds) {
505
671
  // src/cli.ts
506
672
  var LOGIN_HINT = "run `creatorriver auth login`";
507
673
  var GROUP_DESCRIPTIONS = {
508
- creators: "Find, inspect and unlock creators",
509
- campaigns: "Create campaigns and follow their outreach",
674
+ creators: "Find, inspect and unlock creators, and find more like one",
675
+ campaigns: "Create, change and follow campaigns and the creators in them",
510
676
  contacts: "Reveal creator email addresses",
511
677
  emails: "Send outreach emails",
512
- conversations: "Read email threads with creators"
678
+ conversations: "Read email threads with creators and record their replies",
679
+ searches: "Read past searches and their results again"
513
680
  };
514
681
  function forCli(text, operations2) {
515
682
  return operations2.reduce(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "creatorriver",
3
- "version": "0.2.1",
4
- "description": "Creator River CLI: find creators, unlock contacts and send outreach from your terminal or AI agent",
3
+ "version": "0.3.0",
4
+ "description": "Creator River CLI: search 1.8M+ YouTube, TikTok and Instagram creators, every one with a contact email, and run outreach from your terminal or AI agent",
5
5
  "keywords": [
6
6
  "creator-river",
7
7
  "influencer-marketing",