
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.
docusaurus-plugin-chat-page
Advanced tools
A Docusaurus plugin for adding an AI-powered chat interface to your documentation
A Docusaurus plugin that adds an AI-powered chat interface to your documentation site. Users can ask questions about your documentation and receive contextually relevant answers powered by OpenAI's GPT models.
Build Time:
Runtime:
npm install docusaurus-plugin-chat-page
# or
yarn add docusaurus-plugin-chat-page
Add the plugin to your docusaurus.config.js:
module.exports = {
// ...
plugins: [
[
"docusaurus-plugin-chat-page",
{
path: "chat", // URL path for the chat page
openai: {
apiKey: process.env.OPENAI_API_KEY, // Your OpenAI API key
},
},
],
],
}
To add the chat page to your site's navigation bar, update the themeConfig in your docusaurus.config.js:
module.exports = {
// ...
themeConfig: {
navbar: {
items: [
// ... your other navbar items
{
to: "/chat", // Make sure this matches your plugin's path configuration
label: "Chat",
position: "left",
},
// ...
],
},
},
}
To develop and test the chat interface without incurring OpenAI API costs, you can enable development mode:
module.exports = {
// ...
plugins: [
[
"docusaurus-plugin-chat-page",
{
path: "chat",
development: {
mockData: true, // Enable mock data for development
},
},
],
],
}
When mockData: true is set:
mockData: true will show a warningCreate a .env file in your project root:
OPENAI_API_KEY=your-api-key-here
Once installed and configured, the plugin will:
/chat (or your configured path)Users can:
Contributions are welcome! Please read our contributing guidelines for details.
MIT
If you encounter any issues or have questions, please file an issue on GitHub.
FAQs
A Docusaurus plugin for adding an AI-powered chat interface to your documentation
We found that docusaurus-plugin-chat-page demonstrated a healthy version release cadence and project activity because the last version was released less than 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.