lurka

agent
Security Audit
Warn
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 12 GitHub stars
Code Warn
  • process.env — Environment variable access in cargo/deploy/deployFromApp.ts
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Find buyers engaged with your posts. Paste a post on X or LinkedIn and see how many of the people who engaged could buy.

README.md

Lurka

cargo-ai cli
License: MIT

Find buyers engaged with your posts. Paste a post on X or LinkedIn and see how many of the people who engaged with it could actually buy from you.

lurka.ai · This week's leaderboard · Sorted by TypeSafe · Powered by Cargo

Lurka's home page: the paste box on the left, a real answer on the right with 34 of 4,753 people who engaged marked as could buy

What it does

  • A free public answer. Lurka reads everyone who engaged with a post: replies, reposts and quotes on X (likes are private there), reactions and comments on LinkedIn. It sorts each person with Jev, TypeSafe's model, sets aside creators, bots and paid promoters, and answers with two numbers: how many engaged, and how many could buy. It shows the buyers as made-up faces, everyone else by group, and a paraphrase of what each buyer said. It never names anyone, and needs no sign-up.
  • Sign in with Cargo to see who they are. Every post you check becomes a small board in your own Cargo workspace: people warmest first, the companies they name, and how to reach them (a reply or DM on X, a LinkedIn message, a work email or phone number when one is found).
  • A share card made for X, and a weekly leaderboard of the posts that reached the most buyers.
  • A reply bot. Reply @lurka_ai who could buy? under any post and the answer comes back in the thread.
  • A command for coding agents. npx lurka-ai check <post> runs the same check from Claude Code, Cursor or Codex, on your own Cargo account. See Use it in your coding agent.

Lurka never posts, likes or messages anyone for you.

Quick start

npm install
cp .env.example .env.local
npm run dev    # http://localhost:3000

In .env.local, set at least:

Variable Value
APP_BASE_URL http://localhost:3000
AUTH_SESSION_SECRET openssl rand -hex 32
CARGO_API_TOKEN A Cargo API token. It reads posts for public answers.
LURKA_LOCAL_SIGN_IN true, to sign in locally as that token's workspace instead of through Cargo.

Results are kept in the token's workspace, in Cargo meta, locally as in production; nothing else to set up. The workspace behind the token needs an X connector; TypeSafe and OpenAI run on Cargo's managed connectors.

Configuration

Variable What it does Default
APP_BASE_URL Where the app is served. In production, public HTTPS: Cargo fetches <APP_BASE_URL>/auth/client.json to sign people in.
AUTH_SESSION_SECRET Seals the session cookie. Changing it signs everyone out.
AUTH_REDIRECT_PROXY_SECRET Lets Vercel previews sign in through production, since Cargo cannot read a preview behind Vercel's login. The same value, at least 32 characters, on Production and Preview, with APP_BASE_URL (production's address) on Preview too. unset
CARGO_API_TOKEN The hosted workspace that reads posts for public answers, on its credits, and keeps results in its Cargo meta. Never used for anyone signed in.
CARGO_WORKSPACE_UUID The hosted workspace, when the token reaches more than one.
PUBLIC_DAILY_READ_BUDGET New public checks started per UTC day. Past it, posts wait in line for the next day; nobody is refused. 600
PUBLIC_VISITOR_DAILY_CAP New public checks one visitor can start per UTC day. 5
PUBLIC_CONCURRENT_READS Public checks running at once. The rest wait in line and their page shows their place. 6
LURKA_STATS_KEY Opens /stats/<key>, the daily share-loop counts (checks, shares, unlocks). At least 16 characters.
LURKA_LOCAL_SIGN_IN Development only: sign in as the token's workspace. Ignored in production and on any host but this machine. false
CARGO_API_URL, CARGO_AUTH_ISSUER Cargo's API and OAuth server. https://api.getcargo.io
NEXT_PUBLIC_GA_MEASUREMENT_ID Google Analytics 4 measurement ID (G-…). Unset, no analytics load. unset
GOOGLE_SITE_VERIFICATION Google Search Console's HTML tag token for this deployment's address (the content value only), to verify the site. Unset, no tag. unset
LURKA_AUTOPOST_ENABLED Autopost: reads a few recent launches a day and posts the ones with buyers, with a link to each answer, from the bot account. false
LURKA_AUTOPOST_DRY_RUN Autopost logs what it would read and post, and spends nothing, unless this is false. true
LURKA_AUTOPOST_DAILY_READS Launches autopost reads per UTC day, about 11 to 25 hosted credits each. Apart from the visitor cap. 5
LURKA_AUTOPOST_DAILY_POSTS Autopost launch posts per UTC day, one per hour at most. 3
LURKA_AUTOPOST_DISCOVER_HOUR, LURKA_AUTOPOST_POST_HOUR UTC hours from which autopost searches, then posts. 14, 16
LURKA_AUTOPOST_DIGEST, LURKA_AUTOPOST_DIGEST_HOUR true adds one daily post listing yesterday's reads with buyers, at that UTC hour. false, 15
LURKA_SEED_ENABLED Seed reads: once a day, reads the most engaged launch of each listed account so its answer page exists before anyone asks. Posts nothing on X. false
LURKA_SEED_HANDLES The X handles seed reads work through, comma or whitespace separated. Set only in the environment.
LURKA_SEED_DAILY_READS Seed reads started per UTC day, about 11 to 25 hosted credits each, plus one X timeline read and one small launch check per handle. They count against PUBLIC_DAILY_READ_BUDGET. 20
LURKA_SEED_HOUR UTC hour from which the day's seed reads run. 2

