Experimental parts
Every part of the module SDK and of core's services that may still change in a minor version is listed here. An
experimental part works and is tested, but its shape may change without notice, and it may be removed one minor version
after its deprecation. A module that uses one gets a notice from shade-module build and in the API's log
(The SDK's promise).
A part becomes stable once two different official modules use it. Until then its first user shapes it, and a second
one shows whether the shape holds. A part only one module uses can change to fit the next. The contract
(shade/module-sdk/contract.json) is the source for what is marked experimental, and the
changelog says which version marked it.
How to read the tables:
- Part is the feature, with its main names. The page that describes it is linked.
- Used by lists the official modules whose code uses the part today:
appointments,analytics,commerce,editorial,error-forwarding,forms,import,nl,paymentsandwebsite. Tests and fixtures don't count. None yet means the part is built and tested, and no official module uses it. - Status is Experimental for every row. A part that is not listed is stable.
Manifest parts
| Part | What it is | Used by | Status |
|---|---|---|---|
provides, defineModuleCalls, callModule | A module offers typed calls, another calls them (Calls between modules) | commerce, nl, payments | Experimental |
requires | The modules this one needs, each with the versions it works with (The manifest) | commerce | Experimental |
emits, emit | Events a module publishes in the transaction of its change (Publishing events) | commerce, forms, payments | Experimental |
on | Hearing core's events and other modules' events (Hearing events) | analytics, appointments, commerce, editorial, error-forwarding, forms, website | Experimental |
consent | Consent categories a module adds to the site's banner (Consent) | analytics, website | Experimental |
alerts | Security alert rules of a trusted module (The manifest) | payments | Experimental |
export | What a module adds to an instance export | commerce | Experimental |
links | The purposes of signed links and codes a module sends (Signed links and codes) | appointments, forms | Experimental |
taxSales | Sales a module reports to core's tax service (Tax) | commerce | Experimental |
keptVersions | Versions of entries kept as they were published (Content) | editorial | Experimental |
previewSets | Previews of a set of versions, such as a release (Content) | editorial | Experimental |
oauth | The OAuth2 client for connecting accounts (OAuth2) | None yet | Experimental |
processes | Programs a module runs next to the API (Processes) | None yet | Experimental |
sandbox | What a module's sandboxed part may use | None yet | Experimental |
searchText | Text a module adds to core's search | None yet | Experimental |
shares | Collections a module lets the modules that require it use | None yet | Experimental |
contractAfter | Data migrations that must be done before a version runs | None yet | Experimental |
dataMigrations | Data migrations that run once, from the manifest (Data migrations) | None yet | Experimental |
Core's business services
These are the parts core keeps once for the business, so that modules agree on the same facts.
| Part | What it is | Used by | Status |
|---|---|---|---|
Money: money, addMoney, sumMoney, allocateMoney, formatMoney, parseMoney | Amounts in minor units with a currency, with VAT and rounding helpers (The SDK's promise) | commerce, payments | Experimental |
Contacts: findOrAddContact, contactReference, contactEmail, ownedByContact, contact panels | One contact per email address a module met, with its privacy finds, exports and erases (Contacts) | appointments, commerce, forms | Experimental |
Organisations: organisationReference, organisationsOf, accountsWithRole, ownedByOrganisation, organisation panels | Organisations and the roles given in them (Account roles) | commerce | Experimental |
Holds: hold, confirmHold, releaseHold, heldCount, groupHolds | Hold N of a resource until an expiry (Holds) | appointments, commerce | Experimental |
Waitlists: claim, offerNext, acceptOffer, withdrawClaim | A holder waits in line when a resource is full (Waitlists) | appointments | Experimental |
Time rules: TimeRules, saveTimeRules, periodsOn, formatDateRange | When something is open, kept by core (Time rules) | appointments | Experimental |
Locations: mainLocation, formatAddress, checkPostcode, COUNTRIES | The business's places and their addresses (Locations) | commerce | Experimental |
Tax: VAT_CATEGORIES, vatBreakdown, vatRatesAt, checkVatNumber | VAT categories, dated rates, number checks and the reverse-charge rules (Tax) | commerce | Experimental |
Numbering: nextNumber | A gap-free number series per module per year (Numbering) | commerce | Experimental |
Fiscal records: issueFiscalRecord, fiscalRecordFile | Documents the law keeps, such as invoices (Fiscal records) | commerce | Experimental |
Lifecycle guard: defineLifecycle | One table of where a status may go next (Lifecycle guard) | commerce | Experimental |
Terms acceptance: acceptTerms, acceptedText, termsVersion | The proof that a person accepted terms (Terms acceptance) | appointments, commerce | Experimental |
The country of an IP address: countryOfIp, ipCountriesMonth | The two-letter country of an address, looked up without keeping the address (The country of an IP address) | analytics | Experimental |
Visitor keys and bots: visitorKey, isBot | Telling visitors apart without keeping who they are (Visitor keys and bots) | analytics, appointments, commerce, forms | Experimental |
Texts for visitors: messages, textsIn, pickLanguage, formattingLocale | What visitors read, in the language they use (Texts for visitors) | appointments, commerce, forms, nl, website | Experimental |
Mail, links and messages
| Part | What it is | Used by | Status |
|---|---|---|---|
Editable emails: emailTemplates, composeModuleEmail | Admins edit the wording of a module's emails (Editable emails) | appointments, commerce, forms | Experimental |
Signed links and codes: issueLink, issueCode, peekCode, redeemCode, releaseCode | A link or code mailed to someone to confirm or open something (Signed links and codes) | appointments, forms (links only), commerce (codes) | Experimental |
Mailing lists: requestBulkSubscription, sendBulkEmail, unsubscribeBulk | Subscriptions and bulk mail with a consent record (Mailing lists) | None yet | Experimental |
Channels: sendChannelMessage, contactConfirmed | Messages to a contact over a channel other than email (Channels) | forms | Experimental |
Notification methods: notifyChoices, chooseNotificationMethods | A signed-in account chooses how they are notified (Notifications) | appointments | Experimental |
Spam checks on public forms: SpamCheckFields, isSpam, SPAM_CHECK_RATE_LIMIT | A honeypot and a minimum time for forms visitors fill in (Routes) | appointments, forms | Experimental |
Content and the editor
| Part | What it is | Used by | Status |
|---|---|---|---|
Entry actions and chips: entryActions, entryChips, ModuleEntrySlot, ModuleEntrySlots | Components next to Publish in the entry editor (Admin screens) | editorial (the website module's editor shows them) | Experimental |
Entry columns: entryColumns, ModuleEntryColumn | A column in core's entry list (Admin screens) | editorial | Experimental |
Contact and organisation panels: contactPanels, organisationPanels | A panel on the People and Organisations screens (Admin screens) | appointments, commerce | Experimental |
List actions: listActions | A button on every collection's list (Admin screens) | import | Experimental |
Admin components: SettingRow, ConnectionCard | Rows and cards for a module's settings (Admin screens) | error-forwarding (SettingRow) | Experimental |
Admin components for statistics: StatCard, StatRow, BarChart, RankList, CopyField | Cards, charts and lists for a module's own figures | analytics | Experimental |
Publishing several at once: publishMany, lockLatestVersion | Publish and unpublish entries in one transaction (Content) | editorial | Experimental |
Kept versions and checks: KeptVersions, assertMayChangeEntry | Keeping a version only while nothing else changed it (Content) | editorial | Experimental |
Preview sets: createSetPreview, listSetPreviewShares, revokePreviewShare | Signed previews of a set of versions (Content) | editorial | Experimental |
Published summaries: listPublishedSummaries | The published entries' title, slug and dates for a module's own pages (Content) | website | Experimental |
Drawing a PNG: svgToPng | A module's own SVG, checked as an SVG upload is and drawn as a PNG of a given size (Content) | website | Experimental |
Build hooks: reportBuildHooks, callBuildHook, listBuildHooks | Reports from a site build to the modules that follow it | website | Experimental |
| Realtime in the website editor | An interactive part listens and sends over a socket (Realtime) | website | Experimental |
Entry helpers for imports: checkEntryWrite, fieldFromText, fieldToText, findEntriesBySlug, roomForEntries | Writing entries from text the way core does (Content) | import | Experimental |
CSV: csvCell, parseCsv | Reading CSV, and writing a cell with the formula guard | forms, import | Experimental |
Finishing work as a team member: startMemberRun, actAsTeamMember, endMemberRun, QueueHandBack | A job acts as the member who started it (Background work) | editorial, import | Experimental |
Routes, accounts and the network
| Part | What it is | Used by | Status |
|---|---|---|---|
bodyLimit | A session route that takes a body of up to 10 MB (Routes) | import | Experimental |
| The default customer role and the account profile table | A role every confirmed account has; one row per account (Account roles) | appointments (default role), commerce (profile) | Experimental |
scope: 'organisation' | A role given in one organisation (Account roles) | commerce | Experimental |
entries conditions: EntriesCondition, conditionsOf | Grants that cover only the rows a member created (The manifest) | None yet | Experimental |
| The outbound limit | Too many calls to one host are refused at once (The network) | Applies to every module that uses moduleFetch: error-forwarding, nl, payments, website | Experimental |
Calls and refusals: recordModuleRefusal, providerUrl | A module records why it refused a call, and finds the provider's address (Calls between modules) | nl, payments | Experimental |
scrub(text, max, { strict: true }) | The strict level of scrubbing before text leaves (Background work) | error-forwarding | Experimental |
defineMcpTool, ModuleMcpToolSpec | Builds a manifest's MCP tool with its exposure (Admin screens) | analytics, appointments, commerce, editorial, forms, payments, website | Experimental |
siteUrl, accountApiUrl | The addresses of the site and of the account API (The SDK reference) | commerce (siteUrl), analytics and appointments (accountApiUrl) | Experimental |
previewLinkFor | A signed preview link for a module's own records | None yet | Experimental |
settleDelivery | Settle a delivery table's rows and sweep the rest | None yet | Experimental |
slugify | The one way to turn a title into a slug | website | Experimental |
Testing helpers
| Part | What it is | Used by | Status |
|---|---|---|---|
openLink, followLink | Open and follow a signed link in a module's test | appointments, forms (tests) | Experimental |
stubVies, stubIpCountries, packIpCountries | Stand-ins for the VAT number check and the country lookup | commerce, analytics (tests) | Experimental |
setModuleLocales | Load a module's locale files for a test | appointments, commerce, website (tests) | Experimental |
createChannel, setChannelSeams | A channel for a test | forms (tests) | Experimental |
When a part becomes stable
When a second official module uses an experimental part and its shape has held, the batch that moves it removes
experimental from the contract, takes the part out of this page and says so in the changelog. Until then, read the
changelog's experimental list before you update, and give a module that uses one a shade range within the minor
version you tested.