To add Tenon support to your Fractal instance, run
npm install fractal-tenon --save
To add the Tenon tab to your component view and enable accessibility testing, you need to add some lines to your
fractal.js project configuration:
'use strict';const fractal = moduleexports = ;/* Regular project configuration here ... */// Require the Fractal theme and Tenon add-on librariesconst mandelbrot = ;const tenon = ;// Explicitly create a theme instanceconst theme = ;// Configure Tenon support;// Let Fractal use the configured themefractalweb;
You need to provide two parameters to configure Tenon support:
- Tenon API Key: You will find this one under the "API Key" section on your tenon.io dashboard (account required).
- Public URL: Your Fractal instance needs to be publicly available for Tenon to fetch and test your components. Provide the fully qualified URL (including scheme and port if necessary).
If configured correctly, Fractal should show you a new panel labelled "Tenon" in your component view.
You may control its position by explicitly configuring the
panels option of your Fractal theme (e.g. Mandelbrot):
const theme =;
Hitting the "Test with Tenon" button will call Tenon and display a short version the issues found for your component. You may view the full test results on tenon.io;
Please be aware that, due to the nature of the Tenon API, you should never make your Tenon connected Fractal instance available to the public. Tenon requires your private API key to be sent with every request, so you basically expose your secret key to anyone having access to your Fractal instance. You have been warned!
We provide an experimental Dockerfile for build a Docker image running a Fractal instance with Tenon support.
- The module is in a very early stage and might have bugs. Please let me know if you spot one!
- Add tests
Please refer to the changelog for a complete release history.