Choosing the right kit
A decision tree and the Stack Selector tool.
You've seen every mode. Now the framework for picking ā a decision tree you can run any new idea through and land on the right command without memorizing the table.
The decision tree
Will your product run offline (no internet)?āāā YES ā grit new-desktop my-app [Wails desktop]āāā NO āDoes it have a frontend?āāā NO ā grit new my-app --apiāāā YES āIs the frontend mobile?āāā YES ā grit new my-app --mobileāāā NO (web frontend) āDo you need a separate admin panel for staff?āāā YES ā grit new my-app --tripleāāā NO āSingle binary deploy?āāā YES ā grit new my-app --singleāāā NO ā grit new my-app --double
Three quick rules of thumb
- Default to triple. When in doubt, use
--triple. You can ignore the admin app if you don't need it today, and it's already wired when you do. - Skip the admin only when you're sure. Most products eventually need one ā support staff, ops, finance. Pre-wiring it beats retrofitting.
- Mobile + desktop are surfaces, not modes. Add
--mobileor--desktopto triple if you need both. Don't treat them as exclusive picks.
The Stack Selector tool
Don't want to memorize the tree? Use the Stack Selector on the docs site. Answer 4 questions, get the exact command. Same logic as the decision tree above, in a UI.
Real-world examples
| Product | Command | Why |
|---|---|---|
| Linear-like task tracker | --triple | SaaS with admin (billing, support) |
| Self-hosted Plausible alternative | --single | One binary, customer-managed |
| Coffee-shop offline POS | new-desktop | No internet during rush |
| Stripe-like payments backend | --api | SDKs in many languages, no web UI from us |
| Habit-tracking app | --mobile | Phone-first, no web companion |
| Boda-boda dealership (Grit demo) | --single --vite | One binary deploy, dashboard-only UI |
Quick check
Try it
The chapter assignment is waiting ā "Pick the right kit for three ideas." Open it from the sidebar and tackle it now. Pick three real product ideas (yours, your friend's, anything from HN), trace each through the decision tree, and write one paragraph justifying your pick.
The trick: try to pick three DIFFERENT modes. That forces you to find ideas that genuinely justify different shapes.
You've finished Grit Concepts š
Five chapters, ~20 lessons, five assignments. You can now:
- Explain what Grit is in 30 seconds
- Install + verify the CLI and keep it updated
- Scaffold a project, navigate every folder, run the dev servers
- Recognise the naming conventions and API response shapes
- Generate a resource end-to-end and keep types in sync
- Pick the right architecture mode for any product idea
Next, pick one of the specialist courses based on the kit you want to dive deeper into: Building a Go API, Web with Next.js, Mobile, or Desktop. All assume the foundation you just finished.
Spot a typo? Have an idea?
Help us improve this lesson. One click opens a GitHub issue with the lesson URL pre-filled ā suggest clearer wording, report a bug, or request more depth. The course keeps improving thanks to learners like you.
Suggest an improvement on GitHub