Skip to main content
T

dsh-tapline

taplinedata/dsh-tapline

A tapline search provider for the built-in web_search tool (Brave Search results through the Tapline API), plus `tapline_*` tools for public data from YouTube, Google Maps, TikTok, Instagram, X and LinkedIn. Needs TAPLINE_API_KEY (environment or credentials file); without it nothing changes.

Install

dsh plugin --profile web add github:taplinedata/dsh-tapline

README

Tapline

Tapline for DeepSeek Harness

Web search and public platform data for DeepSeek Harness through the Tapline API.

The plugin adds two things:

  • A tapline search provider for Harness's built-in web_search tool. It returns Brave Search results through GET /v1/brave-search/search.
  • Six tools that read public data, one for each platform:
ToolPlatformExamples of endpoints
tapline_youtubeYouTubesearch, video metadata, subtitles, comments, channels, playlists
tapline_google_mapsGoogle Mapsplace search, place details, reviews, photos, directions
tapline_tiktokTikTokprofiles, videos, transcripts, comments, hashtag search
tapline_instagramInstagramprofiles, posts, reels, comments
tapline_xXprofiles, user posts, single posts, communities, trends
tapline_linkedinLinkedInprofiles, companies, posts, jobs

Each tool takes an endpoint (one of that platform's GET paths) and its params, and returns the JSON body without its empty fields. The model gets at most 20,000 characters per call: for a list, the first whole items that fit; otherwise the start of the JSON. A note says what was cut. The tool description lists every endpoint with its parameters. The endpoint reference has the full list and the fields.

Off until you set a key

Without TAPLINE_API_KEY, the plugin changes nothing: the tapline_* tools are not offered to the model, and web_search keeps the provider it has today. The plugin does not change Harness's default search provider; you select Tapline for web_search yourself (see below).

Install

Requires DeepSeek Harness 0.2.2-rc.5 or later (below 0.4) and Node.js 22.12 or later. Install into the profile you use, then restart Harness:

npx @deepseek-ai/dsh plugin --profile web add github:TaplineData/dsh-tapline
npx @deepseek-ai/dsh web

Profiles are separate: web, tui and headless each need their own install. Replace web with the profile you run.

Set the key

Get a key at tapline.sh. Then do one of these:

  • Set TAPLINE_API_KEY in the environment Harness starts in:

    TAPLINE_API_KEY=... npx @deepseek-ai/dsh web
    
  • Store it in Harness's credentials file, $DSH_HOME/.credentials.yaml (keep it at chmod 600):

    version: 1
    refs:
      TAPLINE_API_KEY: <your key>
    

The key is read on every call, so a stored key applies without a restart.

Each call spends credits. The endpoint reference lists the cost of each call. The balance check (/v1/account/credits) is free.

With the key set, select the tapline provider. Add this to your profile's cordis.patch.yml ($DSH_HOME/profiles/<profile>/cordis.patch.yml):

- id: web
  config:
    searchProvider: tapline
    fetchProvider: http

A config patch replaces the row's whole config object, so keep any other field your profile sets on web (the shipped profiles set fetchProvider: http). DSH_WEB_SEARCH_PROVIDER=tapline in the environment does the same.

To go back, remove the searchProvider line, or the key.

Privacy

Search queries and tool parameters are sent to Tapline. Every request sends the key in the X-API-Key header and identifies the plugin with the user agent dsh-tapline/<version>. Results are external content, and Harness marks search results as untrusted data for the model.

Troubleshooting

SymptomWhat to check
No tapline_* toolsNo key was found. Set TAPLINE_API_KEY in the environment or the credentials file.
WEB_PROVIDER_CONFIGURED_MISSINGThe plugin is not installed in this profile. Install it into the profile you run, and restart Harness.
web_search still uses another providerThe web row does not set searchProvider: tapline. Check the composed profile with npx @deepseek-ai/dsh --profile web --dump-config.
Tapline HTTP 401The key is wrong or revoked.
Tapline HTTP 402The account has no credits left.

Development

npm ci
npm test                                  # offline: real Harness tool runtime and web seam, mocked API
TAPLINE_API_KEY=... npm run test:live     # real Tapline API; spends credits

The code is plain JavaScript and needs no build step.

Contact

hello@tapline.sh

License

MIT

Related plugins