Overview & Features
Cigs Counter is a zero-install, browser-based cigarette tracker. There is no account, no server, no subscription. Everything lives in your browser — you open the page, tap once per cigarette, and your history builds up automatically.
The philosophy is simple: awareness precedes change. Most smokers underestimate their daily consumption by 20–30%. Seeing the real number — in real time, every day — is the first step to changing it.
Logging Cigarettes
Tapping the Button
The large circular button at the centre of the app is the only thing you need to use. Tap it once each time you light a cigarette — not after, not before. The moment you light up is the right time to tap. This ensures the timestamp recorded is accurate for the craving timer.
Undo
Tapped by accident? The ↩ Undo button removes the most recent entry — both the count and its timestamp. There is no multi-level undo, so if you tap undo twice you will lose two entries.
Reset Today
The Reset today button (bottom-right, below the chart) sets today's count back to zero and removes all of today's timestamps. A confirmation dialog prevents accidental resets. Historical days are never affected.
Logging Tips
- Log every cigarette, even ones you're not proud of. The data is only for you.
- Don't log "planned" cigarettes in advance — only real, in-progress smokes.
- If you share a phone and someone else smokes, you can undo their extra taps.
- Keep the count visible on your screen. Just seeing it can delay the next cigarette.
The Craving Timer
The timer below the main counter shows elapsed time since your last cigarette. It updates every second. The colour and status label change as time progresses, giving you instant feedback on where you are in your craving cycle.
The Progress Bar
The thin bar beneath the status label fills over 60 minutes. At zero it's empty; at 60 minutes it's full. This gives you a visual sense of your gap duration without doing mental arithmetic on the timer. The bar colour mirrors the state: red → amber → green.
Using the Timer to Delay Cravings
Nicotine cravings peak within 3–5 minutes and then fade on their own. When you feel the urge to smoke, check the timer:
- Note the current time shown on the timer.
- Set a mental goal to wait 10 more minutes.
- Do something else — walk, drink water, check messages.
- Return and check: the craving will usually have diminished significantly.
- If it persists, negotiate another 5 minutes with yourself.
- Each successful delay extends your average gap and reduces your daily count.
Stats Reference
The three stat cards beneath the timer update in real time every time you log or undo a cigarette.
The "Last smoked" Indicator
To the right of the Undo button, a small indicator shows how many minutes ago you last smoked (rounded down). This is a quick-glance version of the full timer for when you are in the middle of a conversation and don't want to scroll up to the timer block.
14-Day Chart
The bar chart displays a rolling 14-calendar-day window ending on today. It is rendered on an HTML canvas element and redraws on every log and on window resize (fully responsive).
Reading the Chart
- Bright amber bar — today. Updates live as you log.
- Dim gold-brown bars — previous days in the window.
- Empty gap — a day with zero cigarettes logged, or a day before you started using the app.
- Number above each bar — exact count for that day.
- Date range — shown top-right in MM-DD → MM-DD format.
- X-axis labels — abbreviated weekday names (every other day to avoid crowding).
What a Good Trend Looks Like
You're looking for a descending staircase pattern over weeks — not a straight line down, but an overall slope where each week's average is lower than the previous. Some bars will be higher than their neighbors; that's normal. The 7-day average stat is more reliable than any single bar.
The 6-Week Quit Plan
This is the recommended framework for using Cigs Counter to reach zero. It is designed around gradual behavioral reduction — the approach with the highest real-world success rate for long-term cessation.
Data & Storage
All data is stored in your browser's localStorage under the key smokelog_v1. The data is a JSON object keyed by calendar date (YYYY-MM-DD):
Each day has a count integer and a times array of Unix timestamps (milliseconds) for each cigarette logged that day.
Important Limitations
- Per-browser: Data is stored in the browser you use. Switching from Chrome to Firefox (or phone to desktop) means separate, independent histories.
- Clearable: Clearing browser cache, site data, or using private/incognito mode will erase or not persist data.
- No backup: There is currently no export or cloud-sync feature. Advanced users can manually copy the JSON from DevTools.
- localStorage quota: Browsers typically allow 5–10 MB per origin. Years of daily logs will remain well under this limit.
Manually Accessing Your Data
If you are comfortable with browser developer tools, you can view, edit, or export your raw data:
- Open DevTools (F12 or right-click → Inspect).
- Go to Application tab → Storage → Local Storage → cigscounter.onrender.com.
- Find the key
smokelog_v1. - Copy the value to export, or edit it directly to correct historical data.
Language Preference
Your selected language is stored separately under the key smokelog_lang. Clearing this key resets the language to browser default.
Browser Compatibility
Cigs Counter uses only stable, widely-supported web APIs. It works on any modern browser without plugins or downloads.
JavaScript Required
The app requires JavaScript to be enabled. All core functionality — logging, timer, chart, translations — is implemented in JavaScript. Without it, you will see an empty page.
Frequently Asked Questions
What if I forget to log a cigarette?
Just log it when you remember, or skip it and move on. The goal is awareness and trend data — minor gaps in logging do not ruin the usefulness of the history. If you find you consistently forget, try using the last smoked indicator as a cue: if you can't remember when you last tapped, you probably forgot one.
Can I edit a past day's count?
There is no UI for editing historical data. Advanced users can access the raw JSON in localStorage['smokelog_v1'] via browser DevTools and edit values directly. Changes take effect immediately on next render. See the Data & Storage section for instructions.
Will the app send my data anywhere?
No. The app has no server-side component and makes no network requests after the initial page load (except to Google Fonts for typography). See the Privacy section on the About page for a full declaration.
What does "freshly lit" vs "craving zone" vs "holding strong" mean?
These are the three timer states: under 5 minutes (freshly lit — nicotine still entering bloodstream), 5–30 minutes (craving zone — peak withdrawal window), and 30+ minutes (holding strong — craving has passed). See the Timer section for full details.
Why is today's bar brighter in the chart?
Today's bar is highlighted in bright amber so you can immediately compare your current day's count against your historical bars without needing to read the date range. All previous days appear in a dimmer gold-brown.
Can I use the app in Arabic or Hebrew (RTL)?
Arabic (AR) is fully supported with RTL layout — the language bar alignment, timer status, and reset button all flip correctly. Hebrew is not currently a supported language but the RTL infrastructure could support it with a translation addition.
Does the app work on a smartwatch?
It is not optimised for smartwatch screens, but it will load in a watch browser if available. The large tap target of the main button may still be usable.
Is there a dark mode / light mode toggle?
The app has a single dark theme that is tuned for discretion — easy to open and close without drawing attention. A light mode is not currently planned.
Troubleshooting
My data is gone
This most commonly happens after: clearing browser history/cache/site data, switching browsers, switching devices, or using private/incognito mode. localStorage is per-browser-per-origin with no automatic sync. Data cannot be recovered once the storage is cleared.
The chart doesn't update
Try scrolling down to the chart and tapping the log button again. The chart redraws on every addCig/undoCig call and on window resize. If the chart is completely blank, check that your browser's canvas API is not disabled by a privacy extension.
The timer shows "—" even after logging
The timer only shows a value if today.times has at least one entry. If today's data shows a count but no timestamps, you may have data from before the timestamp feature was added. Adding a new log will start the timer.
The language reverted to English
The language preference is stored in localStorage under smokelog_lang. If it was cleared along with other site data, the app falls back to your browser's navigator.language. Re-select your preferred language from the bar at the top.
Fonts aren't loading
The display font (Bebas Neue) and body font (IBM Plex Mono) are loaded from Google Fonts. If you are offline at page load, or Google Fonts is blocked in your region, the app will fall back to system sans-serif and system monospace fonts respectively. All functionality still works.
Something else is wrong
Open the browser's JavaScript console (F12 → Console) and check for errors. If you find a reproducible bug, take note of the error message, your browser version, and the steps to reproduce it.