Sign inSign up

muneebrather/link-preview-generator

By muneebrather

Updated 2 months ago

Node.js/TS service that extracts website metadata, demonstrating Docker multi-stage builds.

Image
Languages & frameworks
Developer tools
Web servers
0

130

muneebrather/link-preview-generator repository overview

Link Preview Generator is a Node.js/TypeScript service that fetches website metadata (title, description, image, site name) from any URL. Built to demonstrate Docker multi-stage builds, reducing the final image size from approximately 1.2 GB to 246 MB

DOCKER CONCEPTS DEMONSTRATED:

  • Multi-stage Dockerfile (build vs runtime separation)
  • Image size optimization (~1.2GB → ~246MB)
  • Production-only dependencies
  • .dockerignore best practices
  • TypeScript compilation inside container

TECH STACK:

  • Node.js 20
  • TypeScript
  • Express
  • link-preview-js
  • Docker

USAGE:

Run the container:
docker run -d \
  --name preview \
  -p 3000:3000 \
  muneebrather/link-preview:latest

Author

Muneeb Ahmad Rather

Tag summary

Content type

Image

Digest

sha256:c7bfc5d96

Size

54 MB

Last updated

2 months ago

docker pull muneebrather/link-preview-generator