Official documentation for ImapFlow, a modern IMAP client library for Node.js.
This documentation site is built using Docusaurus, a modern static website generator.
npm installnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
npm run buildThis command generates static content into the build directory and can be served using any static contents hosting service.
Test the production build locally:
npm run servedocs/
├── intro.md # Introduction page
├── getting-started/
│ ├── installation.md # Installation guide
│ └── quick-start.md # Quick start guide
├── guides/
│ ├── basic-usage.md # Basic concepts and usage
│ ├── configuration.md # Configuration options
│ ├── fetching-messages.md # Message fetching guide
│ └── mailbox-management.md # Mailbox operations
├── api/
│ └── imapflow-client.md # API reference
└── examples/
└── fetching-messages.md # Code examples
To add new documentation:
- Create a new markdown file in the appropriate directory
- Add frontmatter with
sidebar_positionand other metadata - Update
sidebars.tsif needed (or use autogenerated sidebars) - Run
npm run buildto verify there are no broken links
For GitHub Pages deployment:
GIT_USER=<Your GitHub username> npm run deployOr using SSH:
USE_SSH=true npm run deployDocumentation is licensed under MIT License, same as ImapFlow.