Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @bbc/spartacus with all npm packages installed. Try it out:

require("webpack-cli/package.json"); // webpack-cli is a peer dependency. require("copy-webpack-plugin/package.json"); // copy-webpack-plugin is a peer dependency. require("react-router-dom/package.json"); // react-router-dom is a peer dependency. require("webpack/package.json"); // webpack is a peer dependency. require("brotli-webpack-plugin/package.json"); // brotli-webpack-plugin is a peer dependency. require("styled-components/package.json"); // styled-components is a peer dependency. require("webpack-bundle-analyzer/package.json"); // webpack-bundle-analyzer is a peer dependency. require("start-server-webpack-plugin/package.json"); // start-server-webpack-plugin is a peer dependency. require("react-dom/package.json"); // react-dom is a peer dependency. require("webpack-merge/package.json"); // webpack-merge is a peer dependency. require("webpack-node-externals/package.json"); // webpack-node-externals is a peer dependency. require("react/package.json"); // react is a peer dependency. var spartacus = require("@bbc/spartacus")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@bbc/spartacus v0.0.13



A framework to help create both server-side and isomorphic rendering applications. Used by the BBC Articles team in their renderer simorgh which creates a single page application.

This is a private npm package released on the BBC News npm registry as @bbc/spartacus.

The default branch of this repo is latest.


This was born from a need to make simorgh more re-usable cross teams. Therefore, it's intial goal for MVP is to increase sharability by abstracting out re-usable parts of simorgh. In the future this can be improved to allow more flexible setups such as using Sass instead of Styled Components OR bespoke webpack overrides OR even one day rendering something other than React.

Hello world app - This application is an example of how SPArtacus can be used to create a universal react application.

It details the files needed and how to use this library.

Local development

If you want to test changes to SPArtacus on your local setup you will need link the application like so:

  • cd SPArtacus
  • npm link
  • cd ../{YOUR_APP}
  • npm link ../SPArtacus // link your application to your local SPArtacus
  • Your app is now linked with the SPArtacus

NB: Each time you make changes to SPArtacus/src you will need to run npm run build for YOUR_APP to pick up the new changes.

Publishing to npm

  • Build the lib/ - npm run build
  • Update the package version and change log
  • Uush branch and create PR
  • Get 2 reviews
  • Ensure CI is passing
  • Merge PR
  • Run npm publish
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free