
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.
Codedocs is a Storybook replacement that fixes a few things:
any in the types. It's annoying.Codedocs was designed to fix these limitations.
Say goodbye to fiddling with your Storybook config until it kind of works like your app. Build your documentation on the same infrastructure as your app.
<DocsApp> manually.codedocs package provides some React components that make it easy to turn
documentation files into site.The other thing is doesn't do is have any dependencies. You provide React and React Router as peerDependencies, and that's it.
Your documentation files can still live alongside your code, but they just export JSX elements:
// Button.docs.tsx
import React from "react"
import { Doc, Demo } from "codedocs"
import { Button } from "./Button"
export default (
<Doc path="/Controls/Button">
The Button is meant to be used for everything that can be tapped, whether or
not it has a background.
</Doc>
)
export const BasicButton = (
<Demo>
<Button>Save</Button>
</Demo>
)
Then, you can go ahead and use create-react-app or install Vite and throw an index.html somewhere,
that's up to you. To get the site working, all you need to do is render <DocsApp> in there:
import * as ButtonDocs from "./Button.docs"
import { DocsApp } from "codedocs"
import React from "react"
import { render } from "react-dom"
render(<DocsApp docs={[ButtonDocs]} />, document.getElementById("root"))
I can't instruct you on how to start that, because you can set up the build however you want. That's the point, you can just use the same build infrastructure you've surely already set up to build your Design System.
I know you have global styles, and a theme, and maybe some other React.Contexts that keep your Design System working. You can provide a provider that sets those up:
import { Global, ThemeProvider } from '@emotion/react'
import React from 'react'
import reset from 'emotion-reset';
<DocsApp
docs={...}
DesignSystemProvider={({ children }) => (
<ThemeProvider theme={...}>
<Global styles={reset} />
<Global styles={`
body {
font-family: 'sans-serif'
}
...
`} />
{children}
</ThemeProvider>
)}
...
/>
And you can also override any component that <DocsApp> uses:
<DocsApp
docs={...}
Columns={({ children }) => ...}
LeftColumn={({ children }) => ...}
MainColumn={({ children }) => ...}
NavList={({ children }) => ...}
NavHeading={({ children }) => ...}
NavItem={({ children }) => ...}
NavLink={({ children, to }) => ...}
PageHeading={({ children }) => ...}
DemoHeading={({ children }) => ...}
/>
An example is provided in app/

The general philosophy of Codedocs is
Along those lines, I'll list things that definitely won't happen:
Things that will probably happen:
<Doc> block so you can lay out those pages explicitly<API> helper component for documenting component apisThings that might happen:
FAQs
[](https://codedocs.ambic.app/)
The npm package codedocs receives a total of 13 weekly downloads. As such, codedocs popularity was classified as not popular.
We found that codedocs 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.