Skip to content
Mehrdad Pajuhaan edited this page Oct 23, 2026 · 2 revisions

Selldone Core

Selldone Core — shared models, types, enums and helpers for every Selldone app, SDK and component

Welcome to the wiki of Selldone® Core (@selldone/core-js), the foundation TypeScript library of Selldone Business OS. It contains the typed models (shops, products, orders, customers, vendors…), enums and catalogs (currencies, languages, product types, route names…), helpers (prices, dates, URLs, local storage…) and the API base classes that every Selldone SDK, component and app shares. If you build a storefront, a dashboard or your own Selldone API client, this is the package that gives you correct types and ready-made utilities.

Start here

Quick look

import { SelldoneCore, CurrencyHelper } from "@selldone/core-js";
import { Currency } from "@selldone/core-js/enums/payment/Currency";

SelldoneCore.Setup(); // reads meta tags, prepares window.CDN, window.GAPI, window.$selldone…

Currency.EUR.unicode;                                   // "€"
CurrencyHelper.ConvertToString(100.5, "EUR", "de-DE");  // "100,50 €"

window.$selldone.gapi.fetchCountries().then((countries) => console.log(countries.length));

Page map

Page What you'll learn
Getting Started Install, required meta tags, SelldoneCore.Setup(), import paths.
Models and Types How models are organized, class/namespace pattern, the most-used models, shared types.
Enums Currencies, languages, product and order types, statuses, route names and other catalogs.
Helpers and Utilities helper/, utils/, prototypes/ and TimeSeries, with examples.
Server and APIs SetupService, CDN, URLS, GAPI, APIAbstract (cache, cancellation) and Gapi.
FAQ Common questions and troubleshooting.

What's inside

Folder Contents
models/ About 100 typed models: shop, product, variant, category, basket, bill, customer, user, vendor, coupon, offer, cashback, lottery, gift card, article, community…
enums/ 153 currencies, 99 languages, product and order types, transaction statuses, permissions, business models, route names…
helper/ PriceHelper, CurrencyHelper, DateConverter, NumberHelper, ShopURLs, StorefrontLocalStorages, LRUCache, CSV formats, SEO, maps, colors…
server/ SetupService, APIAbstract, CDN, URLS, GAPI.
gapi/ Gapi client available as window.$selldone.gapi.
utils/ Cookie, console.style, Slugify, debounceSearch, file, scroll, theme and image helpers, service worker.
prototypes/ Array, String, Number and Element extensions.
timeserie/ TimeSeries for analytics dashboards.
types/ Shared type definitions.

Where it fits

Selldone Core is the base layer of the Selldone front-end stack. The Storefront SDK, Backoffice SDK, Vendor SDK and Community SDK extend its APIAbstract class and return its models. Components, the Page Builder and the Storefront render those models with its helpers.

Selldone open-source ecosystem

Related projects

Next steps

Clone this wiki locally