How dylgrave/tiktok-story-viewer works
Storyroom is a web viewer for public TikTok Stories, profile content, and LIVE broadcasts. The main workflow is username entry, Story lookup, then playback; profile exploration and LIVE viewing are parallel capabilities. Server routes apply validation and rate limits before provider-backed services retrieve and normalize data. The README documents encrypted personal API-key sessions and server-side media handles. Some route and UI wiring is documented or indexed but not excerpted, so those links are marked unverified rather than asserted as direct calls.
Main entry points: TikTokStorySearch.tsx Storyroom search · story/route.ts Story route · profile/route.ts Profile route · useStorySearch.ts Search state
Components 26
Search and playback
- Storyroom search
src/components/tiktok-story-search/TikTokStorySearch.tsx - Search state
src/components/tiktok-story-search/useStorySearch.ts - Story player
src/components/story-viewer/StoryViewer.tsx - Shared audio
src/components/story-viewer/useStoryAudio.ts - Story icons
src/components/story-icons/StoryIcon.tsx - Interface copy
src/lib/copy.ts
Profile exploration
- Profile explorer
src/components/profile-explorer/ProfileExplorer.tsx - Profile loading state
src/components/profile-explorer/useProfileExplorer.ts - Empty profile view
src/components/profile-explorer/ProfileExplorerEmpty.tsx
Application services
- Profile route
src/app/api/tiktok/profile/route.ts - Profile service
src/services/tiktok-profile/profile-service.ts - Story route
src/app/api/tiktok/story/route.ts - Story cache
src/services/tiktok/story-service.ts - LIVE status route
src/app/api/tiktok/live/route.ts - Username validation
src/lib/username.ts - Lookup limiting
src/lib/rate-limit.ts
Konbini integration
- Profile retrieval
src/services/konbini/profile-service.ts - Profile normalization
src/services/konbini/normalize.ts - Story provider
src/services/konbini/story-provider.ts - Provider client
src/services/konbini/client.ts - LIVE service
src/services/konbini/live.ts
Credentials and media
- Media route
src/app/api/tiktok/media/route.ts - Media handles
src/services/konbini/media.ts - API key settings
src/components/tiktok-story-search/ApiKeySettings.tsx - Key settings route
src/app/api/settings/key/route.ts
Other components
- Viewer
Connections 26
- Viewer → Storyroom search: enters username
src/components/tiktok-story-search/TikTokStorySearch.tsx - Storyroom search → Search state: starts search
src/components/tiktok-story-search/TikTokStorySearch.tsx - Search state → Username validation: validates input
src/components/tiktok-story-search/useStorySearch.ts - Search state → Story route: requests Stories
- Story route → Username validation: validates input
src/app/api/tiktok/story/route.ts - Story route → Lookup limiting: checks allowance
src/app/api/tiktok/story/route.ts - Story route → Story cache: gets Stories
src/app/api/tiktok/story/route.ts - Story cache → Story provider: requests Stories
src/services/tiktok/story-service.ts - Story provider → Provider client: fetches provider data
src/services/konbini/story-provider.ts - Story route → Story player: supplies results
- Storyroom search → Story player: renders playback
src/components/tiktok-story-search/TikTokStorySearch.tsx - Storyroom search → Shared audio: shares audio state
src/components/tiktok-story-search/TikTokStorySearch.tsx - Storyroom search → Profile explorer: renders explorer
src/components/tiktok-story-search/TikTokStorySearch.tsx - Storyroom search → Empty profile view: renders empty view
src/components/tiktok-story-search/TikTokStorySearch.tsx - Profile explorer → Profile loading state: uses explorer state
src/components/profile-explorer/ProfileExplorer.tsx - Profile loading state → Profile route: loads sections
- Profile route → Username validation: validates input
src/app/api/tiktok/profile/route.ts - Profile route → Lookup limiting: checks allowance
src/app/api/tiktok/profile/route.ts - Profile route → Profile service: gets section
src/app/api/tiktok/profile/route.ts - Profile service → Profile retrieval: delegates retrieval
src/services/tiktok-profile/profile-service.ts - Profile retrieval → Provider client: fetches profile data
src/services/konbini/profile-service.ts - Profile retrieval → Profile normalization: normalizes records
src/services/konbini/profile-service.ts - LIVE status route → LIVE service: checks LIVE status
src/app/api/tiktok/live/route.ts - LIVE service → Provider client: fetches LIVE data
src/services/konbini/live.ts - Media route → Media handles: resolves media
src/app/api/tiktok/media/route.ts - API key settings → Key settings route: saves key
README.md