npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-dockeep

v1.1.3

Published

React documentation keeper allows user to create documentation for their components and view them directly with custom configurations in their projects.

Downloads

17

Readme

react-dockeep

React documentation keeper allows user to create documentation for their components and view them directly with custom configurations in their projects.

Get started

npm i react-dockeep

Then use it in your index.js (if using create-react-app)

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Doc from 'react-dockeep';

const CONFIG = {/* Your configurations here */}

ReactDOM.render(
  <React.StrictMode>
    <Doc config={CONFIG}>
      <App />
    </Doc>
  </React.StrictMode>,
  document.getElementById('root')
);

Props

|Name|required|type|default|description| |---|---|---|---|---| |config|true|object||The config that controls the components and documentation |url|false|string|'doc'|The url that will be used to browse the components

Config

The documentation will be rendered based on the configuration provided, here are the fields that can be configured.

|Name|required|type|default|description| |---|---|---|---|---| |components|true|array||A list of components with configuration

components

|Name|required|type|default|description| |---|---|---|---|---| |component|true|function | class||The component that will be rendered |name|false|string|The given component's name|The name of the component |description|false|string|'No description'|The description of the component |props|false|array|[]|A list of props that will be applied to the component with documentation |code|false|string||The example code, please notice that the name of the tag must match the component name

props

|Name|required|type|default|description| |---|---|---|---|---| |name|true|string||The name of the prop |value|true|string||The value of the prop |required|false|boolean|false|Whether this prop is required by the component or not |default|false|any||The default value of the prop |type|false|string|'any'|The type of the prop |doc|false|string|''|The documentation of this prop

Example

Here is a screenshot of the example: Example Screenshot

The above documentation can be generated by the following config:

{
  component: Modal,
  description: "Wrapped the Modal component from React Bootstrap",
  props: [
    {
      name: "header",
      value: "",
      default: "",
      doc: "The header of the Modal, header will not be displayed if this is not given",
      type: "string"
    },
    {
      name: "body",
      value: "Hello World",
      required: true,
      doc: "Body of the modal",
      type: "string"
    },
    {
      name: "footer",
      value: "",
      default: "",
      doc: "The footer of the Modal, footer will not be displayed if this is not given",
      type: "string"
    },
  ]
}

To run examples use npm start and go to http://localhost:8080 in your browser, see examples folder for more information

TODO

v1.0.0
  • [x] Add example
  • [x] Prevent name duplications
  • [x] ~Improve add config using functions~ (Push to v1.1.0)
  • [x] Change all bootstrap elements to React Bootstrap
  • [x] Implement the search feature of the sidebar
  • [x] Proper warning and error display
  • [x] ~Figure out a way when user deleted required props and error is thrown~ (This only happens in react development mode)
v1.1.0
  • [x] Config using functions
  • [x] ~Allow users to handle routing by themselves~ (Push to v1.2.0)
  • [x] Allow users to write example code by themselves
  • [x] ~Allow users to control sections by themselves~ (Push to v1.2.0)