Prerequisites
1. Install the SDK
If you haven’t already, add ShortKit to your project. See Installation for full details and troubleshooting.- Swift
- Kotlin
- Flutter
- React Native
- Expo
- Web
In Xcode, go to File > Add Package Dependencies and enter:Select the
ShortKitSDK product and add it to your app target.2. Display the feed
Every new account is seeded with demo videos, so your feed has content right away. Create a new view (or add to an existing one) and pass your publishable key:- SwiftUI
- UIKit
- Kotlin
- Flutter
- React Native
- Expo
- Web
FeedScreen.swift
FeedScreen() to your app’s navigation or set it as your root view.Adding your own content
The demo videos are there to get you started. When you’re ready to add your own content, you have three options:- Portal upload. Go to Content in the admin portal and upload video files directly.
- Server-side import. Use the Import API to bulk import from URLs (S3, GCS, your CDN, or even TikTok).
- Direct upload. Use the Upload API to get signed URLs for client-side or server-side file uploads.
Next steps
Now that you have a working feed with demo content, here’s the typical path forward:- Upload your own content. Replace the demo videos with your own. You can upload through the portal, import from URLs (including TikTok), or upload directly from your server or client app.
- Build an overlay. Add your own UI on top of the video player: titles, like buttons, share sheets, author info. See Overlays.
- Configure the feed. Adjust feed height, mute behavior, and feed source. See Configuration.
- Identify users. Link feed activity to your logged-in users with
setUserIdso analytics and future recommendations are per-user. See Identity. - Track engagement. Query watch time, completion rates, and custom events. See Analytics.