Hyssop
v1.0A bright safari travel app for iOS and Android phones and tablets, in light and dark: soft raised cards on a warm white glow or a deep indigo night, sunset orange, acacia green and sky blue accents, a drawn savanna with a turning sun, park maps with dropping pins and safari passes that flip in.
Intégré
Ce que vous obtenez- Clair et sombreUtilise les couleurs de votre thème
- téléphone et tabletteLes écrans pour lesquels il est conçu
- Paquets…
- Taille du code…
- Économe en batterie30 i/s, au repos quand rien ne bouge
- Pause quand masquéHors écran ou autre onglet
- Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Sécurité vérifiée le 3 déc.- Vérification des typesTypeScript strict
- Lint et formatESLint · Prettier
- Tests et buildCaptures claires et sombres
- Audit de sécuritéAucune vulnérabilité élevée ou critique
- Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
- CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
safari-hyssopReact 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 the app import its photos (data/photos.ts): Metro turns each .jpg into an image source <Image> takes.
- appThe screens, one file per route (Expo Router).
- (tabs)The screens, one file per route (Expo Router).
- _layout.tsxThe tabs: Explore, Map, Passes, Saved and Profile.
- explore.tsxExplore: the region in big capitals with today's weather, a map card of where to go, the next trip, the top experiences, the best time to visit, the main park at a glance and the guides.
- map.tsxMap: the drawn map of the parks with region chips and a routes switch.
- passes.tsxPasses: every safari pass as a ticket that flips in one after another, Upcoming or Past, with a New trip key.
- profile.tsxProfile: the photo in a soft ring, the name, home and since when, three counts that count up (trips, parks visited, saved), Edit profile, the temperature unit, links to the guides, settings and help, and Sign out (asked first; after it Back can't come back in).
- saved.tsxSaved: the parks and experiences kept with a heart, in two lists.
- bookThe screens, one file per route (Expo Router).
- [id].tsxBook an experience: pick a date, the guests, the park and a guide; the summary's total rolls to each new price.
- chatThe screens, one file per route (Expo Router).
- [id].tsxA chat with a guide: their photo, name and reply time at the top (it opens the profile), the messages, three quick questions and a sunk field with a round send key.
- experienceThe screens, one file per route (Expo Router).
- [id].tsxAn experience: its photo (or drawing), name and rating, when and how long, the price per guest, what it is, what's included (each with an sunset check), the parks it runs in (each opens the park) and Book, which opens the booking.
- guideThe screens, one file per route (Expo Router).
- [id].tsxA guide's profile: the photo in a soft ring, name, rating with stars that fill in, years, price per day, their focus and story, the languages and the parks they know (each opens the park), what travellers say and Message, which opens the chat.
- parkThe screens, one file per route (Expo Router).
- [id].tsxA park: its photo, name and line, the four facts (wildlife, landscape, best time, temperature), the animals you may see drawn on the ground, the months with the best ones lit and each month's high, the experiences that run here, the guides who know it and Plan a trip here.
- passThe screens, one file per route (Expo Router).
- [id].tsxA safari pass: the ticket (it flips in; a tap turns it over to the gate code), the guide with Message, the day-by-day plan (tap a day to change or delete it, Add a day for one more), the booked experiences and the notes.
- tripThe screens, one file per route (Expo Router).
- [id].tsxMake a new trip (id "new", maybe with a park picked) or change one: the park, the first day, how many days, the guests, the guide and notes.
- _layout.tsxThe root: loads the heading font, follows the phone's dark or light setting and stacks the screens.
- guides.tsxGuides: every guide as a raised row (photo, name, focus, years and the rating), each opening their profile, and under it the chats with the last message, each opening the chat.
- index.tsxThe welcome screen, the app's first route: the savanna backdrop, the turning sun over a little lifted piece of savanna (the diorama), then the mark, the line, the words and the two ways in (Start exploring, I have an account) rising one after another.
- settings.tsxSettings: the four reminders as soft switches, how many days before a trip to remind, the temperature unit, the region Explore opens on, help and safety answers that open one at a time, and the version.
- 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, email and password (with show/hide and an 8-character hint), then Create account.
- componentsThe parts the screens are built from.
- artThe drawings, as code: no image files.
- animal-art.tsxOne animal standing on a small sand patch, for wildlife tiles and badges.
- diorama.tsxThe welcome's centerpiece: a small round piece of savanna lifted out of the ground like a toy diorama, with a waterhole, a big acacia, an elephant, a giraffe, a lion and the safari jeep, rocks and grass.
- map-art.tsxThe drawn safari map, in one 100 x 100 square from the Horn down to the Cape: a sea with a few wave marks, the land raised off it by a soft coastal shade and lit from the top left, green highlands around the great lakes, dunes on the west coast, bushveld in the south east, the great lakes and rivers, dashed borders, Kilimanjaro, Madagascar, a compass and small acacias and animals standing about as landmarks.
- more-shapes.tsxThree more animals of the same hand as components/art/shapes.tsx: a spotted cat (leopard, cheetah), a heavy grazer (rhino with its horn, hippo without) and an antelope (oryx with straight horns, wildebeest with curved ones and a beard).
- scenes.tsxSmall savanna pictures built from the shapes: an experience's own scene (the jeep, the balloon, a walker, the village, a sundowner tree, the night drive) as a photo slot's fallback, and the landscape strip of a pass's stub or the best-time card.
- shapes.tsxThe savanna's shapes, drawn by one hand: an acacia, an elephant, a giraffe, a lion, a zebra, the safari jeep, a balloon, a hut and a walker.
- auth-frame.tsxThe sign-in and sign-up screens' frame: the Hyssop mark, a title and the form on a raised soft card over the savanna, scrolling clear of the keyboard.
- backdrop.tsxThe savanna behind every screen: a sky warming toward the horizon, the sun's glow high on the end side (the moon and a few stars at night), far hills with small acacias, two sand dunes along the bottom and a few clumps of grass that lean in the breeze.
- barcode.tsxA barcode drawn from a pass's code: each digit sets a few bar widths and gaps, so the same code always draws the same bars.
- best-time.tsx"Best time to visit": the months in words, why, and a small drawn acacia on a warm hill at the end.
- bubble.tsxOne chat message.
- build.tsxOne block of a screen's "warm sun" entrance (MOTION.build in constants/motion.ts): from its first frame it is clear and 10pt low, then rises and fades in at its place in the order.
- card.tsxA soft raised card: the ground pressed up by two soft shadows with a fine light rim, a little see-through over the savanna.
- chip.tsxA small choice (a park, a region, a guide, a filter): a raised key that sinks in when picked and gets a sunset dot and sunset words, so the pick shows in color as well as shape.
- confirm-sheet.tsxA sheet that asks before something goes (delete a trip, sign out): the question, a line on what happens, the red action and "Keep it".
- date-strip.tsxA row of days to pick from (the next six weeks): each a raised tile with the weekday, the date and the month; the picked one turns sunset.
- day-sheet.tsxAdd or change one day of a trip: its title and plan in sunk fields, Save, and for a day that exists, Delete this day.
- experience-row.tsxOne experience in a list: its photo (or drawing) in a raised frame, the name, how long and the price, and a heart that saves it.
- explore-header.tsxThe top of Explore: "Explore", the region in big capitals with a down arrow (opens the region sheet) and today's place with a pin; the round mark at the end opens the profile.
- field.tsxA text field sunk into the ground (soft UI: a field holds a value), with a line icon, an optional show/hide eye for passwords and an error line under it read out by screen readers.
- fly-layer.tsxThe token that flies from the finger to its tab after a save (a heart to Saved) or a booking (a ticket to Passes): a sunset disc that arcs up and over and shrinks into the tab, which then pops (components/nav-tab.tsx).
- forgot-sheet.tsx"Forgot password?": a sheet that takes your email, checks it looks right, and then says where the reset link went.
- guide-card.tsxA guide as a small raised card: round photo in a soft ring, "Guide", the name and the rating with a star.
- guide-pick.tsxPick a guide: the guides in a row, each with photo, name and rating; the picked one sinks and shows a sunset check.
- heading.tsxHeadings in the brand's heading font: `display` for the big place name ("KENYA"), `title` for a screen, `heading` for a card, and `eyebrow` for the small spaced capitals above a block ("WHERE TO GO").
- heart.tsxThe save heart for a park or an experience: a round soft key whose heart fills sunset orange and pops when saved, sends a small heart flying to the Saved tab and says so in a toast (removing it offers Undo).
- hero.tsxThe top of a park or experience page: its photo (or drawing) in a raised frame with soft corners, the Back key and a heart floating on it, and the name and line under it.
- icon.tsxHyssop's line icons, drawn on one 24-point grid as ICON says (constants/theme.ts: round ends and a 1.8 stroke), so they read as one set with the drawings.
- itinerary.tsxA trip's day-by-day plan: each day a row with its number sunk in a round well, the title and the plan; tapping one opens it to change or delete, and Add a day opens a blank one (components/day-sheet.tsx).
- key.tsxThe app's buttons are soft keys: raised out of the ground, sinking in while pressed.
- logo.tsxHyssop's mark: a round soft badge with a low sun behind a flat-topped acacia on a line of horizon, and the wordmark beside it.
- map-wide.tsxThe tablet's Map: the drawn map fills the whole page edge to edge, and three solid raised panels float over it: the park list down the start side (with the title), the region chips and the routes switch along the top, and the picked park's card at the bottom end.
- missing.tsxWhat a page shows when its park, experience, trip or guide is gone (a deleted trip, an old link): a short line and a way back.
- months.tsxThe twelve months as a row of small pills in a sunk well: the best months to visit fill warm amber one after another (bars grow from their base), the rest stay soft.
- nav-rail.tsxThe tablet's navigation: the phone's ticket stood on its side, a raised rail with the Hyssop mark, every place by name, and the guides.
- nav-tab.tsxThe pieces both navigation bars share: each place's icon and name, going to a tab, and one tab of the phone's ticket strip: a muted icon, or, when picked, its name under the sun disc that carries its icon (components/tab-bar.tsx).
- next-trip.tsxExplore's next trip: the coming pass as a small ticket that flips in and opens the pass, or, with no trip ahead, a card with Plan a trip.
- park-chips.tsxPick one park: its short name on a chip, the picked one sunk with a dot.
- park-facts.tsxA park at a glance: four small facts side by side (wildlife, landscape, best time, temperature), each a drawn line icon over two short lines.
- park-map.tsxThe illustrated map of the parks (components/art/map-art.tsx) with country names, a dotted trail between the parks and one labelled pin per park.
- park-row.tsxOne park in a list: its photo in a raised frame, the short name, the country and the best months, and a heart.
- perforation.tsxThe tear line of the ticket navigation, between its places and the stub: a half-round bite sunk into each edge and a row of short cuts between them.
- photo.tsxA photo slot: the photo fills its box ("cover") with its focus point kept in view where the box crops it, the way CSS object-position does.
- picked-park.tsxThe park picked on the Map: its photo, name, line and Open park, in a sunk well under the phone's map or on the tablet's floating card.
- pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back.
- profile-sheet.tsxEdit profile: the name and home city in sunk fields, saved with a toast.
- region-sheet.tsxPick the region Explore shows (Kenya, Tanzania, Southern Africa): a sheet of raised rows, the picked one sunk with a brand-colored check.
- 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.
- section-head.tsxA block's small capitals title ("TOP EXPERIENCES") with an optional "See all" key at the end.
- segments.tsxA choice of two to four (Upcoming | Past, °C | °F): a sunk track with a raised key that glides under the picked one (starting in place, hooks/use-slide.ts).
- sheet.tsxA bottom sheet over a dimmed screen (pick a region, edit a day, sign out).
- stepper.tsxA number with − and + keys (guests, days), kept between `min` and `max`.
- sun-disc.tsxThe picked place on the ticket navigation: a sunset sun disc with its icon, ringed by short rays, sitting in the notch cut into the ticket.
- sun.tsxThe warm sun: a round sun with a soft halo and rays that turn slowly (one turn a minute), the app's signature motion.
- sway.tsxGrass leaning lightly in a breeze: tilts its children a few degrees about their foot and back, on the shared slow clock (hooks/use-loop.ts), each clump a little out of step with the next (`lag`, 0 to 1).
- tab-bar.tsxThe phone's navigation: a raised ticket strip floating above the bottom edge.
- text-link.tsxA short sunset text link ("Forgot password?", "Create an account") with a big enough touch area and a press scale.
- ticket.tsxThe safari pass: a soft raised ticket with the park in big capitals, the country, three facts (days, the main experience, the guide) and a barcode, and a torn-off stub with the drawn savanna and a second barcode, split by a perforation with two notches.
- toast.tsxThe note after an action ("Booked", "Trip deleted · Undo"): a deep pill that rises above the tab bar, stays four seconds and fades away.
- toggle.tsxA soft switch with its words: a sunk track and a raised round cap that slides across; on, the track lights sunset.
- top-bar.tsxThe top of a pushed screen: a round Back key, the screen's small title and up to two keys at the end (save, edit).
- weather-card.tsxThe weather card: the warm sun (its rays turning slowly) with today's high counting up and the sky in words, then the next five days, each a small sunk cell with its sky and high.
- 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: Hyssop's "warm sun".
- 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) and the accounts made on this phone.
- use-awake.tsWhether a small repeating motion (the streak flame's breath) may run: only while its screen is focused, the app is in front (on the web: the tab is visible) and motion is not still (hooks/use-still.ts).
- use-brand.tsThe brand settings: the values in constants/theme.ts.
- use-chat.tsThe chats with the guides: the first messages from data/guides.ts, then what the traveller sends (and can delete) and the guide's short replies.
- use-count-up.tsA number that counts from where it was to its new value (calories, grams, steps), easing out over DRAW.
- use-fly.ts"It went there": after a save or a booking, a small token flies from the finger to its tab (the heart to Saved, the ticket to Passes) and the tab pops (components/fly-layer.tsx, components/tab-bar.tsx).
- 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 fades out, then the next one comes in.
- use-loop.tsA slow repeating motion's clock (the sun's rays, the grass): a shared value from 0 to 1 over `period` ms, read from the frame clock so every loop on screen keeps the same phase and nothing jumps when it resumes.
- use-motion.tsThe app's moments (MOTION in constants/motion.ts): how parts come in, answer a press and leave.
- use-prefs.tsThe traveller's settings: temperature units, the region Explore opens on, the profile's words and the reminders.
- use-saved.tsThe parks and experiences the traveller saved (the heart on a card or a detail page).
- 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-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 at the bottom after an action ("Glass added"), with an optional Undo.
- use-trips.tsThe trips (safari passes): booked, created, changed and deleted here, and each one's days.
- 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.
- copy.tsEvery word the app shows, in one place: change them here.
- experiences.tsThe experiences you can book: how long, when in the day, the price per guest in cents, what is included and the parks they run in.
- guides.tsThe guides: who they are, their rating, languages, the parks they know and the first messages of each chat (hooks/use-chat.ts keeps the rest).
- parks.tsThe parks and reserves: where they are on the drawn map, their wildlife and landscape, the best months, the average high of each month (°C) and which experiences run there.
- photos.tsThe real photos (Unsplash stand-ins, free license; credits in README.md).
- trips.tsThe traveller's trips when the app opens: each one is a safari pass (a park, dates, guests, a guide, booked experiences and a plan for each day).
- user.tsThe demo traveller and the account that always signs in (shown as a hint on the sign-in screen).
- weather.tsThe forecast Explore shows for a region: now, and the next five days from today, highs in °C.
- 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.
- hyssop-avatar.jpgA photo the app shows.
- hyssop-exp-balloon.jpgA photo the app shows.
- hyssop-exp-game-drive.jpgA photo the app shows.
- hyssop-exp-night-drive.jpgA photo the app shows.
- hyssop-exp-sundowner.jpgA photo the app shows.
- hyssop-exp-walking.jpgA photo the app shows.
- hyssop-guide-amani.jpgA photo the app shows.
- hyssop-guide-james.jpgA photo the app shows.
- hyssop-guide-kofi.jpgA photo the app shows.
- hyssop-guide-tom.jpgA photo the app shows.
- hyssop-park-amboseli.jpgA photo the app shows.
- hyssop-park-kruger.jpgA photo the app shows.
- hyssop-park-mara.jpgA photo the app shows.
- hyssop-park-namib.jpgA photo the app shows.
- hyssop-park-samburu.jpgA photo the app shows.
- hyssop-park-serengeti.jpgA photo the app shows.
README.md
How to run it, change it and ship it.
Chargement…
- Idéal pour
- Safari operators, lodges and travel brands that want their own park guide, booking and trip pass app on iOS and Android.
- Fonctionnement
- Explore parks on a drawn map, see wildlife and the best months, book experiences with a guide and keep each trip as a pass.
- Utilisation
- Run it in Expo Go, change the words in data/copy.ts, parks and guides in data/, photos in data/photos.ts and colors in constants/theme.ts, then build with EAS.