I made a WeWeb component starter with extra guardrails on top of the official approach
When working on custom WeWeb components, I started from the official developer docs and the official component references.
That is still the foundation.
But after building more components, I found that I kept needing an extra layer on top: clearer guardrails, a better decision path for wwLib, and a more structured setup for both humans and AI coding tools.
So I put together my own repo:
ww-component-starter
What it is
It is not an alternative to the official WeWeb docs.
It is more like:
- official docs and official component patterns as the base
- plus an extra layer of guardrails and practical references
The goal is to make it easier to start a component without re-learning the same lessons every time.
Why I added guardrails
In my experience, the hard part of custom WeWeb components is often not the first scaffold.
It is things like:
- choosing the right
wwLibAPI - knowing which patterns are current vs legacy
- finding the closest official component example
- avoiding plain Vue assumptions in a WeWeb-specific runtime
- making AI tools produce WeWeb-aware code instead of generic frontend code
That is where I felt an extra guardrail layer was useful.
What is inside
The repo includes:
- a minimal starter component
- a local doc pack for WeWeb component architecture
- a
wwLibAPI guide - an index of
wwLibusage based on official components - AI-oriented prompts and onboarding files
- a structured reading order for starting work faster
So the idea is:
- use the official docs as the foundation
- use the starter as the practical working layer
What makes it useful for me
The most valuable part is not the scaffold itself.
It is the documentation and decision support around it, especially:
WEWEB_COMPONENTS_MASTER_GUIDE.mdWWLIB_API_MASTER_GUIDE.mdWWLIB_OFFICIAL_USAGE_INDEX.md
Those files help answer questions like:
- what is the safest API choice here
- what do official components actually do
- what should I copy
- what should I avoid
- what should an AI assistant read first
Real use
This came out of actual component work.
I use this approach when building custom WeWeb components myself, including components like:
- map components
- Telegram Mini App bridge components
- QR / barcode tools
- searchable selects
- editable list flows
- reusable data-entry helpers
So this starter is not just a generic template.
It is the working setup I use to build custom components with a bit more structure and safety.
Repo
If useful, here it is:
I’d also be really glad to hear feedback, suggestions, or recommendations for improving it.
If people want, I can also share the workflow I use with this starter when creating a new WeWeb component from scratch.