The reply bot and autopost share the bot account's variables: see docs/reply-bot.md and docs/autopost.md. Seed reads are in docs/seed-reads.md.

How it works

flowchart LR
  A[Post link] --> B[Read the post and<br/>everyone who engaged]
  B --> C[Jev sorts each person<br/>for role and fit]
  C --> D[Paid promoter check<br/>on likely buyers]
  D --> E[Counts and paraphrases:<br/>the public answer]
  E -->|Sign in with Cargo| F[Names, companies,<br/>emails, in your workspace]
  1. Read. The post and its reposters, replies and quotes, through Cargo's X connector: up to 5,000 people, writers first.
  2. Sort. Jev reads up to 500 people for a public answer (2,000 when signed in) for their role and how likely they are to buy what the author sells.
  3. Check. Likely buyers get a paid promoter check on their recent posts; anyone boosting several launches a week is set aside.
  4. Answer. A buyer scores at least 0.7 and is not set aside. Public answers get a paraphrase of what the top buyers said, never their words or names.

A public check takes about a minute and costs about 0.022 to 0.05 credits per person sorted. A huge post stops sorting after 8 minutes and answers from a sample, which the page says. Every call and threshold: docs/pipeline.md.

Use it in your coding agent

Paste this into Claude Code, Cursor or Codex:

Follow lurka.ai/skill.md to see who could buy from my last post on X.

The agent reads the skill and runs one command, which runs the same pipeline as the app, in your own Cargo workspace and on its credits:

npx lurka-ai check https://x.com/name/status/123          # reads who engaged, prints the cost, spends nothing on sorting
npx lurka-ai check https://x.com/name/status/123 --yes    # sorts everyone and prints who could buy, warmest first

It signs in with CARGO_API_TOKEN or the session of npx cargo-ai login. Every option, the output and the packaging: docs/cli.md.

Deploy

Lurka runs on Vercel.

  1. Import the repository as a Next.js project.
  2. Set the variables above for Production, with APP_BASE_URL on your domain.
  3. Point the domain at Vercel and keep deployment protection off it, since Cargo fetches /auth/client.json.
  4. To sign in on previews, set AUTH_REDIRECT_PROXY_SECRET on Production and Preview, and APP_BASE_URL on Preview with production's address: previews sign in through production and come back.

Checks run after the response with after(); the routes that start them ask for Vercel's longest request, 800 seconds. Every push to main deploys.

Project layout

Path What is there
src/app Routes: /, /p/[postId] and its share card, /leaderboard, /stats/[key], the signed-in app under /app, the bot's /api/bot/tick
src/product One folder per screen or component, built on @cargo-ai/ui
src/server Sign-in, server actions, the pipeline, public and workspace data, the result store, share images, the reply bot and autopost
src/lib Pure logic and every threshold (lurkaConfig.ts)
cargo/ The lurka_engagers model the app deploys into each user's workspace
docs/ The pipeline, storage, reply bot and autopost in detail
src/cli, packages/ The lurka command and the two npm packages it ships in (docs/cli.md)
public/skill.md, skill/, public/llms.txt What a coding agent reads to run the command

Checks

npm run ci   # lint, type-check, unit tests, Cargo project check, build, end-to-end tests

The end-to-end tests need Chromium once (npx playwright install chromium). They run on fixture posts with made-up people and never call Cargo. E2E_PORT runs them beside a dev server. Before changing anything, read CONTRIBUTING.md: it holds the code style, UI rules and public text rules, and npm run lint enforces them.

License

MIT. Built on Cargo.

Reviews (0)

No results found