StoicBuilder

HandbookII the ForumThird-party services and SDKs

IIthe Forum, The shape of an app

Third-party services and SDKs

1 min readUpdated 28 November

In plain words

A third-party service, such as Stripe, Resend or OpenAI, does one job for your app through its API, and an SDK is the ready-made code that makes calling it easier.

Where you see it

Lines like import Stripe from "stripe" or import { Resend } from "resend", each with a key in your environment variables and a dashboard you sign in to. Every one is a company your app now depends on.

app/api/checkout/route.tsserver
const session = await stripe.checkout.sessions.create({ mode: "payment", line_items: [{ price: priceId, quantity: 1 }], success_url: `${origin}/thanks`,});return Response.json({ url: session.url });
The SDK turns one function call into a request to Stripe, with your secret key attached.

What goes wrong

  1. Launching with the test key

    Stripe keys starting sk_test_ never move real money; sk_live_ keys do. Mix them up and you either earn nothing or charge real cards while testing.

  2. No plan for when the service is down

    Every outside service has outages. If the email provider fails, sign-up shouldn't fail with it: catch the error, log it and carry on.

  3. Code written for an older version of the SDK

    An agent's memory of an SDK can be a year or two out of date, so methods turn out missing or renamed. Check the version in package.json against the docs you're reading.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
List every third-party service this app uses, what it does, which environment variables it needs and whether each key is test or live. Wrap each call so an outage shows a friendly message instead of crashing the page.

Quick check

Sign in to earn +10 XP for it

Payments worked perfectly in testing, but after launch no real money is arriving. What do you check first?

Got a prompt that touches Third-party services and SDKs?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.