Developer relations builds the path from a developer's first visit to a working app. A quickstart that works for 4 in 5 new developers instead of 2 in 5 does what doubling the traffic does.
Switch on one fix at a time and watch 10,000 monthly visitors flow down to active developers. Then switch on two. Then we build, piece by piece, the quickstart, the error message, the sample app, the metrics and the feedback loop behind each fix.
You need a little Python and percentages. We build the rest from zero.
Part of the Day in the Life series: what one role builds, and the skills it needs. Its measuring tools come from metric design, the metrics ladder and experiment design.
Illustrative toy. Base rates: 8% of visitors sign up. 40% of signups make a first successful call within 7 days. 50% of those are still active in week 4. The quickstart fix lifts 40% to 80%. Faster help lifts 50% to 70%.
Chapter 0
Time a stranger's first ten minutes with your API, and find the job that removes the minutes
A startup ships a fast, clean API. Six months later, 47 developers use it. The docs are an auto-generated reference page. The first call fails with "400 Bad Request". Nobody on the team has tried the product as a stranger.
Developer relations (DevRel) is the engineering job that closes this gap. It has two lanes. Outbound, it builds what developers touch first: docs, quickstarts, SDKs, sample apps. Inbound, it carries what developers say back to the product team as ranked, counted problems.
The first number to watch is time to first call (TTFC): the minutes from "I want to try this" to the first successful response. Every minute of friction is a chance to quit.
Each bar is one step of a new developer's first session. Switch on a fix and watch its bar shrink and the clock fall.
Illustrative minutes for one developer. Measure your own with the test below.
Work it with every fix off: 3 + 4 + 6 + 2 + 8 + 1 = 24 minutes. With all five on: 1 + 0.5 + 1 + 0.5 + 1 + 1 = 5 minutes. No step got smarter. Each fix removes a reason to stop.
Chapter 1
Follow one group of developers through each step, and see why the step rates multiply
Take the developers who visit your docs this month. Some sign up. Some of those make a first successful call. Some of those still use the API four weeks later. Each step keeps a share of the step before. This chain is the developer funnel.
Name the parts. Call the visitors V and the share of them who sign up r1. Call the share of signups who make a first call within 7 days r2. Call the share of those still active in week 4 r3. The active developers are A.
A equals V times r-one times r-two times r-three.
Start with V visitors. Keep the share r-one, then the share r-two of what is left, then r-three. What remains is A.
With made-up numbers: V = 10,000, r-one = 0.08, r-two = 0.40, r-three = 0.50. A = 10,000 × 0.08 × 0.40 × 0.50 = 160. Only 1.6% of visitors become active developers.
Blue bars are developers left after each step. Raise one rate and every bar below it grows.
Illustrative rates on 10,000 visitors.
Because the rates multiply, a step with a low rate holds the most room. Raise r-one by 10 points, from 8% to 18%, and A becomes 360. Raise every step by 10 points and A becomes 10,000 × 0.18 × 0.50 × 0.60 = 540.
Chapter 2
Sort docs by the reader's need, and count why each extra quickstart step costs readers
A team documents every endpoint. Developers still call the docs bad. The docs answer "what exists" and never "how do I start". The Diátaxis framework, by Daniele Procida, splits docs into four kinds by what the reader needs.
| Kind | The reader wants | Example |
|---|---|---|
| Tutorial | to learn by doing | "Build a support chatbot" |
| How-to guide | to solve one problem | "Handle rate limits" |
| Reference | exact facts | every parameter of one endpoint |
| Explanation | to understand why | "How the API counts tokens" |
The quickstart is the shortest tutorial: install, set the key, make one call, see the output. Why keep it short? Say each step works for a new developer with chance p, the steps fail on their own, and there are n steps. Call the chance to finish F.
F equals p to the n.
Each step keeps the share p of the developers who reached it. After n steps, multiply p by itself n times. That is F.
With made-up numbers: n = 8 steps at p = 0.90 gives F = 0.43. Three steps at p = 0.95 gives F = 0.86. Fewer, clearer steps double the finishers.
Each column is a step. Blue is the developers still going; red is those who stopped at that step. Change the steps and their clarity.
Illustrative. Real steps do not fail on their own: one bad step (a wrong version) can stop everyone after it.
A snippet that worked last month can break after an SDK release. Docs as code stops that: the docs live in Git, and every code block is cut from a test file that runs in CI. When the API changes, the test fails before a reader does.
Chapter 3
Wrap the raw API so the common case is one call, and write errors that fix themselves
The raw API says: send a POST with these headers and this JSON body. An SDK (software development kit) is a library that turns that into one function call. It handles the key, the JSON, the retries and the errors, so every developer does not write them again.
| Decision | Good default | Why |
|---|---|---|
| API key | read it from an environment variable | the first call needs no edits |
| Retries | retry 429 and 5xx with growing waits | 429 means "too many requests, try later"; 400 never succeeds on retry |
| Types | typed response objects | the editor shows the fields |
| Pages | an iterator over all results | no cursor code by hand |
Some developers hit an error in their first session. The message decides whether they fix it alone or file a support ticket. Call the new developers each week N, the share who hit an error h, and the share who fix it from the message alone f. Call the weekly tickets T.
T equals N times h times one minus f.
Take the N new developers. Keep the share h who hit an error. Of those, the share 1 − f who are stuck file tickets. That is T.
With made-up numbers: N = 2,000 and h = 0.30. "400 Bad Request" lets f = 0.2 fix it, so T = 480. Name the field and the fix, f = 0.85, and T = 90.
Pick a message. The bar shows the weekly tickets it causes. Drag how often developers hit it.
Illustrative: 2,000 new developers a week; we made up the fix-alone shares 0.2, 0.6 and 0.85 to show the shape.
Chapter 4
Build a sample a stranger can run cold, then stop it from rotting month by month
A sample app is a small, complete program that shows the API doing one real job, such as a chatbot or a PDF summary. A cookbook is a set of short recipes, each solving one problem. Both must run for a stranger with three commands and no hidden setup.
| Part | What it holds |
|---|---|
| README | what it does, the three commands, the output you should see |
| .env.example | every setting, each with a comment |
| Pinned versions | exact SDK and, for AI APIs, the exact model name |
| One test | a fake API response, so the sample checks itself in CI |
Why pin versions? Each month brings SDK releases. Say an unpinned sample breaks in a given month with chance b, and nobody runs it. Call the months since it last worked m, and the chance it still works S.
S equals one minus b, to the m.
Each month the sample survives with chance 1 − b. Multiply that by itself for each of the m unchecked months. That is S.
With made-up numbers: b = 0.15 and m = 12 gives S = 0.8512 = 0.14. Pinned, say b = 0.03, gives S = 0.69. A weekly CI run catches each break within days, so m stays near zero.
Each cell is a month. Red marks a release that breaks the sample. Green is working, red fill is broken. Switch on pinning and a weekly CI run.
Illustrative: b = 0.15 unpinned, 0.03 pinned. With CI, a break is fixed in the same month.
Chapter 5
Pick the event that means "this developer got value", then follow one cohort week by week
Page views and GitHub stars are easy to count and say little. The useful numbers follow developers. An activation event is the first action that shows real value. Here it is the first successful API call within 7 days of signup. The activation rate is the share of a cohort that reaches it.
Then ask who stays. Call the developers who signed up in one week the cohort, of size N0. Call the number of them who make at least one call in week w Aw. The week-w retention is Rw.
R-w equals A-w divided by N-zero.
Fix the cohort at signup. In week w, count how many of those same people made a call. Divide by N-zero.
With made-up numbers: N-zero = 800 signups, 320 activate, and A-4 = 160. Activation is 320 / 800 = 40%. R-4 = 160 / 800 = 20%.
Grey is the cohort before the new quickstart, green the cohort after. Drag the week and read both.
Illustrative curves for two cohorts of 800. Week 0 counts activated developers.
For time to first call, report the median (the middle value), not the mean. Five developers take 4, 5, 6 and 7 minutes, and one comes back after 3 days (4,320 minutes). The mean is 868 minutes. The median is 6.
Chapter 6
Split new signups between two quickstarts, then ask if the gap is bigger than the noise
You rewrote the quickstart and activation went up. Did the rewrite do it, or was it a good week? Run an A/B test: send each new signup at random to the old quickstart (A) or the new one (B). Random choice makes the two groups alike in every other way.
Call the activation rate in group A pA and in group B pB. The lift L is the gain as a share of A.
L equals p-B minus p-A, divided by p-A.
Subtract p-A from p-B to get the gain in points. Divide by p-A to get the gain as a share.
With made-up numbers: p-A = 160 / 400 = 0.40 and p-B = 188 / 400 = 0.47. The gain is 7 points, and L = 0.07 / 0.40 = 17.5%.
Is 7 points real? Each rate wobbles by chance. Call the developers in each group nA and nB. The standard error SE is the typical size of that chance wobble in the gap.
S-E equals the square root of: p-A times one minus p-A over n-A, plus p-B times one minus p-B over n-B.
For each group, multiply its rate by one minus its rate, and divide by its size. Add the two. Take the square root. A gap more than about 2 SE from zero is unlikely to be chance alone.
With the numbers above: 0.40 × 0.60 / 400 + 0.47 × 0.53 / 400 = 0.00122. SE = 0.035. The gap is 0.07, so 2.0 SE. The 95% range is 0.07 ± 1.96 × 0.035: 0.1 to 13.9 points. Real, but barely.
The dot is the measured gap. The bar is its 95% range. Grow the groups and watch the bar shrink past zero.
p-A is fixed at 40%. The range is gap ± 1.96 SE, the usual normal approximation. Planning sample sizes is in experiment design.
Chapter 7
Turn scattered complaints into a ranked list the product team acts on, then tell the reporters
Feedback arrives in a forum, GitHub issues, support tickets and talks after a meetup. Most of it is vague: "auth is broken". The inbound lane turns it into product work in five steps.
To rank, the RICE score from Intercom works well. Call the developers it affects per quarter the reach R. Call the effect on each the impact I: 3 massive, 2 high, 1 medium, 0.5 low, 0.25 minimal. Call how sure you are the confidence C: 100%, 80% or 50%. Call the person-months of work the effort E.
The score equals R times I times C, divided by E.
Multiply how many developers it touches, how much it helps each, and how sure you are. Divide by the work. Sort by the result.
With made-up numbers: streaming disconnects reach R = 900, I = 3, C = 0.8, E = 2. Score = 900 × 3 × 0.8 / 2 = 1,080. A missing pagination guide scores 600 × 1 × 1 / 0.5 = 1,200, so the small docs fix goes first.
Five items from one month. Pick how to rank them and watch the order change.
Illustrative items and numbers. The RICE scales are Intercom's (Sean McBride, 2018).
Community health uses the same counting. Jakob Nielsen's 90-9-1 rule says most members only read: about 90% read, 9% post now and then, 1% post most of the content. So track the answer rate, the share of questions that get a working answer, and the hours to that answer.
Chapter 8
Turn every knob from this lesson at once, and see which fix your funnel needs most
Here 1,000 new signups walk four stages. Each stage uses one chapter's knob. The quickstart keeps pn with p = 0.93. An error stops 30% of them, and the message and the help time decide who comes back. A broken sample loses half of those who meet it. Then 60% of the rest stay to week 4.
Set the knobs, then press Run. Dots flow through the stages; red dots leave. The read-out names the leakiest stage.
Illustrative model. Stay-after-waiting shares: 1 h 90%, 4 h 75%, 12 h 55%, 24 h 40%, 72 h 20%. Sample works: unpinned 14%, pinned 69%, with CI 97%.
Work the default: 0.937 = 0.60 finish, so 602 remain. Errors: 0.30 × 0.40 × 0.45 = 5.4% leave, so 569. The pinned sample works for 69%, and half of the rest leave, so 481. Week 4 keeps 60%: about 289 active developers.
A new feature gets one first impression. The launch checklist makes every touchpoint ready before the announcement.
| When | Ready |
|---|---|
| Two weeks before | reference, quickstart, how-to guide, migration guide if behaviour changes |
| One week before | SDKs released with the feature, samples updated and green in CI |
| Day before | support briefed on likely questions; you ran the quickstart cold |
| Launch day | changelog entry, announcement post, someone watching the forum |
A changelog groups changes as Added, Changed, Deprecated, Removed, Fixed and Security (the Keep a Changelog convention). A breaking change gets a migration guide with before-and-after code and a removal date.
Chapter 9
Keep the terms, the numbers, the checklist and the code in one place
A DevRel engineer builds the path to a first call, keeps it working, and measures it on one cohort. The inbound lane turns what developers say into a ranked list. Every number on this page is illustrative; measure your own.
| Term | Meaning | Example here |
|---|---|---|
| Time to first call | minutes from "try it" to the first successful response | 24 min, then 5 min |
| Funnel | A = V × r1 × r2 × r3 | 10,000 visitors, 160 active |
| Quickstart finish | F = p to the n | 0.43 at 8 steps, 0.86 at 3 |
| Tickets | T = N × h × (1 − f) | 480, then 90 a week |
| Sample decay | S = (1 − b) to the m | 0.14 after a year unpinned |
| Retention | R-w = A-w / N-zero, one cohort | 160 / 800 = 20% |
| Lift, SE | gain over A; typical chance wobble | 17.5%; 2.0 SE |
| RICE | R × I × C / E | 1,200 beats 1,080 |
| Artifact | Job | Measure |
|---|---|---|
| Talk or workshop | show one real build live | attendees who finish the build |
| Blog post | solve one problem, code in the first screen | signups and first calls from the post |
| Partner integration | meet developers in the tool they use | activations through the integration |
| Community program | help the 1% who answer others | answer rate, hours to answer |
pythonfrom statistics import median def cohort_report(devs): # devs: list of dicts for ONE signup week: # {"first_call_min": float | None, "calls_by_week": list[int]} n0 = len(devs) ttfc = [d["first_call_min"] for d in devs if d["first_call_min"] is not None] activated = sum(1 for t in ttfc if t <= 7 * 24 * 60) week4 = sum(1 for d in devs if len(d["calls_by_week"]) > 4 and d["calls_by_week"][4] > 0) return { "activation_rate": activated / n0, "median_ttfc_min": median(ttfc) if ttfc else None, "week4_retention": week4 / n0, # R_4 = A_4 / N_0 } def ab_gap(xa, na, xb, nb): pa, pb = xa / na, xb / nb se = (pa * (1 - pa) / na + pb * (1 - pb) / nb) ** 0.5 gap = pb - pa return gap, (gap - 1.96 * se, gap + 1.96 * se) def rice(reach, impact, confidence, effort): return reach * impact * confidence / effort print(ab_gap(160, 400, 188, 400)) # (0.07, (0.0015, 0.1385)) after rounding print(rice(600, 1, 1.0, 0.5)) # 1200.0
Now press Present or Teach and explain the funnel from memory: the three rates, why they multiply, and how you would prove a fix worked. Then go back to the hero and say why the quickstart fix equals doubling traffic.