Back to home
Dev log
I’m Daniel, a software engineer building emdeplam on my own. Each card is one thing I ran into while building it: the problem, the cause, the fix and what I learned. Grouped by version, newest first, so I can look back on what each version taught me.
The change list for each version: What’s new
Version 1.6.2 coming soon
-
The site only showed up for the app name
- Problem
- Google Search, 28 days: 57 of 91 visits came from the word "emdeplam". People who did not know the name almost never found the site.
- Cause
- Titles and headings used the app’s own feature names, while people search in their own words: "couple photobooth poses", "free photobooth at home". The pictures on the pages were not listed for Google either.
- Fix
- Google’s search suggestions became the list, and titles and headings now match it: the poses post gained a best friends section and a "where to look in a photobooth" answer. The sitemap lists every page’s pictures. Links stay the same.
- What I learned
- Write the words people type, not the names I gave things. New pages also need time: measure monthly, with the app name filtered out.
-
Video collage: the app closed while picking a video
- Problem
- On iPhone, with videos in two boxes of a collage, tapping the third box opened the library and the app closed about 4 seconds later, before anything was picked.
- Cause
- The collage kept both videos open in the phone’s decoder under the library picker. Closing them for the picker then showed a second problem: a box could open its video twice and lose track of one copy, which stayed open.
- Fix
- The library now counts as covering the Studio, like the save sheet: every box closes its video while it is open and reopens at the same spot after. What is open is tracked the moment a video opens or closes, so a box never opens twice. A web test checks that nothing is open under the picker and all three come back.
- What I learned
- A screen recording of a crash with no log was enough: the time from opening the picker to the crash was the same on every log, which pointed at what was open, not at what was picked.
-
After a split, the video showed the wrong part
- Problem
- Pick a clip, split it, tap one part: on iPhone the video could keep showing the frame from before, not the part under the playhead.
- Cause
- Paused, a jump in the video waited half a second for its new frame and then kept whatever it had. An exact jump into a 4K iPhone video can take longer, so the new frame arrived after the app had stopped looking.
- Fix
- On iPhone the app now waits up to 2.5 seconds more for that frame and shows it as soon as it lands. Android, which reports time differently, keeps its own path.
- What I learned
- A time limit written for the usual case needs a plan for the slow one: here, keep watching until the frame comes.
-
Face effects with the phone sideways
- Problem
- Turn the phone sideways in the Photobooth and the face effects stopped: the Effects button dimmed and a note said they work upright. A tester turned back upright just to use them.
- Cause
- The face tracker on iPhone always told Apple Vision the camera frames were upright, so turned, every point it found would have landed in the wrong place. Rather than draw hoods off the faces, 1.4 turned the effects off sideways.
- Fix
- The iPhone tracker now reads how the screen is turned and gives Vision the matching orientation for each side, mirrored for the front camera, with the frame size swapped only upright. Android needed no change: its analysis frames already turn with the phone (checked on an emulator, 240×320 upright and 320×240 turned either way). A web test turns the phone with three faces and checks the hood is drawn on each, live and in the saved photo.
- What I learned
- A fallback written because something could not be checked becomes a feature gap. Measuring what each platform already did showed half of the work was done.
-
Folding phone: the camera opened sideways in an upright hand
- Problem
- After 1.6.1 the folding phone tester still saw lag and no photo with the phone unfolded and upright, rotation lock on or off. Sideways or folded, all fine.
- Cause
- This phone’s inner screen is wider than tall, so the system counts sideways as its normal way up. The camera screen let the phone turn by handing the choice back to the system, and with rotation lock on the system puts an app back at the rotation the lock saved: sideways. Every screen before it was locked upright, so the camera alone flipped, and each flip restarted the camera.
- Fix
- On Android the camera screen now turns by the phone’s sensor, as camera apps there do: held upright it stays upright, turned it turns. Reproduced on an emulator with the same 2448×1848 screen held upright: before, the camera opened sideways; after, it stays upright and a 4-photo round completes.
- What I learned
- Check the exact device. The last fix modelled a near-square folding screen; this one is 4:3 and wide at rest, and that one fact decided the bug.
Version 1.6.1 coming soon
-
Folding phone: the screen turned at the countdown
- Problem
- A tester on an unfolded folding phone, held upright: tap to shoot and the screen turned sideways, the preview went black, the app lagged and no photo was taken, rotation lock on or off. Their screen recording showed the turn landing on the countdown’s 3.
- Cause
- During the countdown the app locks the screen to "the current orientation" so turning the phone can’t change the layout mid-shot. On Android that orientation is guessed from the window less the system bars; the near-square inner screen of a folding phone was guessed as landscape. The app locked landscape, the screen turned on that lock (the phone’s rotation lock can’t stop it), the camera restarted and the shot was lost.
- Fix
- The lock now follows the window shape the layout already uses (wider than tall or not). Android locks only portrait or landscape, either side; iPhone keeps the exact side when the system agrees. A test covers every value the system can return.
- What I learned
- When the app already has a source of truth for its layout, don’t ask the system a guessing question about the same thing. And one screen recording from a user beats every theory.
-
A heart on a layout made the whole list jump
- Problem
- Heart a layout halfway down the list and the list jumped, the tile you hearted left your finger, and on iPhone the list kept scrolling.
- Cause
- A heart moved the layout up into the Favorites group at once, which inserted rows above the one you were reading. A virtualized list does not hold its place when content above it changes, so it had to measure again from the top. The Story start also made two rows with one key when you hearted a carousel.
- Fix
- From a heart under All, the order holds until you pick another chip; Favorites lists the new heart right away. Each row key now carries its group. A test scrolls down, hearts a tile and measures: the scroll and the hearted tile move no more than 2 pt.
- What I learned
- Never change what sits above the reader because of their own tap. Answer in place, and reorder later.
-
Folding phone sideways: the drafts button was covered
- Problem
- An Android tester on a folding phone said that sideways, the Photobooth start screen had no way into the draft strips.
- Cause
- On a wide screen the controls move into a column on the right with its own backing sheet. That sheet was drawn after the top bar, so it covered the drafts and Shoot together buttons in every room but Bright (the only room without a sheet).
- Fix
- The top bar now draws after the controls column. A new test opens the start screen at 844×390 and 1024×768 in all five rooms, checks that the topmost element at the centre of each button is that button, then opens the drafts list.
- What I learned
- Test a layout in every theme it ships in, not only the default: this one showed only when sideways and in a room with a sheet.
Version 1.6 · iPhone
-
Video collage: three videos in one layout without a hot phone
- Problem
- I wanted to collage videos like photos: up to three clips playing at once in one story layout. Three players open at once is exactly where a phone heats up and leaks memory.
- Cause
- Pausing a video does not give back its decoder or the frames it holds, and each cell still decoded at full size though it showed at half the screen.
- Fix
- Each cell decodes at its own size (540, 720, 1080 or 1920 px), at most 3 videos, one canvas and one frame tick for all of them. Leaving the screen, opening the save sheet, going to the background or running hot releases the players outright, not just
pause(). The layout is drawn once as a cover with holes, so no frame needs a mask. A test opens and closes it 10 times: memory and GPU textures stay flat. - What I learned
- For an expensive resource like a video decoder, pausing is not releasing. Tie its lifetime to whether the screen is showing, then write the test that measures exactly that.
-
The kitten: fish earned with photos, never sold for money
- Problem
- em's room needed a small reason to come back, but I did not want a shop that pushes you to buy or a counter that makes you feel guilty.
- Cause
- Reward points slide into grinding: with no cap one busy day unlocks everything, and if fish came from sharing or rating they would turn into bait.
- Fix
- A pure rule set in
unlocks.ts: every save brings home fish and bond by kind, halved after many saves in a day, capped at 80 fish and 160 bond a day. The corner shop trades fish for room pieces, with a 10 second undo. Nothing is for sale; sharing, inviting or rating the app never earns fish. - What I learned
- Write an economy as pure functions with a test for a normal week's pace, and you can tune how it feels without guessing.
-
Glow: lights that sparkle without stamping streaks on buildings
- Problem
- I wanted the lights and bright spots in a photo to bloom like a star filter.
- Cause
- The first try sampled along each ray inside the shader (16 taps a pixel): noisy at full size, and a ray stamped copies of bright buildings along it.
- Fix
- Glow became its own layer: take the highlights, blur them on the GPU along the ray (Starburst turns ±45°, two layers), subtract the highlights themselves so a wide bright sky does not flare, then screen it over. A photo longer than 2160 px draws its glow at 2160 and lays it over the full size, so the preview and the saved file match.
- What I learned
- Make a glow around bright spots with a blur on its own layer; do not try to sample long distances in one shader.
Version 1.5 · iPhone + Android
-
The site shows its real numbers
- Problem
- A first-time visitor had no reason to trust the app: nothing showed that anyone had downloaded it or rated it.
- Cause
- At launch there were no numbers worth showing, so the site had no place for them; when the numbers got good, the page stayed silent.
- Fix
- One small line under the download buttons: 5.0 stars and 2,800+ downloads on the App Store, and tapping it opens the App Store page so you can check for yourself. No Google Play numbers yet, that version just launched.
- What I learned
- Show social proof only once the numbers are big enough, and only numbers a visitor can verify with one tap.
Version 1.6 · iPhone
-
Voice-over right on the timeline
- Problem
- Telling a story over a video meant shooting it again.
- Cause
- The Studio only had music and clip sound.
- Fix
- Record a voice-over on the timeline while the video plays, with the music dipping under it. Ten sound effects synthesised in code (62 KB for all ten) drop at the playhead on the same lane.
- What I learned
- Ask for the mic only on that tap, and keep the take in the on-device draft.
Version 1.5 · iPhone + Android
-
The home page lost half its words
- Problem
- The home page carried nearly 3,000 words: a 19-question FAQ took a third of it, five section intros ran a full paragraph, and every point was told three times, so the first impression was a wall of text.
- Cause
- Each release only added, never removed: one more section, one more question, and each intro repeated the numbers the chip row right under it already showed.
- Fix
- One place per point: intros are one sentence, numbers live in the chips, the FAQ keeps 6 questions and 12 moved to the Support page behind a See more link. The Android test form retired; the Android card is one line and the Google Play button. The page is about half the words.
- What I learned
- A home page is a place to subtract, not to add: one place per point, numbers in chips, long stories on their own pages.
-
Android reaches 1.5: how many spots name a version?
- Problem
- 1.5 landed on Google Play, and version numbers plus a coming soon line sat in the Android section, the top of the home page, two FAQ answers and two blog posts.
- Cause
- For 1.4.2 I gathered the Google Play address into one place, but version numbers and the early-test invite were still written into each page, tied to the name 1.5.
- Fix
- Every spot now says 1.5 for both phones, and the blog no longer says Shoot together is iPhone only. The test form stays, but its invite now says the next version, with no number, so next time only the numbered spots need a sweep.
- What I learned
- Any sentence that names a version number is a sentence edited by hand on every release: say the next version instead of a name wherever possible.
Version 1.6 · iPhone
-
Weekly card: 22 cards drawn in code, face down on a table in the room
- Problem
- I wanted a small reason to pick up the camera each week, without turning it into a day counter or a stream of reminders.
- Cause
- A photo prompt as plain text is easy to scroll past; it needed to be an object you can touch, waiting in em's room.
- Fix
- A deck of 22 cards drawn entirely in code: a letterpress frame, engraved hatching clipped to each shape, paper grain and exactly one foil detail, in each room's colours. Each week you pick one of three face-down cards; the three come from a seed on your phone plus the week, never repeat a card drawn in the last eight weeks, and need no network. Once turned, the card stays still: no more frames are drawn.
- What I learned
- Drawing from data (SVG path strings) instead of images keeps the app light, and lets a test check that every shape stays inside its frame before anyone sees it.
Version 1.5.1 coming soon
-
The first photo was still brighter: iPhone's own processing
- Problem
- After the 1.5 screen-flash fix, the first photo of a strip still came out brighter than the rest.
- Cause
- The camera had iOS 17's fast capture prioritization on: when it sees shots taken in quick succession, the iPhone lowers how much it processes each photo. The first shot got the full multi-frame processing (lifted shadows), the next ones a lighter pass, so they looked darker.
- Fix
- Fast capture prioritization is off in our camera patch, so every photo in a strip gets the same processing. Older phones keep one fixed quicker setting for every shot, as before.
- What I learned
- When only the first shot differs, look for whatever treats the first shot differently; last time I fixed a possible cause, not the main one.
-
Shoot together for a group, up to 5
- Problem
- Shoot together worked for two people only, while groups of friends far apart wanted one print too.
- Cause
- The invite, the code and the drafts were all built around a fixed "A sends, B finishes".
- Fix
- Turns replace A and B: pick how many (2 to 5), and the invite travels from person to person, each carrying every frame so far and whose turn it is. The last person saves the print and shares it with the group. A 2-person invite is unchanged, so 1.5 and 1.5.1 phones still pair; a 1.5 phone given a group invite asks to update.
- What I learned
- A required field plus a version number let an old app say "update me" instead of misreading a new format.
-
White text on white on the selected choice
- Problem
- On iPhones, picking another layout in Shoot together left that button white, and its white label vanished.
- Cause
- Unselected buttons have a gloss (a gradient). On selecting, the gradient was cleared with undefined: gone on the web, but on iPhones the old layer stayed under the text.
- Fix
- A selected button now replaces the gradient with one of its own dark fill instead of clearing it. Fixed for every button built this way in the photo booth, with a test that rejects the old way.
- What I learned
- Working on the web is not working on the phone: a style that broke only on phones gets a test that forbids it.
-
Sending a recipe without a public post
- Problem
- Everyone had not received a single recipe.
- Cause
- The way in sat three levels deep (⋯, Share look code, then the share card), and the send page asked for a public post link by default: about 15 taps, three app switches, and private accounts stopped there.
- Fix
- After a save in the editor (a photo edited in several steps), the photo booth or a story collage, the app asks once: Send this look, frame or style; every save after that still has a small Send to Everyone link in its saved note. The send page now defaults to sending us the photo by DM after you press Send; a post is just one option. The photo is still required. At most once per version and three times in all, never in the same run as the rating or reminder ask.
- What I learned
- Count the taps from the proudest moment to the Send button; every step that makes people go public is a place they stop.
-
A mode bar that never covers the photo
- Problem
- Going from editing to the photo booth or a story meant going back Home and scrolling, with Record and Recipes far down.
- Cause
- Home was the only door to every mode, and a usual tab bar would sit on each editor’s own toolbar and over the photo.
- Fix
- A floating bar on Home and Recipes only: real glass on iOS 26, frosted glass on older iPhones, the web and capable Android. The tint under the labels is computed so they stay readable over white and black photos. It stays in view at the top and fades away only when you scroll down to the board of modes (which already leads to each one); scroll up and it is back. A printed strip now offers Make a story from this strip and Keep editing this photo.
- What I learned
- A nav bar only earns its place where there is no other way in: once the board of modes is on screen, the bar steps aside.
-
Text on layouts that have none
- Problem
- Five layouts, like Stamp & stars or Polka dots, had no text slot you could type in, so the Text tab was empty.
- Cause
- Text came only from slots a layout declares (title, quote, place); a layout that declares none had nothing to type into.
- Fix
- The Text tab now always offers to add the Title, Quote or Place a layout lacks. The new text appears in the middle of the slide in view, ready to type, drags anywhere like built-in text, and stays in the draft.
- What I learned
- Reuse the existing path (text slots and drag placements) instead of building a second kind of text.
-
Instant pair ignored a new backdrop colour
- Problem
- In Instant pair, picking another colour in the Backdrop tab turned the gingham into plain cream, whichever colour was picked.
- Cause
- This post’s gingham is a pattern. The Backdrop tab rightly offered that pattern’s colours, but the posts’ backdrop step treated every pick as a new backdrop and removed the pattern.
- Fix
- A colour of the post’s own pattern now just recolours it; any other backdrop still replaces the post’s ground. Tests cover both.
- What I learned
- Two places reading the same choice two ways is where bugs hide: test exactly that combination.
Version 1.5 · iPhone + Android
-
Android was on Google Play, the site still said coming soon
- Problem
- Version 1.4.2 was live on Google Play, but the site still said Android was coming soon and every Android button led to the test sign-up form.
- Cause
- “Coming soon” was written into each page, and nothing held the Google Play address, so nothing on the site changed the day the app went live on Play.
- Fix
- The Google Play address lives in site.config.json and every Android button goes there. The Android section names 1.4.2 and says 1.5 is coming; the form stays for anyone who wants 1.5 early. What’s new lists 1.4.2 for both iPhone and Android. The top of the home page has a Google Play button next to the App Store one, the note under them reads iPhone v1.5 · Android v1.4.2, and the search description names iPhone and Android.
- What I learned
- Each store has its own state: name the version per store instead of one shared “coming soon”.
-
A blog, and a home page that leads with the photo booth
- Problem
- The site had three guides and nothing for the searches 1.5 can win, like a long distance photo booth or pose ideas. The home page still described 1.4.2.
- Cause
- Every page shared one share picture and one title pattern, and English pages used Vietnamese slugs, so an English search had little to match.
- Fix
- A blog with four articles in Vietnamese and English, each language with its own slug, title and keywords, article data, breadcrumbs and its own share picture. The home page now opens with the photo booth, then Shoot together and what is new in 1.5, with counts from the 1.5 listing.
- What I learned
- Write for the search, not the feature list: the room had no search demand, so it lives inside the 1.5 article instead of its own page.
-
A saved look opened on the wrong photo
- Problem
- Using a look from Recipes put it on the newest photo in the editor, not on a photo you chose. On the phone the look came from, that was the very photo it was made on.
- Cause
- Use opened the last edit draft and changed its colour, a shortcut from when every saved look was your own.
- Fix
- Use now opens your photo library first; the look goes on the photo you pick. Only the colour carries over, never beauty or light edits made on the original photo.
- What I learned
- A shared look is a reference. The photo should always be the person’s own choice.
-
The recipe form forgot everything in English
- Problem
- On the recipe sharing page, switching to English emptied the code and every answer. In some in-app browsers, Copy caption put nothing on the clipboard.
- Cause
- The language link was a plain address: it dropped the code after the # and the page kept no answers. Copying used only the newer clipboard tool, which some in-app browsers lack or refuse, and it failed silently.
- Fix
- The link now carries the code, and the answers ride along once in the tab’s own short-term storage, cleared on arrival. Copy falls back to the older copy command, and if that fails too it selects the caption for a long press. The button waits until there is a code.
- What I learned
- Test the page where people really open it: the in-app browser, mid-form, in the other language.
-
2016 was purple, not vibrant
- Problem
- Both 2016 looks gave a cool purple layer, with none of the yellow and pink that make a photo glow.
- Cause
- The old recipe pushed the photo toward blue, tinted its shadows and mids violet, and turned saturation down.
- Fix
- Rebuilt warm: yellow highlights, plum-pink shadows, richer pinks and yellows, greens leaning gold. 2016 Lite is the softer, airier version. Both still pass the skin and neutral checks.
- What I learned
- Judge a look on real photos. A recipe can pass every number and still feel wrong.
-
New recipes, but the phone kept the old list
- Problem
- After changing the Everyone list on the site, the phone kept showing the old one.
- Cause
- The app keeps its copy for 6 hours to avoid needless requests, and its retry button only shows when loading fails.
- Fix
- Pull down on Everyone to load now, still the same one request to that public file.
- What I learned
- Every cache needs a way for people to refresh it themselves.
-
Browsing stickers meant opening a drawer, and em’s room hid them under the tin
- Problem
- Scrolling stickers meant opening All stickers. In the room, low stickers sat under the tin, a swipe in the tin dragged the room along, and with full walls the tin showed one line.
- Cause
- The panel held two fixed rows. The tin covered the room instead of making space, and the wall’s swipe caught every swipe, even inside the tin.
- Fix
- One sideways strip runs through every pack in the panel, drawing only the packs near the screen. The room shrinks to fit above the open tin, a swipe in the tin only scrolls it, and full walls still open it and say how to remove one. A searched sticker now takes one tap.
- What I learned
- A gesture on a parent screen has to know where the finger started, even when the content sits in a pop-up.
-
Keeping HSL and Toning
- Problem
- These two tools were dropped from 1.5 to make room for Areas, then Areas moved to 1.5.1, so this version lost both with nothing in their place.
- Cause
- Removing them was tied to Areas, and nobody revisited the reason when Areas moved.
- Fix
- Both are back in Edit. Old photos, recipes and codes look the same as ever. Areas will join them, not replace them.
- What I learned
- When you move a feature, recheck everything removed to make room for it.
-
The arch layout left a square shadow on backdrops
- Problem
- On a surface backdrop, the arch layout showed a square shadow behind its arched photos.
- Cause
- Shadows on surfaces were always drawn as rounded rectangles, ignoring the slot’s real shape.
- Fix
- The shadow now follows the arch.
- What I learned
- When you add a slot shape, check every layer drawn from slots, shadows included.
-
Everyone sat behind a tile that never mentioned anyone
- Problem
- Everyone is the biggest new part of 1.5, but its Home tile said Looks and color codes over a drawing of a code card. In English, Korean and Chinese the tile’s name did not match its screen.
- Cause
- The tile was named when it only held saved looks. Its longer description reached screen readers only, so sighted people saw two words.
- Fix
- Công thức keeps its name; the second line now says everyone, and the art is friends peeking over a print. With nothing saved it opens on Everyone, otherwise on the segment you last picked. The other three languages now match their screen.
- What I learned
- Discovery lives in the words people actually see, so before renaming, check which line is drawn on screen.
-
1.5 nearly shipped without a What’s new
- Problem
- Anyone updating to 1.5 would have seen nothing: no What’s new sheet and no link at the foot of Home.
- Cause
- A size cleanup rightly removed 1.4’s list, since a phone only shows its own release’s. Nobody added 1.5’s, so the app treated this release as having nothing new.
- Fix
- Added 5 pages for 1.5: Shoot together, Everyone, em’s room, music layouts and Creative, each with a real screen in four languages. Each shot is 1040 px wide so it stays sharp on a 3× screen, about 690 KB for the set.
- What I learned
- When you remove something per release, put adding the next one on the release checklist.
-
Taking in-app purchases out of 1.5
- Problem
- Version 1.5 had a paid room and two support coffees. Once they were built, they brought more work outside the app than I had planned for.
- Cause
- Selling in an app is more than a Buy button: tax, a bank account, refunds, restoring purchases, and a room you must keep forever for the people who bought it.
- Fix
- Took it all out: no paid room, no support sheet, no purchase library in the app. Everyone still gets five rooms, and the Champagne satin backdrop and Gold foil frame stay free. Rate the app and Feedback are back at the foot of Home.
- What I learned
- Being built isn't a reason to keep something. A feature belongs in a release once the work behind it is ready too.
-
Counting website visits
- Problem
- I'm about to share the app in a few new places, but I couldn't tell if anyone visits the website or where they come from.
- Cause
- The website had no numbers at all, because I left out every measuring tool from the start.
- Fix
- Added Vercel Web Analytics to the website: no cookies, totals only. The part of a link after the #, where recipe codes live, is cut before anything is sent, and the privacy page now says all this. The app did not change and still has no measuring tools.
- What I learned
- When you add a measuring tool, the privacy promise has to change in the same update. The website and the app are separate things, so each promise should say which one it covers.
-
The code hit its 8 MB budget again, and the next 190 KB was developer tooling
- Problem
- The phone build sat at 7.98 of 8 MB of Hermes bytecode on iOS and 2.99 of 3 MB of pictures, with another feature still waiting to land. There was no room left for it.
- Cause
- The bundler keeps anything a file imports, even when the call sits behind a development check or nobody reads the export. The module map showed the hot reload client and a text formatter reached through a single getter, a library version check that only runs in development, an experimental navigation stack re-exported from the router’s main file, and networking for a background mode the app has off. The 29 screenshots and the text of the 1.4 “What’s new” pages were also still inside, though a phone only ever shows its own version’s list.
- Fix
metro.config.jsnow cuts exactly those imports, the two development tools only from production bundles, so the dev server keeps them. The 1.4 pages and ten strings nothing read are gone.src/metroStubs.test.tsfails if a library moves that code or the app starts using it. iOS went from 7.98 MB to 7.79 MB, Android from 7.96 MB to 7.77 MB, and pictures from 2.99 MB to 2.47 MB; nothing on screen changed.- What I learned
- Look for who keeps a module alive, not only how big it is: listing what each import alone holds in the bundle found 165 KB in four one-line cuts. And I checked the assumption before cutting: one candidate looked unused but its setup runs at every launch, so it stayed.
-
A lovely room, and nobody could tell what to touch
- Problem
- Using it on my phone, a few things showed up: nothing said the objects could be touched, nothing showed that em can walk the whole wall, tapping a sticker did nothing, and the room card on Home still drew em after you picked another character.
- Cause
- Cutting the words in the last round also cut the invitation: objects answered a tap, but nothing asked you to try one. The view also always slid in 320 ms, near or far, because the distance was read after em had already moved, so the long wall felt like three separate pages. And the Home card was drawn once and cached under a key without the character in it.
- Fix
- On the first few openings a sparkle hops over up to 3 things you haven’t touched, then stays still, and anything you’ve tried drops out. Every object answers with a sparkle, a squash or a line. Em walks to the next corner and back with the view following, and a tap on the floor leaves a small ring. Tapping a sticker outside the tin wiggles the tin and em says to open it. The Home card changes as soon as you’re back. Your first developed tray may bring the system’s rating prompt, under the same rules as before. Your first video or shared strip leaves a small gift sticker pack on the tin. With Reduce Motion there’s one still sparkle, and once the hints are over no frame is drawn.
- What I learned
- Removing a label takes an invitation, not only feedback: feedback only helps someone who already touched. And anything cached by key needs everything it draws in that key.
-
Em’s room was all words, so every object became its own button
- Problem
- Em’s room had over 100 words: labels, chips, a small map, slots saying "not here yet". The empty room had more words than a full one. You read before you played, and the prettiest frame stayed blank until you found the drag.
- Cause
- Each feature added a row of text under the room, because text is the cheapest way to say this can be tapped. The room had become an illustration on top of a form.
- Fix
- The room fills the screen and each object is its own control: hats on a rack hop onto em, the tray sits on the floor, then the bell, the sticker tin, the photo book, and a camera to go shoot. The main view is down to 4 words. Em carries the first print to the frame herself instead of an instruction, one thing sparkles per opening, and what hasn’t come simply isn’t there. Em walks all three corners and the view follows. Every tap gets an answer; VoiceOver keeps its labels and every object keeps a 44 pt target. You can also pick the main character and give a private nickname, kept on the phone and never on an export.
- What I learned
- Cutting words isn’t deleting them: each row removed has to come back as feedback on touch, or people tap a dead picture. And minified JS lies about size: the room added 8 KB of JS but over 30 KB of bytecode, so measure the thing that ships.
-
Recent stickers did nothing on a tap, the drawer handle did not drag, and em’s room was blurry
- Problem
- On a phone, tapping a sticker in the Sticker tab’s Favourites or Recent row added nothing, though the drawer added stickers fine. The handle on top of the drawer was only a drawn bar and did not move when dragged. And em on Home’s room card looked soft.
- Cause
- The handle was drawn but had no gesture. The room card was baked into an image at 1 pixel per point, the setting meant for wide soft backdrops, so a 3× screen stretched it three times. The tap bug has no confirmed cause yet: every kind of tap worked on the web, and the test only went through the drawer, so it saw nothing.
- Fix
- The handle reuses the grip of the tools panel in the photo editor: drag up and the drawer grows to nearly the full screen, drag down and it goes back, a long pull down closes it. The room card is baked at the screen’s own pixel density (up to 3×), still once. The two sticker rows now lay their buttons out in rows instead of at coordinates, like the film look strip in the same panel; this one still has to be tried on a real phone.
- What I learned
- A web test only proves the web: touch can differ on a phone, so a test has to walk the path people walk, and a bug seen only on a phone can only be called gone on a phone. A pre-baked picture has to follow the screen’s pixel density, most of all when it has fine lines.
-
Mịn da measured 721 ms a redraw, and every change was being drawn twice
- Problem
- The GPU test put Mịn da 1.0 at 721 ms a redraw, five times the old number. A small tip hiding itself on the collage screen also redrew the whole collage, 66 GL draw calls, with nothing changed.
- Cause
- Three things stacked up. Skia 2.14 on web drew every update twice, because
render()asks for one more redraw after the commit has already drawn. The test pressed a key every 120 ms, so each redraw queued behind the last and the GPU timer counted the wait too. AndCollageCanvashasmemobut got new functions and objects on every render, while the Photobooth canvas had nomemoat all. - Fix
- A patch to Skia makes one commit draw once. The Mịn da shader now checks for skin first, so a pixel that is not skin skips 28 photo reads. The collage and strip props stay stable, so a tip hiding costs 0 draws. The test waits for the GPU before the next key. The Mịn da row is down to 74 to 128 ms, 106 ms on an all-skin photo, and saved files are byte for byte the same.
- What I learned
- When a number looks strange, doubt the ruler before the code: twice as many draws as key presses gave it away at once. And work that changes nothing on a pixel should be skipped on that pixel: same picture, cooler phone.
-
The "price list" label in the Matcha room faded once the room card was always there
- Problem
- The rooms' contrast check found Home's small "price list" label in the Matcha room at 3.2 to 3.4 to 1, under the 4.5 I hold myself to. It passed the week before.
- Cause
- The room behind Home stays put while the page scrolls, and the Matcha room has green beadboard across the bottom 18% of the screen. Once the room card showed on Home all the time, everything below moved down and the label landed right on the beadboard. Matcha's muted text colour was picked for the light wall, not for the darker stripes.
- Fix
- Home in the Matcha room uses a slightly deeper muted colour (
#3A4834instead of#4F6148), on Home only: 4.6 on the beadboard, over 7 on the wall. The editing screens keep the old colour. The other five rooms pass as before. - What I learned
- A background that stays still under a scrolling page means every line of text passes over its darkest part sooner or later. Text colour has to hold against the whole picture, not just the spot it sits on today.
-
A cute room that stayed on the phone, and only one corner of it
- Problem
- Em's room had a single corner, nothing could be decorated, em stood still, and the saved week was a sheet of paper, so nobody looking at it could tell there was a room behind it.
- Cause
- The room was built as one ready-drawn picture to stay on budget: the app is close to its 8 MB ceiling, and anything that moves can keep the phone redrawing. Adding each thing the usual way would cost both size and battery.
- Fix
- Save the week gained a Room card: the room as a tiny box, the print of the week leaning in front, the colour code's QR on a white ticket, in 9:16 and 4:5. Decorate reuses the Photobooth's stickers plus 4 items drawn in code, and at rest they are all one picture. The room grew to three corners on one long picture: a swipe slides the picture instead of redrawing it, and furniture opens from what you make and the days of the year. Em takes one walk when the room opens, then gets on with her day by the phone's clock, draws no more frames after that, and just stands with Reduce Motion or on an older phone.
- What I learned
- Reusing what exists is usually cheaper than optimising something new: four big features added about 50 KB because they reuse drawn pictures and the sticker system. And motion needs an end point: measure the frames drawn after em stops, and that number must be 0.
-
The room only appeared after a first save, and the reminder switch sat at the very bottom
- Problem
- Em's room had a way in only once the week had photos, so new people never knew there was a room. The Gentle reminders switch sat at the bottom of Home, far from what it controls, and the area around the room looked crowded.
- Cause
- The way into the room was the week's strip, so with no photos there was nothing to show. Each new feature added one more line to Home, and nobody had laid the whole area out again.
- Fix
- Home now always has an em's room card: em in her corner of the room (drawn from the room's own art, baked once into an image, nothing moving), the week's count and small prints, or an invite to save a first photo. The empty room invites you to take a few photos and opens the photo booth. Gentle reminders moved to a bell at the top of the room, still off in one tap. The card has 16 pt padding, 24 and 40 from the other sections, and the first-open tour gained a stop for the room.
- What I learned
- What people haven't seen doesn't exist for them: the way in should be there from day one, even while the room is empty. And a setting belongs next to the thing it controls.
-
Six patterned backdrops had to fit in 40 KB, so I split the fabric from the pattern
- Problem
- The third round of backdrops and frames brought a watercolour starry sky, silver stars on velvet, butter polka dots, hearts on terracotta canvas and sage with gold stars, plus a plain colour wheel. The app's pictures were already at 2.96 of 3 MB, and each patterned backdrop as one 540×960 WebP weighed 16 to 32 KB: three of them would have used up the room.
- Cause
- A compressed picture has to keep every crisp edge of a star, a dot or a heart, and those edges are what make the file big. The soft fabric under them costs almost nothing: rendered bare, with no pattern, each ground is 1 to 7 KB.
- Fix
- Each patterned backdrop is now two layers: a soft ground rendered in Blender, and the pattern the app draws over it itself, once per print, from a fixed seed so the preview, the save and the story match (
patternScenes.ts): gold stars as foil gradients that turn with each piece, silver stars with a noise glitter layer, tiny specks grouped into a few point draws. The new frames are all drawn in code from the lace and watercolour the app already had. The six backdrops add 31.6 KB, the frames add nothing, and a plain colour travels in the frame code as an optional field, so version 1.4 still opens it. - What I learned
- Before compressing harder, ask which parts of the picture really need to be a picture. Crisp edges belong in code; soft materials can stay images.
-
Month calendar places photos by the day they were taken, and what two photos on one day do
- Problem
- The Month calendar layout has to put each photo on the cell of the day it was taken, weeks starting on Monday. But photos can come from another month, share a day or have no date at all, while the app's layouts are fixed data: every cell sits in one place.
- Cause
- Here each cell's place depends on the photos themselves, so it cannot be written into
templates.json. On top of that, Hermes compiles array destructuring (const [x, y] = …) into a whole iterator loop, so the first version of the cell generator cost about half again the bytes it needed. - Fix
- A pure function,
calendarPlan, picks the month most photos were taken in, puts each photo on its day, keeps the later photo when two share a day, lays undated photos on the free days from the 1st, and one quiet line says which photos stayed off.withCalendarmoves the photo cells onto their days and draws the outlines, day numbers and weekday heads. The same round brings Month in full, Lately and a new Scrapbook, with pins, binder clips, a wax seal, gold sparkles and torn paper all drawn in code, no image files added. - What I learned
- When a layout depends on data, keep the description in the template and push the math into a pure, tested function (leap years, Monday-first weeks, photos from other months). And measure bytecode, not lines of code.
-
Two new layouts saved slower than their neighbours, and the time went to waiting for the GPU
- Problem
- On a busy machine, Index and Month recap carousel failed their save budget: a new layout may take at most 1.25 × the existing layout closest to it, and Index took 826 ms against 785.
- Cause
- I expected the text to be the cost, but a CPU profile of one save said otherwise: the labels and the scattered words took under 4 ms. Every photo went to the GPU and back to the CPU two or three times on its way into the story (each halving step, the small copy, the graded cell), and every read back makes the page wait for the GPU to finish. Index has 9 photos in small cells, so it paid 27 of those waits where its neighbour paid 12, and when the machine was busy each wait grew.
- Fix
- On the web, those in-between pictures now stay on the GPU as textures of the one shared surface (
renderOffscreen(…, onGpu)): the halving steps, the small copy the look is drawn from, and the graded cells, which only that surface ever draws. A save now reads back once per slide. Index went from 273 to about 206 ms and Month recap carousel from 310 to about 242, every other story got faster too, and the saved pictures are the same pixels (mean difference 0.0001 of a level). Phones already draw saves on the CPU and do not change. - What I learned
- Profile before guessing: the suspect was the text, the cost was synchronisation. On a GPU, count the round trips, not only the work.
-
The code passed its 8 MB budget, and most of the cut was animations the app never plays
- Problem
- After three 1.5 features merged, the phone build failed its own size check: 8.05 MB of Hermes bytecode on iOS and 8.03 MB on Android, over the 8 MB budget, with more features still to come.
- Cause
- Each feature fit alone; together they crossed the line. Measuring every module from the source map showed the biggest dead weight was not in our code: Reanimated’s main file re-exports its whole library of entry and exit animations and screen transitions, and the bundler has no tree shaking, so all of it shipped though the app animates with shared values only. Each look also carried a design note no screen reads.
- Fix
metro.config.jsresolves those two re-exports, and only from Reanimated’s main file, to an empty module, and a test fails if the app ever imports one of those names. The look notes moved to the docs, and unused imports and text keys went too. iOS went from 8.05 MB to 7.83 MB and Android from 8.03 MB to 7.80 MB; nothing on screen changed and old drafts and codes open as before.- What I learned
- Measure before cutting: the bytes were in a library line we never call, not in our features. And when a shortcut leans on something staying unused, a test has to hold it.
-
Nobody turned reminders on, so em asks at the right moment and got a room
- Problem
- Gentle reminders were off and only offered on a small card after a happy save, so almost nobody saw them. The weekly page was a grid of small copies you looked at once.
- Cause
- The ask came late, and the weekly page gave no reason to come back: nothing changed and there was nothing to do.
- Fix
- Em asks once right after the first save, with a sample line, and New occasions is its own unticked switch; a refusal in the system dialog is never asked again. Every reminder has a reason: a week with photos says the prints are ready, a quiet week gets a compliment on her eye at most every other week, never on her looks. The weekly page became em's room, one Skia canvas: prints wait in a tray, hold the button two seconds and they hang on the line, em's friends visit for what she made, the shelf only gains things. Drawings are recorded once into pictures, at most 7 thumbnails of 240 px, the line sways twice then stays still, and the room code loads only when it opens.
- What I learned
- A good habit needs a reason to come back, not a count of days. And ask for a permission right when someone is happy, once.
-
Shaky strokes, a story you could not zoom, and Vẽ for the Photobooth
- Problem
- Drawing with a finger left slightly wobbly lines, worst when drawing slowly. Small details were hard because the story could not be zoomed (a second finger only dropped the stroke), and the Photobooth had no Vẽ.
- Cause
- A touch screen reports the finger a few pixels off at random, and the app joined every point with a straight line, so the jitter showed in the stroke. The story was always drawn at its frame size, and so were its touch areas.
- Fix
- Every point now goes through a one-euro filter: slow moves are smoothed hard, quick ones barely lag, and curves are drawn through the points that stay. Two fingers zoom the story from 1× to 4× on every tab: the picture redraws sharp, the whole touch layer scales with it so a tap still picks the right photo and a drag still reframes it, and it is only a closer look, the saved picture never changes. The Photobooth gets a Vẽ tab (crayon, chalk, eraser, hold to hide, undo per stroke); strokes stay in the draft and travel in the mã khung as an optional field, so 1.4 still opens the code.
- What I learned
- Filter sensor data as it arrives, not when you draw it. And to zoom a screen full of touch targets, scale the whole touch layer instead of recomputing every coordinate.
-
Three new pickers for about 15 KB of app
- Problem
- Fifty stickers sat in a sideways grid of two rows, eleven fonts in two rows of small tiles, and only looks were easy to browse in Mọi người. Adding a familiar sticker again or finding a usual font meant scrolling. Meanwhile the iOS JS bundle was about 40 KB under its 8 MB budget.
- Cause
- Each new sticker pack or font added a group to the same row, so what people used most was never where it was easy to reach.
- Fix
- The Sticker tab keeps two rows, ♥ Favourites and Recent, and every sticker lives in a drawer with search and five columns; holding a sticker shows it big to heart or add, and un-hearting offers Undo. Fonts became a specimen book, each line written in your own words, with hearts and filters, shared by the story editor and the Photobooth caption. Mọi người became a two-column pinboard of looks, stories and frames; a tap shows what the code carries and Dùng opens it. Hearts stay on the phone and are written only on the first heart. The old pickers were deleted, not kept alongside, so the iOS bundle grew only about 15 KB.
- What I learned
- Near a size ceiling, renew by replacing, not stacking, and put what people pick again first.
-
Six backdrops rendered from real surfaces, seven glitter ones retired
- Problem
- A few code-drawn backdrops read as plastic: tinsel curtains, stuck-on stars, a rhinestone wall, flat painted lilies. Next to a real strip they looked like clip art.
- Cause
- Glitter and gems need real light to look right. Redrawn as shaders they came out as an even speckle with no folds and no shadows.
- Fix
- Six surfaces built in Blender (white satin, champagne satin, a painted backdrop, window light, pool caustics, pastel blocks), rendered top down and shipped as 540×960 WebP files of 2 to 12 KB each. Each is decoded only when needed, and the last two stay in memory. Morning sun's leaf shadow is its own layer multiplied over the strip too, so the leaves fall across the print as in the render. The seven old backdrops map to successors, so old drafts and codes still open, and the strip code gained a field for backdrop 33 onward.
- What I learned
- Bake anything that needs real light once and ship it as a small picture. Retiring a choice always needs a place for the old ones to land.
-
The app carried 4.4 MB of fonts to use six of them
- Problem
- The phone and web builds packed 50 font files (4.4 MB) though the UI uses six faces, and
check-sizenever counted them because they don’t live underassets/. - Cause
- The faces came from the
@expo-google-fontspackages throughimport { X } fromthe package name. Each package’s entry file callsrequirefor every weight, so the bundler shipped all of them, whatever the code used. - Fix
- The six UI faces are cut to Latin and Vietnamese with HarfBuzz’s subsetter (kerning and hinting kept, so text already drawn on prints looks the same), each file required by its own path. Along the way Fraunces 600 became Phudu for names and tickets, and IBM Plex Mono became Chivo Mono for numbers.
check-sizenow counts every font file and fails on an import from a package name. The export went from 16.7 MB to 8.5 MB. - What I learned
- Measure what actually ships, not what you think you use, then turn the finding into a check so it can’t come back.
-
Crayon strokes drawn in code that still save fast
- Problem
- The Draw tab needed crayon and chalk with real paper tooth and no image files. The first version ran a noise shader for every pixel: on web, a save after reopening a draft came out black, and 60 strokes made a save almost 300 ms slower.
- Cause
- On web, every shader made while a picture is being recorded is freed when the recording ends (to stop a leak), so the shader kept for later was already gone. And phones draw saves on the CPU, where a three octave noise shader for every pixel is expensive.
- Fix
- The tooth is worked out once into a few seamless 256 px tiles (one per coverage band of a stroke), drawn as image shaders tinted by the stroke's colour and made before any recording starts. The live stroke moves through a shared value, so React doesn't re-render while the finger moves. 60 strokes now add about 70 ms to a save.
- What I learned
- Measure the real save path on the slowest device, not only the frames on screen, and know when a library keeps or frees your objects.
-
Gentle reminders that stay on the phone, with no push riding along
- Problem
- Weekly reminders needed a notifications library, but by default it adds the iOS push entitlement (
aps-environment) and declares a Firebase Cloud Messaging service on Android, in an app that promises nothing leaves the phone. - Cause
- The library treats server push as the default; reminders scheduled on the device are a small part of it.
- Fix
- Schedule on the device only (
DATEtriggers),enableRemoteNotifications: false, a config plugin that removes the push service and receiver from the manifest, the exact-alarm and C2DM permissions blocked, andcheck-offlinefails if any of the three comes back. Reminders are on only if you say yes and off in one tap, at most one line of text a week, replanned from local state each time the app opens. - What I learned
- Read what a library adds to the manifest and entitlements, not just its API, and turn the promise into a build check.
-
Look shelves sorted by what they are for, and six purple and yellow looks
- Problem
- The look shelves were hard to browse: studio was really scenes, film looks sat on five shelves, black and white on three, and nobody could tell film from film recipes. We also wanted the purple and yellow looks people love right now, without a trending shelf.
- Cause
- Each batch of looks added a shelf named for when it was made, not for what people need.
- Fix
- Thirteen shelves named for a job or for what a look imitates: portrait, travel & sunset, film, cinematic, instant & disposable, digital throwback, black & white and the old ones. Five new looks join the right shelves, Instant Sun gains a violet sky and yellow light, and all six pass the colour gate. Shelves are never stored, so no code or draft changes.
- What I learned
- Name shelves for what people look for, not for when looks were made, and measure the distance between looks that sit close together.
-
Công thức and Mọi người looked like another app when the room changed
- Problem
- Công thức and Mọi người looked like another app when the room changed, most of all in Đêm and Kẹo.
- Cause
- The screen kept its own paper colours and older controls instead of following the room like Home and the booth, and the nhà chọn sticker still used lamp yellow on paper.
- Fix
- Colours now come from the room's tokens. The tabs are the room's glossy capsule, section labels are the booth start's white tag with a sticker, stubs sit on the glossy surface, saved looks are cards, and the mascot shows on the empty, loading and offline states.
- What I learned
- A screen with its own colour set drifts every time a room is added, so derive it from the room's tokens.
-
Two search fields that looked like two different apps
- Problem
- The look search and the sticker search looked like they came from two different apps, and both felt like a stock form.
- Cause
- Each screen drew its own field, a rounded box with a lens and an outline pill with no icon, and on the web the app's yellow focus box sat inside the field.
- Fix
- One shared SearchField: a glossy pill in the room's look, a lens with a sparkle, the body font, a 44pt X, and on focus an ink ring with a heavier glyph.
- What I learned
- A field used in several places should be one component, and anything that draws its own focus state has to opt out of the global ring.
-
The Chụp chung sheet was stacked and confusing
- Problem
- People found the Chụp chung sheet stacked and confusing, and its ticket notches showed the wrong colour in Đêm.
- Cause
- It was one faded box of five stacked blocks with mono labels, and the notches took the shared surface colour instead of the box's.
- Fix
- It is now a room sheet like Chọn phòng: a grab bar, a sticker, two style cards that each show a mini print of the picked layout, one sideways layout row, the side toggle only when it matters, one ticket and a smaller stub. The sheet passes its own ground down so the notches always match.
- What I learned
- Show a choice as a picture, not only a word, and take a notch's colour from the surface it sits on.
-
Music layouts that looked great but hid the photos
- Problem
- The five music layouts hid the photos: a dense speaker mesh, a grey jewel case lid, a big disc hub, and discs half buried under their cases.
- Cause
- The renders put real material over the photo holes (the grille about half opaque, the lid tinting the whole cover, the vinyl sleeve darkening its photo 11%), and the boards tucked each disc under its case.
- Fix
- A clear-holes.py script thins the art inside every photo hole: the grille at most 0.18, only the spindle solid, the lid down to 0.11 with its glare kept, the sleeve darkening 3.4%. The discs slide out beside their cases, each at most 11% hidden.
- What I learned
- However good the object looks, the photo comes first, so measure how much of each photo is covered while reviewing the boards.
-
A new film look from one instant print
- Problem
- The film shelf's Cool Negative was nearly the same as Neg, and we wanted a look of our own, like a sunny instant print.
- Cause
- Cool Negative only just met the strength and distinctness bar, so next to Neg it had nothing of its own to show.
- Fix
- We measured the reference print: whites topping out near 82%, slightly lifted blacks, cream highlights, plum shade, a dense violet blue sky and near black leaves. Instant Sun is built from those numbers and passes the same colour gate as every look. Old codes and drafts that name Cool Negative open as Instant Sun.
- What I learned
- To match a photo, measure it first, then let the gate keep whites from turning green and skin from turning yellow.
-
The first photo of a strip came out brighter than the rest
- Problem
- People saw the first photo of a strip come out brighter than the others with Nháy khi chụp on.
- Cause
- The screen flash waited a fixed time before the shot, not until the screen was really at full brightness. From the second shot, the last shot's brightness restore could still be queued, so a shot could land before the screen was fully up. Nothing else in the code is a sure cause yet.
- Fix
- Each flash now waits for the screen's brightness to reach full, then gives the camera the same moment to meet it, so every shot is taken in the same light. The hidden diagnostics line now shows the last 4 shots' exposure time and ISO, to check on a real phone.
- What I learned
- Wait for the light to be on, not for a number of milliseconds, and measure anything about light on a real phone.
-
Switching layouts in Tự do left the photos where the old layout had them
- Problem
- With Tự do on, picking another layout changed the background but left the photos exactly as before, so the app looked stuck.
- Cause
- Tự do kept the prints in place on a layout switch on purpose, and turning it on again always restored the saved arrangement without knowing which layout it belonged to.
- Fix
- A layout switch with Tự do on lays the photos on the new layout's own slots, extra photos fanned in the middle. The saved arrangement notes its layout, so turning Tự do on again restores it only on that layout. Undo still brings the old arrangement back.
- What I learned
- When people act to see a change, show the change, and let undo be the way back.
-
Tapping a room's picture didn't pick the room
- Problem
- In Chọn phòng, tapping a room's picture did nothing. Only a swipe or the small dots below changed the room.
- Cause
- Each room card was only a drawing with no touch target, because the dots were already the screen reader's control.
- Fix
- A room card now takes a tap and does what its dot does: a tap changes the room. Screen readers still use the dots, so there is no duplicate control.
- What I learned
- Anything that looks tappable has to be tappable, even when another way exists.
-
Holding Vùng back without losing the areas already made
- Problem
- Vùng needs more time on real phones, so 1.5 ships without it. But drafts, saved looks and colour codes may already carry areas.
- Cause
- Deleting the tool would mean deleting the area pass in the shader and the area field in codes, then building them again for 1.5.1.
- Fix
- A MASK_TOOL flag hides the Vùng tab in Edit. The shader pass, codes and drafts keep areas as before, so a photo with areas still looks right, and turning the flag on brings the tool back.
- What I learned
- Keep the controls apart from the data, and holding a feature back is a one line change.
-
A photo inside a real chrome boombox
- Problem
- The music layouts needed a clear CD case, a portable CD player, a boombox and a record that look like real objects, with the photo inside them: printed on the disc, behind the speaker grille, under clear plastic. Drawn in code they looked flat and cheap.
- Cause
- Vector shapes have no real reflections of chrome or glass. A pre-made picture would cover the user's photo, and putting the photo on top loses the glossy glass over it.
- Fix
- Each object is modelled in Blender (Cycles). Where a photo goes the surface is a Holdout (alpha 0), so the photo drawn underneath shows through the hole; glass over a photo renders in its own pass and is drawn over the photo; the record sleeve is a white card multiplied over its photo. Each layout has its own draw order so a disc sits under its case. A pack step crops each render, shrinks it to the size a 1440 px export draws it at, keeps 32 alpha steps and writes WebP: the whole set is 349 KB. Two renders in one Blender process hung on Metal, so each pass runs in its own process.
- What I learned
- What code can't fake, render once offline, but design the art as layers around the user's photo from the start: body, holes, glass.
-
Dragging an area showed a red error
- Problem
- Dragging an area pin in Edit › Areas on a phone showed "Cannot read property forEach of null".
- Cause
- The pin grew while held through a transform, then the transform became undefined on release. On the phone the style diff read the old value as null and broke; the web build has no such step, so e2e never saw it.
- Fix
- The transform is always an array: scale 1.2 while held, 1 otherwise.
- What I learned
- Never let an array prop flip to undefined, and try anything gesture driven on a real phone, not only on the web.
-
Carousels became one strip you can swipe
- Problem
- A carousel only changed slides with a tap, and a dark shade covered the neighbouring slides, so a photo that crossed a slide edge was never seen whole.
- Cause
- The strip was placed at an absolute offset for the picked slide, and every photo held on to its touch to reframe itself, so no gesture could move the whole strip.
- Fix
- The strip is now a scroll value on the UI thread: it follows the finger, glides on release and settles on a slide only when let go within 8% of its middle. The shade is gone; slide edges are a thin line in the room’s ink. On carousels a photo is tapped before a drag reframes it; two fingers still zoom. Saved slides are byte for byte the same.
- What I learned
- A new gesture is usually about who owns the touch: let the outer layer ask for it in the capture phase, and let the inner one give it up only when it is not busy.
-
One network call in an offline app
- Problem
- The Everyone tab has to download a list of recipes, but the app promised no network calls and CI bans every fetch( in the source.
- Cause
- A blanket ban can’t tell one honest request from a leak, so the choice was to drop the promise or drop the feature.
- Fix
- Exactly one file may reach the network: the offline check now demands one GET to the feed address in site.config.json, no body, no extra headers, and only the Everyone screen may import that file. Android’s INTERNET permission is tied to a flag. The list holds codes only; previews are drawn on the phone.
- What I learned
- When you loosen a guarantee, make the exception as narrow and as checked as the rule, then say it plainly on the privacy page.
-
Removing Nhạc without breaking old drafts
- Problem
- The now playing card was little used but lived everywhere: drafts, story codes, the export, and Lock screen had a whole player bar.
- Cause
- A long lived feature leaves marks in saved data, so removing only the UI would break old drafts and codes or draw something nobody could edit.
- Fix
- The card, its cover and its place are dropped when a draft opens, with a one time note per install; old codes that moved the card still read and new codes never write it. Lock screen has a small note chip where the player bar was.
- What I learned
- Removing a feature is a data migration: list every place it is stored, and keep code indexes append only.
-
Masks without mask textures
- Problem
- Vùng needed gradient, ellipse and drawn-shape masks, each with its own sliders, live under a finger and identical in a 12 MP export, on phones with a history of GPU texture crashes.
- Cause
- The usual way paints each mask into a texture and runs extra passes. That means uploads on every drag, more memory per photo and a separate bake on export, which is where preview and file start to differ.
- Fix
- Every mask is maths inside the one shader pass: each pixel maps back onto the photo through the inverse photo matrix, gets a weight per mask (a line, an ellipse, an inside test plus edge distance for drawn shapes) and those weights add offsets to the seven sliders where they already act. One flag skips it all on photos without masks. A CPU copy of the same maths is checked against the real shader, compiled by CanvasKit in the tests, to 3/255.
- What I learned
- If a feature can be a formula of the pixel position, keep it a formula: no textures to leak, the export is the same image at more pixels, and the test can run the real shader.
-
One photo strip for two people far apart, with no server
- Problem
- Two people in different cities want to share one photobooth strip, in an app with no accounts, no server and no need for a network.
- Cause
- Joining two halves needs something to carry the photos. A custom file (.emdeplam) shows no preview in chat apps, and Android often hands files over with no extension, so the app can’t claim them.
- Fix
- What travels is one 1200×1800 JPEG, the invite: the first person’s pieces at print resolution, a QR holding an EDL1 kind 3 code (the frame code nested inside, style, side, timer, a random nonce, a 7-day expiry) and a few lines of how-to. The other phone reads the QR, checks the 2:3 shape and the expiry, cuts the pieces back out, and each shot merges its half with the other into an ordinary photo, so printing the strip needed no change. Skia re-encodes from pixels, so no EXIF rides along.
- What I learned
- Without a server, let the data travel in something people already send each other (here, a photo), and turn the unusual into the usual as early as you can: once merged it is a plain photo and the rest of the app never needs to know.
-
A cleaner Sticker tab: categories, Recent and search
- Problem
- Eight packs sat in a scrolling row of words above a single scrolling row of tiles, with no way back to a sticker used a minute ago.
- Cause
- The picker grew one pack at a time until finding a shape meant reading words.
- Fix
- One picker for stories and Photo booth: chips with a small sticker, every category in a two row grid that scrolls sideways with the chip following, a Recent group of the last 16 added kept on the phone, and a search that ignores diacritics (“nang” finds “nắng”). Search is a pure function over the catalogue, under 1 ms a keystroke.
- What I learned
- Folding text to plain letters on both sides is enough for Vietnamese search over a small catalogue; no index, no network.
-
Four script fonts that old codes still open
- Problem
- I wanted script and graffiti fonts, but the first three were personal use only, and story codes kept the font in 3 bits with 7 of 8 values used.
- Cause
- The font field is required, so an unknown index makes an older app refuse the whole code. And the original files weighed 140 to 600 KB, full of other Latin letters.
- Fix
- Meow Script, Pacifico, Sedgwick Ave Display and Lobster (OFL, with Vietnamese), cut to Latin-1 and Vietnamese: 1.48 MB down to 169 KB. Lobster has a Reserved Font Name, so its subset takes another name. New fonts ride in a new optional code field that 1.4 skips, opening the code in the layout’s own font.
- What I learned
- Give every code format room for optional fields from day one; new data goes there and older apps still read the rest.
-
Previews for 40 recipes without hosting a photo
- Problem
- A board of everyone’s looks needs previews, but keeping photos people send means consent, storage and deletion to look after.
- Cause
- A recipe code carries the recipe itself, not a picture, so a preview is just something you can compute again.
- Fix
- Draw each code on sample photos bundled in the app, on the phone: only rows on screen, at most 2 drawings at once, kept by the code’s hash. Your photo is picked once and redrawn on the phone, never saved or sent.
- What I learned
- When the data is self-contained, compute at the edge instead of storing outputs, and cap parallel renders so older phones stay smooth.
-
The web code page never ran its own script
- Problem
- Opening a code link (/m#EDL1…) in a browser still said “no code here”, with the code right there in the address.
- Cause
- The site build turns every & in a template into &, script tags included, so && became && and the whole script threw a syntax error on load.
- Fix
- Rewrote that line as an if, added the shoot together case, and checked the page in a real browser instead of only reading the built HTML.
- What I learned
- A static page still needs a real run: a syntax error in an inline script doesn’t break the build, it just quietly switches the feature off.
-
Finding a look by typing “nang”
- Problem
- With 111 looks, scrolling shelves was slow, and most people type Vietnamese without marks.
- Cause
- A plain text match treats “nang” and “nắng” as different words, and “đ” doesn’t decompose like the other marks.
- Fix
- Search folds both sides the same way: marks off, đ as d, lower case. Names, shelves and retired names all match, ranked exact, starts with, word start, inside, shelf only. A query typed with marks puts names with those marks first.
- What I learned
- Search should forgive how people actually type, then use what they did type to break ties.
-
Free mode: free photos on any layout
- Problem
- I wanted photos placed freely like a story editor, keeping a layout’s ground, patterns and texts, without rewriting drawing, export and undo.
- Cause
- Collage photos always lived in a layout’s slots, and every path (preview, export, codes, drafts) read slots.
- Fix
- Each free photo becomes a tilted print with a mat and shadow, the slot kind layouts already had, so preview, export and undo are reused as they are. One finger drags, two pinch and twist (snapping to right angles like stickers), a touch brings it to the front; up to 15 photos like the 15 photo album. Drafts and story codes keep the poses, the code in an optional field.
- What I learned
- When a new feature can be expressed in an old feature’s data, translate into it instead of opening a second drawing path.
Version 1.4.2 · iPhone + Android
-
Searching the app’s name didn’t find the app’s site
- Problem
- Searching “emdeplam” didn’t put the home page first: its title opened with “free photo editor”, the name came last, and the h1 only said “Chụp đi, em đẹp lắm.”
- Cause
- The pages were written for the phrases people search, so the name was an afterthought. A new name that search engines read as a typo has to show up in the title, the h1, the body text and the structured data, with every profile pointing at one address.
- Fix
- Every title now opens with “emdeplam:”, the home h1 carries the name and the first line spells it out as “em đẹp lắm”; Organization, WebSite and MobileApplication JSON-LD link the App Store page and the app’s social profiles; the sitemap uses real dates; two thin pages are noindex; plus a Search Console verification hook.
- What I learned
- A brand name is a keyword you have to win too: lead the title with it, say what it is, and point every profile at the same page. The rest is time.
-
Gem stickers rendered in 3D instead of drawn
- Problem
- Four rounds of the gem and button stickers drawn in code, and each one still read as plastic or candy next to photos of real rhinestones and glazed buttons.
- Cause
- What makes glass look like glass is light bending through facets and bouncing back inside them. Gradients and highlight shapes can only imitate where that light lands, and the eye sees the guess.
- Fix
- I modelled the cuts, pearls, buttons, patch and strawberry in Blender and rendered them with a path tracer (Cycles), the glass matted against a backdrop in its own light group so the alpha carries what shows through. 70 cells (each id × colour chip) are baked into one WebP atlas per pack, decoded the first time a pack is used and let go with the sticker picture cache. The render scripts live in the repo.
- What I learned
- When a look comes from physics, simulate it offline and ship the pixels; and budget the decoded size (
w × h × 4), not just the file.
-
Asking for a rating right after a save that went well
- Problem
- 1.5k downloads on the App Store and only 3 ratings: the people who like the app never got a moment to say so.
- Cause
- The rating prompt waited for a 3rd save at least 3 days after the first, and most people never save on day 3. Moving strips and videos didn’t even count, and iOS may skip the prompt silently and never shows it in TestFlight, so I had never seen it fire.
- Fix
- The prompt now comes after a happy save: the 2nd save in one go, or a strip, story or video. Never on the first save (that’s where iOS asks for photo access), never over the share sheet, once per version. If iOS stays quiet, a few saves later one small line offers to open the review page, once.
- What I learned
requestReview()is a request, not a promise: write the rule as a pure function and test it, because TestFlight will never show you the prompt.
-
Posts: one feed image, ready to dress
- Problem
- People wanted to post a single feed image with gems, pearls, sewing buttons and hand-drawn stars around it, but the collage only made 9:16 stories and multi-slide carousels.
- Cause
- Each layout had one fixed frame, stickers shared four colours, and there was no card, wall or stamp edge to lay a photo on.
- Fix
- Added a Posts kind with 8 layouts at 3:4 such as Instant print, Stamp & stars, Hanging stars and Buttons; a switch to 4:5 that takes the stickers and moved text along; two new sticker packs, Gems & pearls and Sewing box, each piece in its own colours. All drawn with Skia, no images added.
- What I learned
- Switching the frame scales the whole 3:4 design by one factor (15/16) around the middle instead of laying it out again: photos, stamps and stickers keep their shape and only the ground widens at the sides.
-
Hearted layouts, a film ribbon and the mascot crew
- Problem
- With over 40 layouts, a favorite had to be found again each time; Film strip was one straight band; and no layout starred the mascot and its friends.
- Cause
- The picker only remembered recent layouts, with no place to keep the ones you love; film and characters had no drawing of their own in the app.
- Fix
- Every layout gets a heart (tap it or long press the tile); hearted layouts lead the layout row, the start and the full layout sheet. Three new code-drawn carousels: Film ribbon (a roll swinging out of its can across 3 slides), Contact sheet (grease pencil circles, the picks blown up on the next slides) and Friends (the mascot, Bông, Mít, Sữa and Đậu holding and peeking at photos across 5 slides).
- What I learned
- A character holding a photo is two layers: its body under the photo, its hands over it, so the photo sits in its hands with no cut-out.
-
Seven new backgrounds, drawn in code
- Problem
- A few backgrounds looked flat and dated next to today’s studio shots: Star paper read as clip art, Bloom blur as a stain, and the story’s printed papers were flat colour.
- Cause
- Each was one layer of colour: no light from one side, no material you can read at 100%, nothing near over something far.
- Fix
- Added seven backgrounds (mauve and sky studio sweeps, a glitter curtain, a gem wall, blue lace, frosted glass, letters & lace) to both Photo booth and stories and upgraded four old ones, all drawn with Skia, no images added. Denim is retired; old codes open on Denim night. A second pass softened the light, moved props off the print and redrew the lily.
- What I learned
- Skia’s fractal noise comes back premultiplied: reading
rsits near 0.25 and the wall went flat; readingagives the full contrast.
-
15-photo albums and a gradient across every slide
- Problem
- People wanted carousels with more photos (10 to 15), and the carousel gradient background had been gone since 1.3.1.
- Cause
- 1.3.1 swapped the gradient for paper while cleaning up layouts that read cheap, and deleted its drawing code; stories also capped picking at 6 photos.
- Fix
- The gradient is now a background group drawn once across the whole canvas, so every slide is a cut of one run and the seams line up. A new Album group holds 10 to 15 photos; previews for 7+ photo layouts drop to 720 px (about 110 MB down to about 52 MB with 15 photos), saves stay full size.
- What I learned
- Draw a continuous background once and cut it per slide instead of drawing each slide: the seams match by construction, and the preview, the save and the thumbnails share one source.
Version 1.4.1 · iPhone
-
Saving a story with stickers closed the app
- Problem
- On test build 23, the first save of a 5-photo story with stickers crashed with
EXC_BREAKPOINTon the JS thread, insideJsiSkSurface::flush. - Cause
- Symbolicated with the IPA’s own
.symbolsfile: Skia purged its GPU cache and stopped inGrResourceCache::notifyARefCntReachedZero, because a texture had been freed from a thread that didn’t own it. - Fix
- Every texture made on the JS thread is freed right there, even when a draw fails halfway, and saves on the phone draw on the CPU. A test blocks any surface snapshot that isn’t freed.
- What I learned
- Free GPU objects on the thread that owns their context, never through the garbage collector, which runs whenever and wherever it likes.
Version 1.4 · iPhone
-
A website for 1.4 that stays light
- Problem
- The home page still told 1.3’s story: three rooms and older screens.
- Fix
- Every picture is a real 1.4 screen captured from the web build, with the mascot and its friends drawn in code, so no real face appears. The room switch grew to five, still radio buttons and CSS.
- What I learned
- A budget turns design into trade-offs you can see: pictures of rooms you don’t pick never load, so the first load stayed near 470 KB, under a 520 KB ceiling.
-
Counting from the code, not from memory
- Problem
- The Feedback link vanished in a footer tidy-up, and the site still said “17 frame styles” and “105 looks”.
- Cause
- I wrote the numbers from memory each version, and with no analytics, Feedback is the only bug channel.
- Fix
- Feedback is back in Home’s small print (44 pt targets, checked at 375, 390 and 430 pt), and the numbers are recounted from
src/booth/frames.ts,scenes.tsandpresets.json: 26 frames, 19 backdrops, 106 looks. - What I learned
- Numbers in marketing copy are data: read them from the source of truth, or they drift every release.
-
Face hoods left a ghost when you turned your head
- Problem
- On test build 2, quick head turns left a faint second hood behind the real one.
- Cause
- Hoods are pre-drawn at 7 head angles and the app cross-faded two neighbours; and a face lost for a moment, then found further away, counted as a new person, so the old hood lingered for 300 ms.
- Fix
- One hood per face at the nearest angle, switching just past halfway; a re-found face keeps its identity; smoothing follows the point between the eyes, with its velocity carried between detections. Quick-turn error fell from 17% to 6% of the face’s width.
- What I learned
- Reproduce motion bugs in a scripted test with a fixed detection rate and latency, then check every frame. Blending two states is not smoothing.
-
Effects crashed the camera, and Live shots came out still
- Problem
- The first build with effects closed on the first tap, and Live worked only some of the time.
- Cause
- Face tracking set the frame size before turning off the system’s automatic sizing, an order the camera rejects; and Live mode followed the button, so each toggle rebuilt the pipeline and cancelled the shot in flight.
- Fix
- The session is configured in the required order, with a safety net that skips the effect if drawing fails. Live mode is set once per visit, each shot asks for Live or not, and frame extraction runs in one background job.
- What I learned
- Treat capture session configuration as set-once state: changing it at runtime quietly cancels work in flight.
-
Face effects that run only on the phone
- Problem
- People wanted hoods and tiaras that follow faces, but 1.3 promised the app never looks for a face.
- Fix
- Vision on iPhone and a bundled 0.23 MB MediaPipe detector on Android find eyes, nose and mouth about 15 times a second, smoothed with a one-euro filter; the shutter finds the faces again in the full photo. The points live only in memory, and the privacy page was rewritten from
src/booth/face/. - What I learned
- When a feature changes what the code does with personal data, rewrite the promise from the code, the same day.
-
Freeing Skia objects: a web leak, then a phone crash
- Problem
- With three strips on one backdrop, the web build kept about 30,000 Skia objects a visit; the cleanup that fixed it blanked every backdrop on a phone.
- Cause
- One rhinestone thumbnail made about 8,000 objects the web never frees, and the cache keyed photos by a 150 KB data URI. On a phone a
MaskFilterhas nodispose, so the cleanup threw after the first blur. - Fix
- Backdrop art frees what it draws (
freeingandowninsk.ts), only wheredisposeexists, and the cache keys a hash of the uri. Growth fell from 3.5 MB a visit to 0.4 MB over 5 runs. - What I learned
- On a WASM renderer every native object is manual memory, and web and native bindings differ: wrap creation in an owner, and test the native build before trusting a web pass.
-
Lag on older phones hid in one-off work
- Problem
- People on older phones felt stutter during a Photobooth run.
- Cause
- At 6× CPU slowdown, the app decoded the full 12 MP shot between shots, ran the camera effect at full size and encoded it twice: a 1.5 to 3 s stall inside the countdown.
- Fix
- Each shot is processed at 2048 px, the size the app uses, and print copies are decoded once the strip is done. Saved strips still compare at SSIM 0.995 or better.
- What I learned
- Profile under throttling and look for long tasks, not average frame rate: jank usually lives in work done once, at the wrong moment.
-
A 48 MP photo froze the screen for 3 seconds
- Problem
- Opening photos on a tablet froze the screen.
- Cause
- The app decoded the whole photo on the JS thread (192 MB of pixels at 48 MP) before shrinking it, and the editor’s first frame uploaded the full original to the GPU.
- Fix
- On iOS,
CGImageSourceCreateThumbnailAtIndexdecodes straight to screen size, off the JS thread: one photo went from 2.9 to 0.76 s, four in Photobooth from 9.6 to 0.8 s, peak memory from 331 to 148 MB. - What I learned
- Decode images at the size you show them, as close to the OS as you can; never decode full resolution just to scale it down.
-
Saves kept a third of the photo’s detail
- Problem
- Saved pictures looked softer than the photo that went in.
- Cause
- Looks sampled the photo with a blurring interpolation, and photos shrunk more than 2× were undersampled and turned jagged.
- Fix
- The photo is read through every pixel at 1:1, eased to a smoother filter as it shrinks, and big photos are halved first. Editor saves keep 100% of the detail, up from 36%.
- What I learned
- Measure output quality against the input with a number: the loss was in a library default, not in our settings.
-
Undo undid the app’s work instead of yours
- Problem
- Undo worked only from one tab, and redo never worked.
- Cause
- Live clips turn into frames in the background, and each finished job was recorded as a step, which also cleared redo.
- Fix
- Background work never writes history, and a restored step keeps the frames already made (
withMadeFrames). - What I learned
- Keep user intent and system side effects in separate state: only the user’s actions belong in undo history.
-
Opening a draft could save over it in the wrong size
- Problem
- With the 4-photo grid picked, opening a 3-photo draft turned it into a grid and saved over it.
- Cause
- The start screen’s pick and the open strip shared one variable, and the strip stayed mounted behind the start screen.
- Fix
- The pick is its own state (
pickKind), and damaged drafts are read back by their photo count. Eleven checks failed before the fix and pass after. - What I learned
- Two things that mean different things need two pieces of state, even when they share a type. Write the failing test first.
-
Two new rooms, and a compiler that lists what they need
- Problem
- Adding Matcha and Cloud meant finding every place that branched on the room.
- Fix
- Each branch became a
Record<BoothLook, …>, so a missing room is a type error. The rooms themselves are two SkSL shaders (cafeRoomFx,skyRoomFx), no images. - What I learned
- Prefer exhaustive maps to if/else chains: a new variant won’t compile until every place handles it.
Version 1.3 · iPhone
-
A website in the app’s colors, without a carousel
- Problem
- The site didn’t look like the app, and an 8-screen carousel led the page.
- Fix
- The App Store set’s tokens (blush, plum ink, a raspberry ticket, gingham), real 1.3 screens in one phone frame exported by a small tool, and a CSS-only look switch instead of the carousel.
- What I learned
- Radio buttons and CSS can replace a JavaScript carousel: no script, and pictures of states nobody opens never load.
-
Tapping a photo on a tilted strip
- Problem
- On a backdrop the strip lies tilted, so editing happened in a separate row of thumbnails.
- Fix
- Touches are mapped back into the strip’s own rotated frame, so the photo under your finger opens a small menu or moves when dragged; a touch that starts on a sticker belongs to the sticker. Fixed on the way: “forEach of null” and “rendered more hooks”.
- What I learned
- For gestures on transformed content, apply the inverse transform to the touch point instead of hit testing in screen space.
-
One look for the whole app, and a camera window phones can’t round
- Problem
- Only Home and the booth followed Bright, Candy or Night; the editor felt like another app, and the vintage booth read old.
- Cause
- Each screen picked its own palette, and a phone can’t clip the live camera preview to rounded corners.
- Fix
- The look lives in one place and every screen reads its palette from it. The booth room is one shader-baked picture with the window cut out and the bezel drawn over its edge.
- What I learned
- Theme from a single source, and when a native view can’t be styled, draw the frame over it instead of fighting the platform.
-
Photos looked worse after shooting
- Problem
- Photos came out softer and duller than the phone’s own camera.
- Cause
- Three presets were on by default (a look at 75%, a story look, Ultra HD at 0.3), and the
expo-camerapatch hard-coded.balanced, skipping the phone’s full multi-frame processing. - Fix
- Everything starts at Original or off; the session allows
.qualityand every still asks for it; on Android, CameraX takes the best quality. - What I learned
- Audit defaults end to end: a “quality bug” is often a default someone set, not broken code.
-
Why the collage stuttered
- Problem
- Opening the backdrop tab was one 2.4 s task, and every collage grew the Skia heap by 2.9 MB.
- Cause
- The job runner ran 18 bakes back to back in microtasks, never yielding; and the web renderer copied a paint for every draw and never deleted the copies.
- Fix
- Swatches go through a queue, one per task (854 to 59 ms),
useJobsyields withsetTimeout(0), and apatch-packagefix deletes the copied paints: 2.9 MB to 0 per collage. - What I learned
- Microtasks never let the browser breathe, so split long work into tasks. A probe that records where objects are made finds a leak faster than guessing.
-
Glitter and lace as shaders, not images
- Problem
- The material frames looked flat: even noise for glitter, flat white flowers for lace.
- Cause
- There was no lighting model, only colour.
- Fix
- One lamp at the top left for everything: materials are height fields lit in SkSL, glitter is tilted hexagonal flakes, lace normals come from finite differences. 0 KB of images.
- What I learned
- Realism comes from consistent lighting, not detail: model the height, then light it once.
-
A dreamy look needed a new glow
- Problem
- Bloom only reached about 1% of the frame: enough for a lamp, not for a hazy sky.
- Fix
- A mist pass: 14 taps on a golden-angle spiral, about 70 px at 1080, turned per pixel, and it may only lift pixels darker than their surroundings. It stays a loop: unrolled, 16 taps ran 15× slower.
- What I learned
- Pick sampling patterns that hide their structure (golden angle plus jitter), and measure every shader change: the obvious optimisation can be slower.
-
A whole strip in 12 to 196 characters
- Problem
- Share a strip’s design (layout, frame, backdrop, stickers) with no server.
- Fix
- Every value is an index into an append-only list, defaults are left out, and a sticker packs into 35 bits. Decoding is all or nothing; 21 golden codes are frozen in tests, and 300 random strips round-trip.
- What I learned
- A versioned format needs append-only tables, golden tests and all-or-nothing parsing, so an old code never half-applies.
-
Making the app not look generated
- Problem
- 1.2 looked like every quick app: a yellow fill on the active tool, stock icons, pill buttons.
- Cause
- Yellow on cream is 1.46:1, and colour alone can’t carry “on” (2.3:1 fades in sunlight).
- Fix
- Yellow became a lamp dot under whatever is on, every on state also changes shape or weight, 12 tool glyphs were drawn for the app, and the main button became a ticket.
- What I learned
- Never let colour carry state alone: pair it with shape or weight, which survive sunlight and colour blindness.
-
A test that checked the wrong property
- Problem
- The song card landed on the title on three new layouts.
- Cause
- The test only checked that each item stayed inside the safe zone, not that items stayed off each other.
- Fix
- The card and text moved above the bottom 20%, and a browser test now checks that text never overlaps. The patterns themselves are gradients with hard stops and repeat tiling, no images.
- What I learned
- Test the property users see (nothing overlaps), not a proxy for it (each item is in bounds).
-
Sharing a recipe with no server
- Problem
- Everyone wants to ask for a look, but there are no accounts and no server to look up a short ID.
- Fix
- The code carries the recipe:
EDL1-plus Crockford base32, tagged fields where defaults cost nothing, and a CRC-16. The QR encoder is about 300 lines of TypeScript, tested by decoding its output with jsQR. - What I learned
- Without a server, make the payload self-contained, and pick an alphabet and a checksum that survive humans typing them.
-
Live strips without 320 MB of movies
- Problem
- Keeping every Live movie could reach about 320 MB across drafts.
- Fix
- A patch to
expo-cameraadds Live capture; the app keeps 18 JPEG tiles around the photo and deletes the movie (about 3.6 MB a strip). Playback swaps tiles through a shared value on the UI thread, zero React commits, and stops after about 5.7 s. - What I learned
- Store what you show, not what you capture, and drive frame-by-frame animation off the render thread.
-
A caption that only knew 20/10
- Problem
- A Halloween frame would have printed “em đẹp lắm · 20.10”.
- Cause
- Default captions were keyed to one occasion, the first one built.
- Fix
- Captions are keyed by occasion (
captionOccasion) with a test, and a sticker fit test runs 200 seeds per layout. The art itself is Skia path ops, no images. - What I learned
- Seeded or seasonal content needs tests across all its inputs, not only the one you built first.
-
Hearing users with no analytics
- Problem
- No accounts, no analytics, and no
INTERNETpermission on Android: how do I hear people? - Fix
- The system rating prompt, gated by a pure function,
shouldAsk(state, now, version), and Home links toemdeplam.app/nhom, a page I control. The e2e caught a bug: writing state at startup made new installs look like old users. - What I learned
- Put an indirection you own (a URL) between the app and anything that may move, and don’t write state before it means something.
Version 1.2 · iPhone
-
SEO: the home page never said “photo editor”
- Problem
- The words people search for appeared only in the title and meta description; the H1 was the tagline.
- Fix
- The keyword line sits inside the H1, a plain intro says what the app does, structured data became one
@graphwithoperatingSystem: iOS, and three how-to pages target searches a small site can win. - What I learned
- Search engines rank visible text: the words people search for must be on the page, not only in meta tags.
-
A crash that only happened on phones
- Problem
- Pop out worked on the web, but crashed on iPhone with
Object is not a HostObject of desired type. - Cause
- The code told a rect from a rounded rect with
in. On a phone anSkRRectis a JSI host object whose fieldsincan’t see, so it went toaddRect. - Fix
- React Native Skia’s own
isRRect, plus a test that guards the whole class of bug. - What I learned
- Don’t duck-type objects that cross a native bridge; use the library’s own type guards.
// before: fine on web, crashes on phones if ('rect' in c) p.addRRect(c); else p.addRect(c); // after if (isRRect(c)) p.addRRect(c); else p.addRect(c); -
A picker that never opened on iOS
- Problem
- Picking a story layout did nothing on iPhone.
- Cause
- The photo picker presented from the top view controller, which was still the Modal being dismissed, and UIKit won’t present over that.
- Fix
- The sheet stays mounted but hidden, and the picker opens from the Modal’s
onDismiss; an e2e smoke test covers the flow. - What I learned
- On iOS, present only from a settled view controller: wait for the dismissal callback instead of racing it.
-
Dragging stickers: zero React commits, then a one-frame flash
- Problem
- Dragging lagged, and after that fix the sticker flashed back to its start for one frame on release.
- Cause
- Every move went through React state; then the canvas’s own reconciler committed after the screen, so for one frame it still held the old list.
- Fix
- The gesture runs on Reanimated shared values, and the live value stays at the drop point until the layer’s list has the sticker there.
- What I learned
- When two renderers commit separately, hand state over only after the receiver confirms it.
-
105 looks and a quality gate
- Problem
- Re-grading one look could quietly break others.
- Fix
- The shader’s colour math is ported to the CPU, and a jest gate measures every look on 12 photos and 8 metrics in about 8 seconds, against a committed baseline that can only go up.
- What I learned
- A ratchet turns subjective quality into a CI check: the gate holds the floor, and people still judge taste.
Version 1.1.1 · iPhone
-
A shader freed while it was drawing
- Problem
- Dragging a look’s strength in a story could crash phones.
- Cause
- The preview made a new shader each step and freed the old one itself, sometimes while the canvas was still drawing with it.
- Fix
- Story collages draw looks the way the editor does, so Skia owns the shader’s lifetime.
- What I learned
- Don’t free what a renderer may still be using; let the owner of the frame manage lifetimes.
-
Rejection 4: a screen before the permission prompt
- Problem
- 1.1.1 was rejected under 5.1.1(iv).
- Cause
- An explainer with a “Later” button came before the camera permission prompt.
- Fix
- The screen is gone; the system prompt comes first.
- What I learned
- Show the system permission prompt directly: a pre-prompt that lets people skip it gets rejected.
Version 1.1 · iPhone
-
1.1 in a week: layouts, a grid and pose frames
- Problem
- The first users asked for more story layouts and help framing their shots.
- Fix
- 11 story layouts in 9:16, a thirds grid, Story and 1:1 frames that open already cropped, pose frames, and all 95 looks re-graded to open at 75%.
- What I learned
- Ship small and often from what the first users ask for: a week of real requests beats a month of guessing.
Version 1.0 · iPhone
-
7 days from first commit to the App Store
- Problem
- Ship an offline photo app with no backend in a week.
- Fix
- Expo and expo-router, React Native Skia for pixels, Reanimated for gestures, and CI on every push (types, tests, exports, web e2e, a secret scan, an offline check). Skia can’t decode HEIC, so iOS photos come in as JPEG; Chrome caps WebGL contexts at about 16, so thumbnails share one surface.
- What I learned
- Find a platform’s hard limits early (HEIC, WebGL context caps) and design around them before they find you.
-
1.0 came back from App Review 3 times
- Problem
- Three rejections before 1.0 went live.
- Cause
- The reviewer couldn’t reach every flow, a word in the metadata clashed with a trademark, and Apple asked what the app does with face data.
- Fix
- Clear steps to each flow, “photo strip” in the metadata, and a privacy section that says the truth: Smooth skin is a skin-tone colour filter with no face detection.
- What I learned
- Turn every rejection into a checklist line that each submission has to pass.