Timeline data for social UI components
The Social Media Feed Generator produces fake timeline posts — users with avatars, post text, hashtags, engagement counts and optional images. It is built for developing social-platform feed components and demos so post cards, engagement bars and infinite scroll have realistic data before any backend exists.
How it works
You set a post count and an image ratio. For each post the generator picks a user (pairing a handle, display name and a seeded avatar URL, with a verified badge on about one in five), selects post text from a pool of natural-sounding status updates, and attaches zero to two distinct hashtags. Engagement is generated coherently: a like count is produced first, weighted so most posts get modest engagement and a few go large, then reposts and comments are computed as smaller fractions of that like count — mirroring how real posts always draw more likes than shares or replies.
The image ratio is treated as a probability per post; posts that clear it get a seeded placeholder image URL while the rest carry a null imageUrl. Timestamps land within the last three days of a fixed base date. A seeded pseudo-random source keeps a configuration stable between renders, and the output is one object with a posts array shaped the way a social card component expects.
Tips and example
- Drop the image ratio to zero to test a text-only timeline, or raise it to test an image-heavy grid layout.
- Raise the post count to exercise infinite scroll, lazy avatar loading and engagement-count formatting (for example abbreviating thousands).
- Because reposts and comments are derived from likes, the numbers stay believable and you can build and test “sort by engagement” against the data.
- Verified badges appear on roughly one user in five, so you can build and test verified-badge rendering without editing the sample data.