
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.
react-stories
Advanced tools
Declarative story creation for React
Following the great work from @storybooks/storybook, I decided that for building stories in a React environment, we should be using a declarative API. Additionally, I wanted to be able to nest stories inside of other stories. So I've started building a similar concept, but very different execution.
Nesting is super useful to keep all components of different implementation but
similar type together. For instance, you may have multiple buttons that extend
from a single root button. To keep your ActionButton with your SubmitButton
(or whatever), you can nest them under a common Button story.
// Button.jsx
export default function Button(props) {
return (<button>{props.label}</button>)
}
// BlueButton.jsx
export default function BlueButton(props) {
return (<button style={{ backgroundColor: 'blue' }}>{props.label}</button>);
}
// Storybook.jsx
import { StoryBook, Chapter, Story } from 'react-stories';
import Button from './Button';
import BlueButton from './BlueButton';
export default function Stories() {
<StoryBook>
<Chapter name="Button">
<Story desc="A standard button">
<Button label="My Cool Button" />
</Story>
<Chapter name="BlueButton">
<Story desc="A cool blue button">
<BlueButton label="My Blue Button" />
</Story>
</Chapter>
</Chapter>
</StoryBook>
}
yarnyarn serve to run the dev server with the demo loadedEverything. This is very much a work in progress.
FAQs
Declarative Storybooks
We found that react-stories 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.