Roadmap
Work that is planned but not built. Each line is a starting point, not a design; open an issue before picking one up so the shape can be agreed first.
Open
SDK
- Variant selection. A pure helper in
@eldrajs/sdkthat, from a product'soptions,variantsand the customer's chosen option values, returns the matching active variant (ornullwhile the choice is incomplete), says whether a value is still available alongside the others, and computes the default selection from the product data alone so server and browser render the same; every storefront writes this today, and a picker that emits its default from a child's setup causes a hydration mismatch in Nuxt — the guide states both rules. - A codegen CLI. The generator behind the
eldra()Vite plugin as a command, so Next, SvelteKit, Angular and plain Node projects get.eldra/web-studio/without Vite; the plugin then becomes a thin wrapper over it rather than a second implementation. - Deprecation reach. Decide how a deprecated SDK method or contract field reaches the developers using it beyond a changelog line —
@deprecatedin the types, a one-time development warning,npm deprecateon old versions — before the first deprecation ships.
UI
- Per-component stylesheets. Ship each component's CSS as its own file (
@eldrajs/ui/css/button.css, …) beside the whole-packagecomponents.css, so a site that uses three components loads three components' rules. The classes are alreadyeldra:-prefixed and layered, so the split is a build step: compile each SFC's candidates on their own against the shared theme, and emit the shared theme, reset and keyframes once. - Retire
data-eldra-slot. It marked wherescoped.cssstopped styling; with prefixed classes nothing reads it. Drop it once no consumer selects by it.
Documentation
- A build-a-storefront guide that instructs rather than describes, written against the published packages: organisation id and base URL, catalog and product pages, variant selection, the cart and its persistence, discount codes, the checkout handoff, the order page and recovery links, shipping (
requiresShipping, delivery price and free-shipping threshold), locales, generated types and upgrading across contract versions, and the SSR traps (cart markup is client-only because the server never sees the cart; format prices identically on server and client). - A provider setup guide: which payment and delivery providers a storefront can use, what the merchant configures in Studio (storefront origins, the checkout recovery URL, providers), and what the developer does for each.
- VitePress on GitHub Pages, once the docs have a second reader. The markdown in
docs/is written to move over unchanged.
Working in the repository
- A playground.
pnpm devstarts a small Nuxt app underexamples/pointed at the demo organisation: the manual test, the first tutorial, and the first thing a contributor runs. Until thenpnpm devruns the unit tests in watch mode. - A public demo organisation on a reachable gateway, with
http://localhost:<port>in its storefront origins and mock payments, so the playground and the guide work without an Eldra account; it will collect strangers' test carts and orders by design. - Issue and pull request templates, added with the first outside issue.
- Wrappers for other frameworks (
@eldrajs/react,@eldrajs/svelte) when someone needs one; the contract a wrapper satisfies is in frameworks.md. An empty package is not published ahead of a consumer.