Sign inSign up

kingtimer12/lightpolars

By kingtimer12

•Updated 1 day ago

Headless PDF and screenshot engine in Rust over CDP. Drop-in Chromium replacement for Puppeteer.

Image
Networking
Developer tools
0

756

kingtimer12/lightpolars repository overview

⁠lightpolars

Official Docker image for lightpolars.

lightpolars is a headless rendering engine built to turn HTML into PDFs and screenshots:

  • Compatible with CDP clients like Puppeteer
  • Drop-in Chromium replacement: just change the endpoint
  • No JavaScript and no network access, safe for untrusted HTML

Fast and lightweight:

  • Up to 3.9x faster than Chrome
  • ~10x less memory than Chrome
  • ~20 MB image

⁠Usage

Using docker run:

docker run -d --name lightpolars -p 127.0.0.1:9222:9222 -e CDP_ADDR=0.0.0.0:9222 kingtimer12/lightpolars

Using docker compose:

services:
  lightpolars:
    image: kingtimer12/lightpolars
    restart: unless-stopped
    environment:
      CDP_ADDR: 0.0.0.0:9222
    ports:
      - '127.0.0.1:9222:9222'

⁠CDP server on a custom port

docker run -d --name lightpolars -p 127.0.0.1:9333:9333 -e CDP_ADDR=0.0.0.0:9333 kingtimer12/lightpolars

⁠CDP traffic logging

docker run -d --name lightpolars -p 127.0.0.1:9222:9222 -e CDP_ADDR=0.0.0.0:9222 -e CDP_DEBUG=1 kingtimer12/lightpolars

⁠Health check

curl http://127.0.0.1:9222/health

Tag summary

Content type

Image

Digest

sha256:47f52ea94…

Size

19 MB

Last updated

1 day ago

docker pull kingtimer12/lightpolars