Simple Counter
Simple Counter is a starter plugin with one saved number, increment/decrement controls, and a reset button. Use it to test plugin_context.store get/set behavior and verify per-business persistence.
Trusted by frontline teams 15 years of frontline software
Built for: Software · Operations · Retail · Education
Overview
Simple Counter is a minimal AI-built custom app template centered on one stored value. The dashboard shows a large counter number and three controls: increment, decrement, and reset. The template is designed to demonstrate how plugin_context.store can read and write a key-value value that persists per business, making it a useful starting point for testing stateful plugin behavior.
Use this template when you need a quick proof of concept for a shared tally, a lightweight status number, or a developer demo of persistent storage. It is also a good fit when you want to confirm that the app loads a saved value correctly after refresh or across sessions. Because the template only manages one counter, it works best for simple internal utilities and learning exercises.
Do not use it when you need records, multiple fields, approvals, notifications, audit history, or role-based workflows. It is not a substitute for incident logging, inventory tracking, booking systems, or any process that requires a list/detail/form structure. If your use case needs more than one number, more than one owner, or any compliance-sensitive data, start with a richer template instead.
How to use this template
- Set the storage key for the counter and define the default value so the dashboard has a known starting state on first open.
- Place the current counter value prominently on the dashboard and wire the increment, decrement, and reset buttons to update the saved value.
- Test the get/set flow by refreshing the app and confirming the counter reloads from plugin_context.store instead of reverting to zero.
- Decide who is allowed to change the value and, if needed, add role-based restrictions before sharing the app broadly.
- Review the behavior after multiple edits to confirm the saved number matches the expected business-wide state and that reset is intentional.
Best practices
- Always define a default counter value so the dashboard renders cleanly on first launch.
- Use one clear storage key per counter and document it so later edits do not overwrite the wrong value.
- Keep the counter label specific to the business purpose, such as queue count or shared tally, so users know what the number means.
- Make reset a deliberate action and place it separately from increment and decrement to avoid accidental data loss.
- Verify persistence after refresh, logout, and re-open so you know the saved value is truly shared per business.
- If multiple people can edit the counter, decide whether last-write-wins is acceptable before rollout.
- Treat this as a starter pattern and move to a richer record model once you need history, attribution, or approvals.
What this template typically catches
Issues teams running this template most often surface in practice:
Common use cases
Frequently asked questions
What does the Simple Counter template actually include?
It includes a dashboard with one large counter value and three actions: increment, decrement, and reset. The counter is stored with plugin_context.store so the value persists per business instead of resetting on every reload. This template is meant to demonstrate a minimal read/write pattern, not a full workflow app.
When should I use this template instead of building a custom app from scratch?
Use it when you want a very small starter example for key-value persistence, button actions, and a single dashboard state. It is useful for validating plugin behavior, testing save/load logic, or creating a lightweight shared counter. If you need records, permissions, notifications, or audit history, this template is too small for that use case.
How often does the counter persist and who can change it?
The counter persists whenever a user clicks one of the buttons and the app writes the updated value to the store. Because the template is scoped per business, everyone in that business sees the same saved value unless you customize the storage key. Access control is not the focus here, so if you need role-based editing you should add permissions before rollout.
Does this template handle regulated records or compliance needs?
No. Simple Counter does not track regulated records, personal data workflows, or audit-heavy operational events. It is a demo of state persistence and should not be used for incident logs, visitor records, or other compliance-sensitive processes without major redesign.
What are the most common mistakes when using this template?
The most common mistake is treating it like a production workflow app when it only stores one number. Another pitfall is forgetting to define the default value, which can make the dashboard look broken on first open. Teams also sometimes overwrite the same key from multiple places without deciding who owns the counter.
Can I customize the counter for different business needs?
Yes. You can change the label, add limits, rename the buttons, or use the same storage pattern for other single-value states such as a queue count or availability tally. If you need multiple counters, define separate keys and make sure the UI clearly shows which value each control affects.
Can this connect to other tools or automations?
The template itself is focused on local key-value persistence, but you can wire the counter value into notifications or downstream automations if your app platform supports them. A common extension is to trigger a message when the value reaches a threshold. Keep the first version simple so you can confirm the store behavior before adding integrations.
How should I roll this out to a team?
Start by assigning one owner to confirm the expected default value, storage key, and reset behavior. Then test increment, decrement, and refresh across a few users to verify the saved state is shared the way you expect. Once that works, decide whether the counter is informational only or whether it needs permissions and change tracking.
Related templates
Go deeper on the topic
-
A daily huddle is a brief (10–15 minute) standing meeting held at the start of a shift or workday to align the team on priorities, surface issues, and...
-
A deskless worker is any employee whose job happens without a desk, a company laptop, or a fixed workstation. They're roughly 80% of the global workforce —...
-
A frontline employee app is a phone-first application that gives hourly, field, and deskless workers access to their schedule, pay, announcements, training,...
-
A frontline worker is any employee whose job happens away from a desk — on a production floor, in a patient room, behind a store counter, in a customer's...
-
Fix recruiting pipeline handoffs with a unified candidate portal, branded career pages, and faster offers that keep top talent engaged.
-
MangoApps AI agents now take action across 21 apps—approving leave, advancing candidates, managing schedules—not just surfacing recommendations.
-
MangoApps is now Workday Design Approved, surfacing benefits, pay, learning, and time-off data directly inside the MangoApps platform for frontline workers.
-
Artificial Intelligence helps Human Resources improve hiring, reduce bias, and boost workforce efficiency with smarter, data-driven decisions.
Ready to use this template?
Get started with MangoApps and use Simple Counter with your team — pricing built for small business.