Render Tutorials
Stock research: from flaky to reliable

Install the SDK

⏱ 6 min

Continue in the same workshop-demo fork you cloned and deployed in Baseline: Deploy on Render. You will add task-run code there, push to GitHub, and redeploy from that repo.

Starting point in your fork

At this point your tree should still match the baseline:

  • tasks/src/search.ts exports searchOne as a regular async function.
  • tasks/src/research.ts uses await searchOne(...) inside Promise.all.
  • tasks/package.json has no @renderinc/sdk yet.

Open the clone on disk (cd workshop-demo if that is your folder name).

Install @renderinc/sdk in tasks/

Terminal
$cd tasks
$npm install @renderinc/sdk@^0.5.1
added N packages
$npm run build
Build succeeded

Confirm package.json lists @renderinc/sdk under dependencies.

What you get

  • task from the Render SDK: registers a function the task service runner executes.
  • Later, Render from @renderinc/sdk on the server to trigger runs with startTask and getTaskRun.

tasks/tsconfig.json uses "rootDir": "..", so compiled output lands under tasks/dist/tasks/src/.

What you learned

  • Stay in your workshop-demo fork; no second repository
  • Install @renderinc/sdk in tasks/ only for now
  • npm run build in tasks/ should pass before you change search.ts