git clone https://github.com/jihchi/mermaid.ink.git
cd mermaid.ink
pnpm install
DEBUG=app:* pnpm start
Go to http://localhost:3000
Note that you may encounter DoS if you increase --max-http-header-size
!
-
If running locally, add
--max-http-header-size
to the start script in package.json- e.g.
"start": "node --max-http-header-size=102400000 src/index.js"
- e.g.
-
If running via docker, use
NODE_OPTIONS
to increase--max-http-header-size
- e.g.
docker run --rm -it -e 'NODE_OPTIONS="--max-http-header-size=102400000"' -p 3000:3000 jihchi/mermaid.ink
- e.g.
Or, If running locally, run NODE_OPTIONS="--max-http-header-size=102400000" npm start
to increase --max-http-header-size
Many thanks for your help!
The image of contributors is made with contrib.rocks.