
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gitbook-plugin-component
Advanced tools
A block to define an UI component demo in an iframe together with a syntax highlighted html code block.
With this plugin, a book can contain UI component demos. It takes content of the block and creates and inject content to an resizable iframe, and prints a codeblock for documentation purpose.
To use the component plugin in your Gitbook project, add the component plugin to the book.json file, then install plugins using gitbook install.
{
"plugins": ["component"]
}
A component consists of a single block, in this example it's demonstrating the use of a web component, but it could be anything.
{% component %}
<my-element>I'm an webcomponent, rendered in an iframe loading my own script.</my-element>
<script src="/assets/my-element.js"></script>
{% endcomponent %}
If you are writing ui documentation using gitbook, you might like some of my other plugins:
FAQs
A block to define an UI component demo in an iframe together with a syntax highlighted html code block.
We found that gitbook-plugin-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.