npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wix/origami-services

v1.5.6

Published

Service registry and configuration for Origami sites

Readme

Origami services

Which config values are real and where the others should come from: CONFIGS.md.

The shared service registry for generated Origami sites. Implementations come from published npm packages.

Resolved exports

Verified by test/exports.spec.ts. Versions below are the installed versions used for the initial registry.

| Service key | Definition import (version) | Implementation import (version) | |---|---|---| | @wix/viewer-service-anchors | AnchorsDefinition from @wix/viewer-service-anchors/definition (1.0.54) | AnchorsService from @wix/viewer-service-anchors/implementations (1.0.54) | | @wix/viewer-service-consent-policy | ConsentPolicyDefinition from @wix/viewer-service-consent-policy/definition (1.0.107) | ConsentPolicyService from @wix/viewer-service-consent-policy/implementations (1.0.107) | | @wix/viewer-service-environment | EnvironmentDefinition from @wix/viewer-service-environment/definition (1.0.55) | EnvironmentService from @wix/viewer-service-environment/implementations (1.0.55) | | @wix/viewer-service-pages | PagesDefinition from @wix/viewer-service-pages/definition (1.0.18) | PagesService from @wix/viewer-service-pages/implementations (1.0.18) | | @wix/viewer-service-provide-css | ProvideCssDefinition from @wix/viewer-service-provide-css/definition (1.0.38) | ProvideCssService from @wix/viewer-service-provide-css/implementations (1.0.38) | | @wix/viewer-service-site-scroll-blocker | SiteScrollBlockerDefinition from @wix/viewer-service-site-scroll-blocker/definition (1.0.75) | SiteScrollBlockerService from @wix/viewer-service-site-scroll-blocker/implementations (1.0.75) | | @wix/viewer-service-url | UrlDefinition from @wix/viewer-service-url/definition (1.0.79) | UrlService from @wix/viewer-service-url/implementations (1.0.79) | | @wix/viewer-service-lightbox (legacy) | LightboxDefinition from @wix/viewer-service-lightbox/definition (1.0.24) | LightboxService from @wix/viewer-service-lightbox/implementations (1.0.24) | | @wix/viewer-service-dynamic-route | DynamicRouteDefinition from @wix/viewer-service-dynamic-route/definition (1.0.14) | DynamicRouteService from @wix/viewer-service-dynamic-route/implementations (1.0.14) | | @wix/site-service-lightbox | LightboxDefinition from @wix/site-service-lightbox/definition (3.0.0) | LightboxService from @wix/site-service-lightbox/implementations (3.0.0) | | @wix/site-service-interactions | InteractionsDefinition from @wix/site-service-interactions/definition (1.0.45) | InteractionsServiceExternal from @wix/site-service-interactions/implementations (1.0.45) | | @wix/site-service-device-info | DeviceInfoDefinition from @wix/site-service-device-info/definition (1.0.8) | DeviceInfoService from @wix/site-service-device-info/implementations (1.0.8) | | @wix/site-service-experiments | ExperimentsDefinition from @wix/site-service-experiments/definition (1.0.8) | ExperimentsService from @wix/site-service-experiments/implementations (1.0.8) | | @wix/site-service-rendering-context | RenderingContextDefinition from @wix/site-service-rendering-context/definition (1.0.4) | RenderingContextService from @wix/site-service-rendering-context/implementations (1.0.4) | | @wix/site-service-business-logger | Local '@wix/site-service-business-logger' (verified against 1.0.7; type-only import) | BusinessLoggerService from @wix/builder-services (1.16.11) | | @wix/site-service-locale | LocaleDefinition from @wix/site-service-locale/definition (1.0.10) | LocaleService from @wix/site-service-locale/implementations (1.0.10) | | @wix/site-service-pages | PagesDefinition from @wix/site-service-pages/definition (1.10.0) | PagesService from @wix/site-service-pages/implementations (1.10.0) | | @wix/site-service-head-appender | HeadAppenderDefinition from @wix/site-service-head-appender/definition (1.0.7) | HeadAppenderService from @wix/site-service-head-appender/implementations (1.0.7) | | @wix/site-service-provide-css | ProvideCssDefinition from @wix/site-service-provide-css/definition (1.0.8) | ProvideCssService from @wix/site-service-provide-css/implementations (1.0.8) | | @wix/site-service-url | UrlDefinition from @wix/site-service-url/definition (1.0.9) | UrlService from @wix/site-service-url/implementations (1.0.9) | | @wix/site-service-configuration | ConfigurationDefinition from @wix/site-service-configuration/definition (1.0.4) | ConfigurationService from @wix/site-service-configuration/implementations (1.0.4) | | @wix/site-service-editor-context | EditorContextDefinition from @wix/site-service-editor-context/definition (1.0.7) | EditorContextService from @wix/site-service-editor-context/implementations (1.0.7) | | @wix/site-service-renderer-configuration | RendererConfigurationDefinition from @wix/site-service-renderer-configuration/definition (1.0.13) | RendererConfigurationService from @wix/site-service-renderer-configuration/implementations (1.0.13) | | @wix/site-service-above-the-fold | AboveTheFoldDefinition from @wix/site-service-above-the-fold/definition (1.0.9) | AboveTheFoldService from @wix/site-service-above-the-fold/implementations (1.0.9) | | @wix/site-service-dynamic-route | DynamicRouteDefinition from @wix/site-service-dynamic-route/definition (1.0.11) | DynamicRouteService from @wix/site-service-dynamic-route/implementations (1.0.11) | | @wix/site-service-topology | TopologyDefinition from @wix/site-service-topology/definition (1.0.11) | TopologyService from @wix/site-service-topology/implementations (1.0.11) | | @wix/site-service-site-scroll-blocker | SiteScrollBlockerDefinition from @wix/site-service-site-scroll-blocker/definition (1.0.7) | SiteScrollBlockerService from @wix/site-service-site-scroll-blocker/implementations (1.0.7) | | @wix/site-service-tabbing | TabbingDefinition from @wix/site-service-tabbing/definition (1.0.8) | TabbingService from @wix/site-service-tabbing/implementations (1.0.8) | | @wix/site-service-site-theme | SiteThemeDefinition from @wix/site-service-site-theme/definition (1.0.7) | SiteThemeService from @wix/site-service-site-theme/implementations (1.0.7) | | @wix/site-service-router | RouterDefinition from @wix/site-service-router/definition (1.0.2) | RouterService from @wix/site-service-router/implementations (1.0.2) | | @wix/viewer-service-router (legacy) | Local stub in src/stubServices.ts | Local stub that returns its config | | @wix/viewer-service-site-members | Local stub in src/stubServices.ts | Local stub that returns its config | | @wix/site-service-public-api-caller | Local stub in src/stubServices.ts (1.0.5 exports raw src/*.ts) | Local stub that returns its config | | @wix/site-service-site-info | SiteInfoDefinition from @wix/site-service-site-info/definition (1.0.8) | SiteInfoService from @wix/site-service-site-info/implementations (1.0.8) | | @wix/site-service-warmup-data | WarmupDataDefinition from @wix/site-service-warmup-data/definition (1.0.6) | WarmupDataService from @wix/site-service-warmup-data/implementations (1.0.6) | | @wix/site-service-translations | TranslationsDefinition from @wix/site-service-translations/definition (1.0.2) | TranslationsService from @wix/site-service-translations/implementations (1.0.2) | | @wix/site-service-monitoring | MonitoringDefinition from @wix/site-service-monitoring/definition (1.0.0) | MonitoringService from @wix/site-service-monitoring/implementations (1.0.0) | | @wix/viewer-service-multilingual | MultilingualDefinition from @wix/viewer-service-multilingual/definition (1.0.9) | MultilingualService from @wix/viewer-service-multilingual/implementations (1.0.9); its default is an empty single-language config | | @wix/site-service-multilingual | MultilingualDefinition from @wix/site-service-multilingual/definition (1.0.1) | MultilingualService from @wix/site-service-multilingual/implementations (1.0.1); it has no config and reads the site's languages from @wix/site-service-renderer-configuration, which defaults to a single-language site | | core:provide-component | ProvideComponentServiceDefinition from @wix/services-manager-react/core-services/provide-component (1.0.8) | ProvideComponentServiceFactory from @wix/services-manager-react/core-services/provide-component (1.0.8) | | seo/seo-service | Local 'seo/seo-service' (verified against 1.11.0; type-only import) | SeoService from @wix/builder-services (1.16.11) |

Generated sites retain @wix/services-manager, @wix/services-manager-react, and @wix/site-service-interactions as peers of @wix/origami-runtime. The generator templates and sample sites only import @wix/builder-services in the old generated providers, so its direct site dependency can be removed with those providers.

Adding a service

Resolve its published definition and implementation exports, add its dependency, then add one line to src/servicesRegistry.ts with its definition and implementation. The key is derived from the definition. Add one entry to src/defaultConfigs.ts only if the service needs a default. Defaults are plain data keyed by service ID, just like a DM file. Required runtime fields may be absent from the default overlay. Never add site identity or site URLs to shared defaults; derive them in runtimeConfigs (src/runtimeConfigs.ts) from caller inputs.

The merge order is defaults, caller-supplied runtime defaults, registered DM configs in module evaluation order, then request configs. Lodash mergeWith merges objects and joins arrays; later values win silently. Bindings are created for registry definitions and for services added with registerServices (below); a config for any other service key is ignored. Inputs and defaults are not mutated. runtimeConfigs reads no environment globals; the browser caller supplies the visitor’s URL.

Run the registry, config merge, runtime-default and service initialization tests when adding or changing a service. Keep a field missing from the published type if the implementation reads or forwards it, and document the type discrepancy beside its default.

Registering DM configs

Generated units call registerServicesConfigs(configs) once when their module evaluates. A nested global registers before the global that imports it; Header and Footer register before the page. Shared modules evaluate once. Each DM import accepts changes by reloading the full document in dev.

import { registerServicesConfigs } from '@wix/origami-services'
import configs from '../servicesConfigs/index'

registerServicesConfigs(configs)

Mounting code reads the collected plain ServicesConfigs[] through the internal registeredServicesConfigs() entry after loading the page. servicesMap merges the configs and returns bindings without creating a manager. WixServices joins a host manager or creates its own. In development StrictMode, its initializer runs twice, so services are created twice; production is unaffected. Both layouts supply the browser URL; layout 2 also supplies request configs containing site identity.

import { WixServices } from '@wix/services-manager-react'
import { servicesMap } from '@wix/origami-services'
import { registeredServicesConfigs } from '@wix/origami-services/internal'

const map = servicesMap({ servicesConfigs: registeredServicesConfigs(), url: location.href, siteId })
<WixServices servicesMap={map}><Page /></WixServices>

Registrations are sealed when servicesMap runs. Later registrations are ignored and warn in development. Stage 3 must register popup units before building the map: a popup loaded after mounting registers too late. Config edits reload the document.

Registering services the registry lacks

A viewer service the registry doesn't have, such as the @wix/site-service-cms bundle an export downloads for a companion app's CMS context provider, is added with registerServices when the module that needs it evaluates, before the page's services are created. It is sealed with the configs, so a service registered after servicesMap runs is ignored and warns in development.

import { registerViewerService } from '@wix/origami-services'
import * as bundle from './bundle.js'

registerViewerService('@wix/site-service-cms', bundle)

registerViewerService(definition, bundle) takes the bundle's module namespace. It registers the implementation export Thunderbolt takes from the same bundles (impl, implementation, default, then the first other function), and fails naming the service when there is none. It gives the bundle's injectAccessTokenGetter the site's visitor token (window.wixEmbedsAPI?.getAppToken(); a site without a client ID and site ID has none). registerServices(entries) registers implementations as they are.

A registered service gets its config by its ID, as a registry one does. A service the registry already has keeps the registry's implementation, also when registered under a legacy ID that services-manager maps to the registry's (viewer-core/viewer-service-anchors); of two registrations of a service, the first wins.

Bundled private packages

The clean Vite build inlines private Wix packages. Known-public interaction packages remain external even when their manifests omit access metadata. External dependency versions are checked against each bundled importer's declared ranges; nested stateless definition helpers are bundled, while a reviewed React integration pair shares the host provider. SEO uses the public builder-services no-op, and the site business logger uses builder-services' BusinessLoggerService. It warns on every call and returns promises that never settle; callers must not await BI calls. Their private packages are retained for types only and require no bundled-code owner sign-off; all 41 services stay registered. TypeScript emits declarations separately, and source maps are disabled.

When a package becomes public

  1. Move it from devDependencies to dependencies.
  2. The build picks it up from publishConfig.access: "public".
  3. Remove it from alwaysBundle, knownPublic, or sharedAcrossMajors in build/packagePolicy.ts if listed there.
  4. Rebuild and run the tests.