VibeDict

⏱️Build a Focus Timer App (Start to Finish)

Start by installing VS Code and Claude Code, then build a 25-minute focus / 5-minute break timer app, put it on the internet, and install it on your phone, all in one go.

Who it's for

People trying vibe coding for the first time who want a first project that's finished just by following along

🧰 Get ready (one time only)

Installs and sign-ups. Skip any step you have already done.

  1. Prep 1Sign up for a paid Claude plan

    Open ↗

    Sign up at claude.ai and choose the Pro plan or higher. Claude Code can't be used on the free plan. You don't need to create an API key.

  2. Prep 2Install VS Code

    Open ↗

    Download the file for your computer (Mac/Windows) from the official site and install it. On a Mac, move the downloaded app into the 'Applications' folder, then open it.

  3. Prep 3Install Node.js

    Open ↗

    Download and install the version marked 'LTS' from the official site. It's needed to run the app on your computer. In the installer, just keep clicking 'Next'.

  4. Prep 4Install the Claude Code extension

    Click the block-shaped icon on the left side of VS Code (Extensions, Mac Cmd+Shift+X / Windows Ctrl+Shift+X) and search for 'Claude Code'. Pick the one made by Anthropic and click Install.

  5. Prep 5Create and open a project folder

    Create an empty folder named focus-timer on your desktop. In VS Code, open that folder with File → Open Folder, and if it asks 'Do you trust the authors?', click Yes (Trust).

  6. Prep 6Open Claude Code and sign in

    Click the Claude icon in the top right of VS Code to open the Claude Code panel. The first time, you'll see a sign-in screen. Click Sign in and approve with your Claude account in the browser, and you're done. Now just paste the prompts below, starting with step 1.

🧱 Screens you need

⚙️ Features you need

🤖 Ask your AI step by step

Send one step at a time, check the result, then move on. Replace the [ ] parts with your own details.

  1. Step 1Make a plan first

    I want to build a 'Focus Timer' web app in this folder. I'm not a developer, so please explain things simply. Don't write any code yet, just show me a plan first. - Features: 25-minute focus / 5-minute short break / 15-minute long break, a long break after every 4 focus sessions, a sound and notification when time is up, and a record of how many focus sessions I did today - Installable on a phone's home screen like an app (PWA) - No login and no server; records are saved in the browser Tell me the recommended tech and why, the list of screens to build, and the order we'll go in. Also, from now on, before running any command, explain in one line what the command does.

  2. Step 2Create the project and run it

    Create the project according to the plan. Install what's needed and run it on my computer (dev server). Once it's running, tell me the address (localhost) to open in my browser. It's fine if the first screen only shows the title 'Focus Timer'. When you're done, make a first save (commit) with git.

  3. Step 3Build the timer screen

    Build the timer screen. - 3 tabs at the top: Focus / Short Break / Long Break - A big circular progress bar in the middle with the time left (25:00) - [Start] [Pause] [Reset] buttons below, with the Start button standing out the most - When a focus session ends, switch to a break automatically, and switch to a long break after every 4 focus sessions - Don't count down one second at a time; calculate from the 'end time' so it stays accurate even if I switch to another tab and come back - Show the time left in the browser tab title (e.g. 18:42 · Focus)

  4. Step 4Add sound, notifications and settings

    When the timer ends, play a short chime, and if I've allowed it, also show a browser notification ('Focus done! Take a 5-minute break'). Ask for notification permission the first time I press [Start]. Clicking the gear icon in the top right should open a settings modal where I can change the focus and break lengths (minutes) and turn sound on/off (toggle switch). Save the settings in local storage so they stay after a refresh.

  5. Step 5See today's record

    Add an input box above the timer for writing 'What I'm working on now'. When a focus session is completed, save a record (date, task, minutes) in local storage and show it like 'Today 🍅 3 sessions · 75 min focused'. On the history screen, show the focus time for the last 7 days as a bar chart, and show an empty-state message if there are no records yet. When a focus session finishes, also show a 'Nice work! 🍅' toast.

  6. Step 6Polish the design

    Polish the design so it's calm and minimal. Make the background color change smoothly: calm red/orange tones while focusing and green tones during breaks. Add dark mode, and check that the buttons are big enough to tap easily with a finger on a phone screen (375px). Use a font with clear, easy-to-read numbers. When it's all done, save it with git (commit).

  7. Step 7Make it installable like an app (PWA)

    Make it a PWA so it can be installed on a phone's home screen like an app: app name 'Focus Timer', a tomato-shaped icon (several sizes), a splash screen color, and it should open even without an internet connection. Also add a short guide inside the app on how to install it on iPhone (Safari → Share → Add to Home Screen) and Android (Chrome → Install app).

  8. Step 8Put it on the internet (deploy)

    I want to put this app on the internet. Walk me step by step, from the beginning, through creating a new (public) repository on GitHub, uploading it, and connecting it to Vercel to deploy. If there's a screen where I have to click something myself, explain simply what to click. Before deploying, first check that npm run build succeeds, and when it's done, tell me my app's address.

🎨 Feelings that fit

Turn them into design words with the vibe word translator.

📝 Set your design rules with the design order form →

🚨 Errors you'll likely meet

💡 Tips

  • When Claude Code asks permission to run a command or edit a file, read what it does and click Yes. If you're not sure, just ask 'What does this do?'.
  • After each step, click around in the browser yourself, and if something looks off, say right then 'This part does this'. Don't send several steps at once.
  • If a red error appears, copy it as-is and paste it into Claude Code. If you want to know what it means, look it up in the VibeDict error dictionary.
  • On iPhone, notifications only work in the app installed on the home screen. If notifications don't arrive, add it to the home screen first.
  • Vercel's free plan is plenty. The app has no server or database, so it costs nothing to keep running.

Other recipes