Check what you need, then choose how to install the Web SDK. Use this page if
you are adding Storyteller to a website for the first time.
You need:
A Storyteller API key. The key identifies your tenant: your organization's
Storyteller account and its content. Ask your Storyteller contact for a key,
or get in touch.
Published content in the same tenant: at least one Story, or a Clips
collection with published Clips.
An element on your page, such as a <div>, where the SDK can render a view.
The Storyteller Web Showcase is a Next.js app that uses the Web SDK. Many guides
link to its source code on GitHub. The repository is private.
To open the Showcase links:
Tell your Storyteller contact which GitHub account you want to use, and ask
them to give that account access.
Accept the GitHub invitation.
Sign in to GitHub with that account before you open a link.
Until your account has access, Showcase links return a 404 error. If a link
still returns 404, check that you accepted the invitation and that you are
signed in with the account that has access. If you still can't open the source,
contact [email protected].
{"slug": "getting-started-index", "page_title": "Before You Start", "page_url": "getting-started/", "canonical_url": "/web/getting-started/", "markdown": "# Before you start\n\n<!-- markdownlint-disable MD033 -->\n<span id=\"start-a-web-integration\"><\/span>\n\nCheck what you need, then choose how to install the Web SDK. Use this page if\nyou are adding Storyteller to a website for the first time.\n\nYou need:\n\n- A Storyteller API key. The key identifies your tenant: your organization's\n Storyteller account and its content. Ask your Storyteller contact for a key,\n or [get in touch](mailto:[email protected]).\n- Published content in the same tenant: at least one Story, or a Clips\n collection with published Clips.\n- An element on your page, such as a `<div>`, where the SDK can render a view.\n- To open the linked code examples, a GitHub account with\n [access to the Storyteller Web Showcase source](#showcase-source-access).\n\nThe examples use these placeholders. Replace them with your own values:\n\n- `demo-api-key`: your API key\n- `your-user-id`: the ID your site uses for the signed-in user\n- `category-id`: the ID of a Story Category\n- `collection-id`: the ID of a Clips collection\n\n## Choose an installation path\n\n<span id=\"script-tag\"><\/span>\n<span id=\"npm\"><\/span>\n<span id=\"react-or-nextjs\"><\/span>\n\nChoose the guide that matches how your site builds its JavaScript:\n\n- [Install with a script tag](script.md): your site has no JavaScript build\n step, so the SDK loads from the Storyteller CDN\n- [Install from npm](npm.md): a bundler, such as webpack or Vite, builds your\n JavaScript\n- [Use React or Next.js](react-nextjs.md): a React component renders the\n Storyteller container\n\n## Access the Storyteller Web Showcase source {#showcase-source-access}\n\nThe Storyteller Web Showcase is a Next.js app that uses the Web SDK. Many guides\nlink to its source code on GitHub. The repository is private.\n\nTo open the Showcase links:\n\n1. Tell your Storyteller contact which GitHub account you want to use, and ask\n them to give that account access.\n2. Accept the GitHub invitation.\n3. Sign in to GitHub with that account before you open a link.\n\nUntil your account has access, Showcase links return a 404 error. If a link\nstill returns 404, check that you accepted the invitation and that you are\nsigned in with the account that has access. If you still can't open the source,\ncontact [[email protected]](mailto:[email protected]).\n\n!!! abstract \"Resources\"\n\n - [Storyteller Web Showcase repository](https://github.com/getstoryteller/storyteller-showcase-web)\n - [Storyteller Web Showcase README](https://github.com/getstoryteller/storyteller-showcase-web/blob/11.0.0/README.md#L1)\n\n<span id=\"show-content\"><\/span>\n<span id=\"continue-your-integration\"><\/span>\n\n## Next steps\n\n- [Show your first Story row](../Quickstart.md)\n- [Choose a view](../views/index.md)\n- [Identify and personalize users](../Users.md)\n- [Control privacy and tracking](../PrivacyAndTracking.md)\n- [Customize themes](../Themes.md)\n- [Handle delegates and callbacks](../delegates/index.md)\n\n<!-- markdownlint-enable MD033 -->\n", "copy_markdown_include_header": false, "base_path": "", "ai_dir": "ai", "missing_payload_behavior": "empty"}