Skip to content

Caraway

v1.0

A photo-sharing social app for iOS and Android phones and tablets, in dark and light: see-through glass cards over a drawn graphite backdrop with a cyan glow, stories, a feed, explore, messages and profiles.

$199

Built in

What you get
  • Light and darkUses your theme colors
  • phone and tabletThe screens it is built for
  • Packages…
  • Code size…
  • Light on battery30 fps, idle when still
  • Pauses when hiddenOff-screen or other tab
  • Reduce motionCalm for people who ask

Checked on every change

Security checked Dec 3
  • Type checkTypeScript strict
  • Lint and formatESLint · Prettier
  • Tests and buildLight and dark screenshots
  • Security auditNo high or critical advisories
  • Package ageEvery version public 7+ days
  • Idle CPUUnder half a core at rest, ≤ 30 fps

Code

social-carawayReact Native
  • README.mdHow to run it, change it and ship it.
  • app.config.tsThe app's name, ids and platform settings.
  • package.jsonThe app's packages: Expo, React Native.
  • package-lock.jsonThe exact package versions npm ci installs.
  • tsconfig.jsonTypeScript settings: strict, typed routes.
  • .npmrcnpm settings: exact versions, no install scripts.
  • .gitignoreWhat git leaves out: packages, builds, keys.
  • images.d.tsLets TypeScript import the photos in assets/photos/ (Metro bundles them).
  • appThe screens, one file per route (Expo Router).
    • (tabs)The screens, one file per route (Expo Router).
      • _layout.tsxThe tabs: Home, Explore, Activity and Profile with Create between them.
      • activity.tsxActivity: likes, follows and comments on your posts, grouped by Today, This week and Earlier, with a filter (All, Likes, Follows, Comments) on a frosted track with a gliding pill.
      • explore.tsxExplore: a search field (people, places, captions and categories, live as you type), category chips with a gliding pick, creators to follow, then a grid of everyone's photos.
      • home.tsxHome: the wordmark with search and messages, the stories row, then the feed of posts on glass cards, newest first, ending with "You're all caught up".
      • profile.tsxYour profile: your username on top with Saved and Settings, then your photo, counts, bio and Edit profile, and your posts, reels and tagged photos (components/profile-view.tsx).
    • chatThe screens, one file per route (Expo Router).
      • [id].tsxA chat with one person (components/chat-view.tsx), clear of the keyboard.
    • postThe screens, one file per route (Expo Router).
      • [id].tsxA post on its own page: the photo (double tap to like, ··· for options), the author with Follow, the caption, who is tagged and the action row, then every comment, oldest first, with "Add a comment…" fixed at the bottom.
    • storyThe screens, one file per route (Expo Router).
      • [id].tsxThe story viewer: one person's frames on a big rounded photo card, with progress bars, their photo, name and time, and Close.
    • userThe screens, one file per route (Expo Router).
      • [id].tsxSomeone else's profile: Back with their username, their photo, counts and bio, Follow (the count ticks) and Message (opens your chat with them), and their posts, reels and the photos they're tagged in.
    • _layout.tsxThe root: loads the heading font, follows the phone's dark or light setting and stacks the screens, with the floating toast badge over all of them.
    • compose.tsxThe compose flow, opened from Create (Post, Reel or Story) or from a post's Edit: step 1 picks a photo from your recents, step 2 takes the caption, category, tags and place (a story only a line).
    • edit-profile.tsxEdit profile: your photo, then name, username, bio, place and website, each checked (a name, a 3-20 character username).
    • index.tsxThe welcome screen, the app's first route: the drawn backdrop with three photos fanned out on tilted glass cards and two badges floating in, then the Caraway wordmark, the promise and the two ways in (Create an account, I already have an account) rising one after another.
    • messages.tsxMessages: a search over your chats, the people active now (tap to chat), then every conversation, newest first, with its last line, time and an unread count that glows.
    • saved.tsxSaved: every post you bookmarked, as a photo grid (a tile opens the post, where the bookmark takes it out again).
    • settings.tsxSettings: your account (edit profile, email, saved posts), privacy switches, which notifications you get, the look (dark or light follows the phone) and the version, and Sign out, which asks first and then lands on Sign in, where Back can't return to the signed-in app.
    • sign-in.tsxSign in: email and password (with show/hide), Remember me, Forgot password, and the demo account to fill in with one tap.
    • sign-up.tsxSign up: name, username, email and password (with show/hide and an 8-character hint), then Sign up.
  • componentsThe parts the screens are built from.
    • artThe drawings, as code: no image files.
      • photo-art.tsxThe drawing a photo slot shows when it has no photo: the photo's two colors as a soft diagonal light with a lens ring in the middle, so a missing picture still looks made on purpose.
    • activity-row.tsxOne line in Activity: who (one photo, or two overlapping for "Maya and 126 others"), what they did and when, and at the end the post's thumbnail or, for a new follower you don't follow, Follow back.
    • auth-frame.tsxThe sign-in and sign-up screens' frame: the Caraway wordmark, a title and the form on a glass card over the drawn backdrop, scrolling clear of the keyboard.
    • avatar.tsxA person's round photo (their initial when there is no photo) with an optional story ring: cyan for a story you haven't seen, violet for close friends, a fine grey line once seen.
    • backdrop.tsxThe scene behind every screen: a deep graphite (by day pale ice) that fades down the screen, a cyan glow high at the start, a smaller one low at the end, a tint cloud between, two faint light beams across, and one thin story ring bleeding off the top end, all drawn once and still (no motion, no blur).
    • build.tsxA part coming in (MOTION in constants/motion.ts): from its first frame it waits at its moment's pose (a block clear and 10pt low, a list row a little to the start), then moves to its place at its turn.
    • button.tsxThe main button: a cyan pill with a soft glow (the glow setting) and dark words, an optional icon after the label.
    • caught-up.tsxThe end of the Home feed: a glass card with a glowing check, "You're all caught up" and a line, then the people you follow (a big avatar each with the first name on one line; a tap opens their profile) and Explore more.
    • chat-view.tsxOne conversation: their photo and name on top (opens their profile), the messages as bubbles (yours cyan at the end, theirs frosted at the start), "Seen" under your last one, three dots while they type, and the message field.
    • chips.tsxThe category chips (All, Travel, Food, City, Nature, Film) in one scrolling row: the picked one fills cyan with a soft glow and pops a little, the rest are frosted.
    • comment-bar.tsxThe "Add a comment…" bar at the bottom of a post: your photo, the field and Post, which lights up once there is something to send.
    • comment-row.tsxOne comment under a post: the author's photo (opens their profile), name, time and words, and a small heart with its count that pops when you like it.
    • compose-form.tsxThe compose flow's second step: the picked photo small (tap to change it), then the caption, the category chips, the people to tag and the place.
    • confirm-sheet.tsxA sheet that asks before something can't be taken back (delete a post, sign out): the question, a line on what happens, the red action and Cancel.
    • count.tsxA count that ticks when it changes: the old number slides up and out as the new one slides up into place (a like, a follower, a comment).
    • create-ring.tsxCreate, drawn like an unseen story: a cyan-to-violet ring with a soft glow around a round cyan +.
    • create-row.tsxOne choice in Create (Post, Reel or Story): its icon, name and a line on what it is.
    • create-sheet.tsxCreate, opened by the Create ring: the screen dims and a glass card rises with Post, Reel and Story one after another, and Create now.
    • field.tsxA labelled text field on frosted glass with one designed focus state on every platform: the border turns cyan (same width, so nothing shifts).
    • follow-button.tsxFollow, as a cyan-rimmed glass pill ("+ Follow"); once following it turns into a quiet filled pill with a check that pops in.
    • forgot-sheet.tsx"Forgot password?": a sheet that takes your email, checks it looks right, and then says where the reset link went.
    • glass.tsxA frosted glass panel for the few surfaces that blur what is behind them (the tab bar, the rail, sheets, the welcome cards): real blur on iOS and the web; on Android, where blur is still experimental, the same see-through tint unblurred, so it is designed to look right as tint.
    • heading.tsxA heading in the brand's heading font: a screen title (28), a section heading (20) or a card title (17).
    • heart-burst.tsxThe double-tap answer on a photo: a big cyan heart swells out of the spot, a ring of six small sparks flies off it, and both fade, all in about 700ms on the UI thread.
    • home-header.tsxHome's top line: the Caraway wordmark, then search (opens Explore) and messages (with a glowing dot while something is unread).
    • icon-button.tsxA round icon-only button with a 48pt touch target: plain, or on a small frosted disc (`glass`) where it sits over a photo or the backdrop.
    • icon.tsxCaraway's line icons, drawn on one 24-point grid with the stroke, ends and size of ICON (constants/theme.ts), so they read as one set.
    • logo.tsxCaraway's logo: a story ring holding a curved caraway seed with its three ridges, in the brand cyan, and the wordmark beside it in the heading font.
    • nav-rail.tsxThe tablet's navigation, the phone's slim glass row stood on end: a narrow frosted column with the Caraway mark, Create as a glowing story ring, then Home, Explore, Activity and your avatar for Profile (each name under its icon), and at the foot Messages and Settings (they open over the tabs).
    • nav-tab.tsxThe pieces both navigation bars share: each place's icon and name, going to a tab, and one tab button.
    • photo-grid.tsxA grid of post photos (Explore, a profile, Saved): square tiles with small rounded corners, a play mark on reels and the like count on a dark pill at the bottom.
    • photo-picker.tsxThe compose flow's first step: the picked photo large on a glass card, and your recent photos in a grid under it.
    • photo.tsxA photo filling its box ("cover") with its focus point kept in view where the box crops it, the way CSS object-position does, and an optional wash of one color from `top` to `bottom` opacity, so words on the photo keep their contrast.
    • post-actions.tsxThe row under a post: like, comment and share with their counts, and save at the end.
    • post-card.tsxOne post in the feed, on a glass card: the photo (double tap to like, tap to open), then the author with their place and a Follow pill, the caption, and the like, comment, share and save row.
    • post-menu.tsxA post's options (the ··· on its photo).
    • post-photo.tsxA post's photo with its category tag (a cyan chip) at the top start, the ··· options on a glass disc at the top end, and a Reel badge on reels.
    • pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back (MOTION.press in constants/motion.ts).
    • profile-view.tsxA profile, yours or someone else's: the photo with a soft cyan halo, the name, username and place, Posts / Followers / Following counts that tick when they change, the bio and website, the buttons the caller passes (Edit profile, or Follow and Message), then Posts / Reels / Tagged under a gliding line and the matching photo grid.
    • screen.tsxEvery screen's frame: the backdrop (unless the tabs already draw it) and the safe-area insets, so nothing sits under the notch, the status bar or the home indicator.
    • search-field.tsxThe search field: a frosted pill with a search icon, live as you type, and a clear button while it holds text.
    • segments.tsxA row of equal choices with a marker that glides to the picked one (Activity's filters, a profile's Posts / Reels / Tagged).
    • setting-row.tsxOne line in Settings: an icon on a frosted tile, the label with an optional second line, and at the end either a switch (`value`) or a chevron (`onPress` opens something).
    • share-sheet.tsxShare a post: send it to one of your people (it lands in your chat with them, and they answer) or copy its link.
    • sheet-row.tsxOne action row in a sheet: an icon on a small glass tile, a label and an optional line under it, the whole row one button.
    • sheet.tsxA bottom sheet of frosted glass over a dimmed screen (share, post options, a confirm, forgot password).
    • side-column.tsxHome's right-hand column on a tablet: your card (photo, name, counts, open your profile), creators you don't follow yet with Follow, and the three newest things from Activity.
    • story-bars.tsxThe story viewer's progress bars, one per frame: watched ones full, the current one filling over STORY_TIME, later ones empty.
    • story-reply.tsxThe story viewer's bottom line: a frosted "Reply to Maya…" field and a heart.
    • story-row.tsxThe stories along the top of Home: yours first (a + badge to add one, or your ring once you have), then everyone's, unseen first.
    • tab-bar.tsxThe phone's navigation: a slim frosted glass row floating above the bottom edge with Home, Explore, Create (a glowing story ring), Activity and your own avatar for Profile.
    • toast.tsxThe note after an action, as a floating glass badge like the ones that hover around the app's posts: a glowing cyan icon, a short line and an optional Undo.
    • toggle.tsxAn on/off switch: a cyan track with a soft glow when on, a frosted one when off, and a knob that glides across.
    • top-bar.tsxThe bar at the top of a pushed screen: Back, the title in the middle and up to one action on the end.
    • typing-dots.tsx"Maya is typing": three dots that rise and fall one after another while the bubble shows (it shows for about a second and a half).
    • welcome-collage.tsxThe welcome screen's picture: three photos on tilted glass cards, fanned out over the drawn backdrop, with two glass badges floating at their corners ("2.4K liked your post", "New follower"), unblurred so they can move.
  • constantsColors, sizes, motion and the brand defaults.
    • color.tsSmall color math for the shades that follow the brand colors.
    • motion.tsMotion settings shared by every animation: Caraway's "pulse glow".
    • theme.tsThe app's colors, the brand defaults and the sizes every screen shares.
  • hooksState and theme hooks.
    • store.tsA tiny store for the app's state: one value, changed with `update`, and read in components with useStore, which redraws them when it changes.
    • use-account.tsThe account: who is signed in (or that they signed out, which guards the signed-in screens, app/_layout.tsx), the accounts made on this phone and the settings switches.
    • use-activity.tsActivity: the seeded items plus new ones as they happen.
    • use-brand.tsThe brand settings: the values in constants/theme.ts.
    • use-chats.tsYour conversations: send a message (or a story reply, or a shared post), read a thread, and the other person's answer a moment later with "typing…" before it.
    • use-feed.tsThe posts and their comments, and what you did to them: likes (on posts and on comments), saves, shares, posts you hid, and the posts you share, edit or delete.
    • use-icons.tsHow the line icons are drawn (ICON in constants/theme.ts).
    • use-layout.tsPhone or tablet layout, from the window's width (not the device), so an iPad in Split View or a small Android tablet gets the layout that fits.
    • use-leave.tsA soft hand-off between screens that replace each other (sign in → Home, Profile → sign in): the screen goes out to MOTION.leave's pose (a fade), then the next one comes in.
    • use-motion.tsThe app's moments (MOTION in constants/motion.ts): how parts come in and answer a press.
    • use-moves.tsThe app's animations (movesOf in constants/motion.ts), built from its moments (hooks/use-motion.ts).
    • use-nav-hide.tsThe phone's tab bar slides away while you scroll a tab's list down and comes back as soon as you scroll up a little, near the top, or when you switch tabs or open Create.
    • use-people.tsThe people and who you follow: following someone adds one to their followers and to your following, and your own profile (name, username, bio, place, website) is edited here.
    • use-scheme.tsDark or light, from the phone's appearance setting (app.config.ts sets userInterfaceStyle "automatic"); on the web, the browser's setting.
    • use-slide.tsA position that springs to each new target, except the first one it is measured at: there it starts in place, so the marker under the chosen tab or segment doesn't slide in from the edge when its screen opens.
    • use-still.tsWhether the app's own loops and plays stay still: the phone's "Reduce motion" is on, or MOTION.reduce is Always (constants/motion.ts).
    • use-stories.tsThe stories: everyone's from data/stories.ts plus yours, and which ones you have watched.
    • use-theme.tsThe palette of the current theme and the styles that depend on it and on the brand, built once per brand and theme and shared by every component.
    • use-toast.tsA short note after an action ("Saved to your collection"), shown as a floating glass badge with an icon, with an optional Undo.
    • use-visit.tsxCounts each visit to a tab, so a tab's screen builds up again every time it is opened, not only the first time (constants/motion.ts).
  • dataEvery word and product the app shows.
    • activity.tsWhat happened around your posts: likes, likes on your comments, new followers, comments and mentions, newest first.
    • chats.tsYour conversations, one per person, oldest message first, and how many of their messages you haven't read.
    • comments.tsThe comments already on the posts when the app opens, oldest last.
    • copy-more.tsThe second half of the app's words (data/copy.ts merges it in): Activity, Profile, Edit profile, Messages, Chat, Settings, the toasts, category names, time stamps and every photo's description.
    • copy.tsEvery word on every screen, in one place: change them here to reword or rename the app.
    • people.tsThe people in the app: you (the signed-in account) and six creators you can follow, message and tag.
    • photos.tsThe real photos (Unsplash stand-ins, free license; credits in README.md).
    • posts.tsThe posts and reels everyone has shared (their comments: data/comments.ts).
    • stories.tsThe stories in the row on Home: each person's frames (a photo and a short line), newest last, and whether they are for close friends.
    • time.tsTimes for the seeded data and how old something reads ("3h", "2d ago").
  • pluginsBuild settings Expo has no option for.
    • night-window.tsAndroid's window color (behind the screens) for a phone in dark mode.
  • assetsThe photos the screens show.
    • photosThe photos the screens show.
      • caraway-avatar-lena.jpgA photo the app shows.
      • caraway-avatar-maya.jpgA photo the app shows.
      • caraway-avatar-noor.jpgA photo the app shows.
      • caraway-avatar-ravi.jpgA photo the app shows.
      • caraway-avatar-sam.jpgA photo the app shows.
      • caraway-avatar-theo.jpgA photo the app shows.
      • caraway-avatar-you.jpgA photo the app shows.
      • caraway-camera.jpgA photo the app shows.
      • caraway-canal.jpgA photo the app shows.
      • caraway-cliff-village.jpgA photo the app shows.
      • caraway-coffee.jpgA photo the app shows.
      • caraway-desert-road.jpgA photo the app shows.
      • caraway-forest.jpgA photo the app shows.
      • caraway-glacier-lake.jpgA photo the app shows.
      • caraway-grill.jpgA photo the app shows.
      • caraway-lake-boat.jpgA photo the app shows.
      • caraway-lantern-street.jpgA photo the app shows.
      • caraway-neon-alley.jpgA photo the app shows.
      • caraway-pizza.jpgA photo the app shows.
      • caraway-poke-bowl.jpgA photo the app shows.
      • caraway-shore.jpgA photo the app shows.
      • caraway-skyline.jpgA photo the app shows.
      • caraway-tower-dusk.jpgA photo the app shows.
      • caraway-waterfall.jpgA photo the app shows.
      • caraway-white-steps.jpgA photo the app shows.

README.md

How to run it, change it and ship it.

Loading…
Good for
Photographers, creator communities and travel brands that want their own photo-sharing social app on iOS and Android.
How it works
Watch stories, like and comment on posts, explore by category, share photos, reels and stories, follow people and chat with them.
How to use
Run it in Expo Go, change the words in data/copy.ts, people and posts in data/, photos in data/photos.ts and colors in constants/theme.ts, then build with EAS.