Customers & growth · Developer marketing

Starter templates

BOILERPLATEPATTERNSYOUR APP

Use it when

Developers want to start their own project on your product without wiring up setup, config and deployment by hand, and you need a boilerplate they can copy and extend.

Skip it when

  • Developers need to see a complete, deployable reference architecture before they build. Use Sample application framework.
  • Developers need client libraries for your API in several languages. Use Code generation strategy, which this feeds.
  • Developers are moving an existing integration to a new version that breaks their code. Use Migration guide framework.
  • New developers need a guided path from setup to a first working result. Use Tutorial design framework, which can start from this template.

What to apply first and what to use instead are listed below.

Approaches

Repository template

The template is a repository marked as a template on the code host, and developers copy it into a new repository of their own.

  • Pro Developers need no extra tooling, and one action gives them their own copy.
  • Con Copies keep no link to the template, so later fixes never reach them, and names and settings are edited by hand.

Command-line generator

Developers run a command with the template's short name, and the tool copies the files and swaps in the project name and options they pass.

  • Pro Names and options are set at creation, and versioned template packages install from a registry.
  • Con It needs a config file and packaging, and templates can run code at creation, so developers must trust the source.

One-click deploy

A deploy button copies the template into the developer's account and deploys it to a host in one flow, asking for each required setting.

  • Pro Developers have a running project within minutes of finding the template.
  • Con It ties the template to one host, and secret values must be typed in by the developer each time.

Inputs

  • Target stack
    The languages, frameworks and hosts your developers use, ranked by share, from signup data or a developer survey.
  • Starting use cases
    The two or three kinds of project developers most often begin with your product, from support tickets and forum questions over the last 90 days.
  • Baseline project
    A small project that builds and runs on the current release, with your SDK installed and your recommended configuration.
  • Required settings
    Every key, service ID and environment variable the project needs, with where the developer gets each value.
  • Distribution channel
    The code host, package registry or deploy host where developers will find and copy the template.

Steps

  1. Pick one starting use case and stack per template, and strip the baseline project to the files that use case needs, keeping to well-known dependencies.
  2. Move every credential and service ID into environment variables, add an example env file that lists each one with a comment on how to get it, and keep the real env file out of the repository.
  3. Add the creation method for your channel, such as marking the repository as a template, writing the generator config with a short name and the name to replace, or building a deploy button that lists the required variables.
  4. Write the readme with prerequisites, the command or button that creates a project, the expected result of the first run and the first place to extend it.
  5. Add an automated check that creates a fresh project from the template, builds it and runs its tests on every product release.
  6. Publish to the channel with a license, name an owner, and update dependencies on a set schedule, letting the check confirm each update.

Output

A published starter template for each use case and stack, with a register entry that tracks how developers create from it and when it last passed.

  • Use case and stack
  • Creation method (repository template, generator command or deploy button)
  • Required environment variables and where to get them
  • Readme with prerequisites and first-run result
  • Product and dependency versions
  • Last passing creation check
  • Owner and license
  • Projects created from it

Done when

  • A fresh project from the template builds and runs on the current release once the listed environment variables are filled in.
  • The template holds no real credential or env file, and every required variable is listed with how to get it.
  • The readme states the prerequisites, the creation command or button and the expected first-run result.
  • An automated check creates, builds and tests a new project from the template on each product release.
  • Each template names an owner and a license.

Measure

Each month, track projects created from each template, such as copies, generator installs or deploy button runs, and how many reach a first successful API call within seven days. Compare with developers who start without a template over the same months. A template works when its projects reach that first call faster or more often than your own baseline. Retire templates that few developers use.

Hypothetical example

Relaywave sells a messaging API. Signup data show most new developers use TypeScript and first build a notification service. The team strips its internal demo to a small server that sends one message, moves the API key and sender ID into environment variables and adds an example env file. It marks the repository as a template and adds a deploy button that asks for both values. A nightly job creates a fresh copy, builds it and sends a test message. In the first quarter, 900 projects are created from the template, and 70 percent send a first message within a week, against 45 percent of developers who start from scratch.

Common mistakes

  • Shipping the internal demo as it is, with extra features and dependencies. Strip it to what the starting use case needs.
  • Hard-coding keys or committing a real env file. Use environment variables with an example file, and never put secret values in a deploy link.
  • Letting the template fall behind the product. Create and build a fresh project from it in an automated check on each release.
  • Expecting fixes to reach projects already created. Copies keep no link to the template, so note template changes in your changelog.

Sources

Show all 6 sources

By company stage

  1. Pre-IdeaNot applicableThere is no product or developer audience to serve yet.
  2. IdeaUsefulBoilerplate code helps developers try a first product quickly and eases early adoption.
  3. Early StartupUsefulTemplates can lower activation friction as a channel is tested, if developers are the buyers.
  4. StartupUsefulThey help scale developer adoption and support a second channel such as community.
  5. GrowthUsefulTemplates for each segment and stack support wider developer adoption.
  6. ScaleUsefulMultiple products need maintained templates, which help but are not blocking.
  7. EnterpriseUsefulLarge platforms offer templates for ecosystems, which adds value but is routine.

Apply first

Nothing. You can start here.

Use instead

  • Sample application framework

    use starter templates when developers want a boilerplate to begin their own project; use a sample application when they need to see a complete, deployable reference architecture.

  • Code generation strategy

    Developers need client libraries for your API in several languages. Use Code generation strategy, which this feeds.

  • Migration guide framework

    Developers are moving an existing integration to a new version that breaks their code. Use Migration guide framework.

  • Tutorial design framework

    New developers need a guided path from setup to a first working result. Use Tutorial design framework, which can start from this template.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account