
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@asyncapi/generator-react-sdk
Advanced tools
AsyncAPI React SDK is a set of components/functions to use React as render engine in the Generator. You can use it as a dependency in your templates to use it's components.
Run this command to install the SDK in your project:
npm install --save @asyncapi/generator-react-sdk
The process of creating content from React components consists of two main process: transpile and rendering.
The SDK has a custom transpiler which ensures that any directory are transpiled using Rollup. Rollup helps bundling all dependencies and transpile them into CommonJS modules. This is required because this library will be used through NodeJS which does not understand these new modules natively and we do not want to limit the developer in which syntax they prefer nor how they want to separate code.
SDK has its own reconciler for React components. It traverses through each element in the template structure and transforms it into a pure string. Additionally, prop children is also converted to a regular string and stored in the childrenContent prop, which is appended to each component. See example.
Restrictions:
To render the transpiled template SDK requires:
When rendering you have the option of passing a debug flag which does not remove the transpiled files after the rendering process is done.
import { Text, Indent, IndentationTypes, render } from '@asyncapi/generator-react-sdk';
class ClassComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
// In `childrenContent` prop is stored `text wrapped by custom component\n\n`.
// The content of the `children` prop is transformed to string and saved to the `childrenContent` prop.
return this.props.childrenContent;
}
}
function FunctionComponent() {
return (
<Indent size={3} type={IndentationTypes.TABS}>
indented text
<ClassComponent>
<Text newLines={2}>
text wrapped by custom component
</Text>
</ClassComponent>
</Indent>
);
}
// content will be `\t\t\tindented text text wrapped by custom component\n\n`
const content = render(<FunctionComponent />);
template-for-generator-templates template showcases features of the AsyncAPI Generator, including the React renderer. It shows how to write templates, reusable parts (components), what are the recommended patterns. It has simple and complex examples of using React.markdown-template is written using React. It generates documentation into a Markdown file.For more help join our Slack workspace.
npm installnpm testnpm run lintFAQs
The React SDK for templates.
The npm package @asyncapi/generator-react-sdk receives a total of 17,564 weekly downloads. As such, @asyncapi/generator-react-sdk popularity was classified as popular.
We found that @asyncapi/generator-react-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.