Skip to content

Graphics kit publisher

A filesystem-based publisher for Reuters Graphics projects.

Why this?

Reuters Graphics projects are packaged for both reuters.com readers and media clients through Reuters Connect. The structure each graphics pack conforms to is defined by our Sphinx graphics server, and it is complex. This package exists to help compile graphics packs for our server in a way that works across different page builders.

Each graphics pack may consist of any number of public pages for dotcom readers and/or embeddable or editable graphics for media clients. The publisher needs to be able to flex with each project and bundle all the outputs from your local directory the right way.

We do that by presuming a certain filesystem structure that the graphics publisher knows how to pack up for the graphics server. That makes it a good match for page builders that use filesystem-based routing, like SvelteKit and Next.js, and gives us a publishing tool that makes very few assumptions about the way projects are built as long as they output a pattern of files.