Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
next-parade
Advanced tools
Lightweight UI component stories and documentation showcase for [Next.js](https://nextjs.org/).
Lightweight UI component stories and documentation showcase for Next.js.
⚠️ Pre-alpha: This is a proof-of-concept. You will be disappointed!
npm install next-parade
yarn add next-parade
Configure and render it on a page:
// ./pages/index.js
import parade from 'next-parade'
import withStaticProps from 'next-parade/props'
const context = require.context('../src/components', true, /\.js/) // relative path and regex
export default parade(context)
export const getStaticProps = withStaticProps(context, 'src/components') // context and "absolute" path
By convention React Component should be the default export from a file.
lib/docgen
fromIdea behind this project is to prove that something simillar can be done running on Next.js
// ./pages/showcase.tsx
import { GetStaticProps } from 'next'
import parade from 'next-parade'
import withStaticProps from 'next-parade/props'
import styles from '../styles/Home.module.css'
const context = require.context('../components', true, /\/[A-Z]\w\.tsx/)
const ComponentsParade = parade(context)
const Home = ({ ...props }) => (
<div className={styles.container}>
<ComponentsParade {...props} title="Styleguide" style={{ maxWidth: '600px' }} />
</div>
)
export default Home
export const getStaticProps: GetStaticProps = async (context) => {
const output = withStaticProps(context, 'components')
return {
...output,
props: {
...output.props,
// additional props and overrides
},
}
}
npm run dev
yarn dev
Open http://localhost:3000 with your browser to see the result.
This project is using itself for creating it's documentation.
FAQs
Lightweight UI component stories and documentation showcase for [Next.js](https://nextjs.org/).
The npm package next-parade receives a total of 1 weekly downloads. As such, next-parade popularity was classified as not popular.
We found that next-parade 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.