
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
opengraph-cacher
Advanced tools
[](http://opensource.inventid.nl)
Serving Opengraph data as a service
This project aims to be a simple service for internal use to fetch opengraph data in a structured fashion.
Additionally it caches the results for a configurable time in an Elasticsearch instance.
{
"_url": "https://www.werkenbijderechtspraak.nl/",
"_scrapedAt": 1487334683528,
"_cacheResponse": false,
"data": {
"locale": [{
"value": "nl_NL"
}],
"type": [{
"value": "website"
}],
"title": [{
"value": "Werken bij de Rechtspraak"
}],
"description": [{
"value": "Op zoek naar een baan die er toe doet? De Rechtspraak heeft geregeld vacatures voor nieuwe collega's in juridische, staf of ICT functies"
}],
"url": [{
"value": "https://www.werkenbijderechtspraak.nl/"
}],
"site_name": [{
"value": "Werken bij de Rechtspraak"
}],
"twitter_card": [{
"value": "summary"
}],
"twitter_description": [{
"value": "Op zoek naar een baan die er toe doet? De Rechtspraak heeft geregeld vacatures voor nieuwe collega's in juridische, staf of ICT functies"
}],
"twitter_title": [{
"value": "Werken bij de Rechtspraak"
}],
"twitter_site": [{
"value": "@rechtspraakbaan"
}],
"twitter_creator": [{
"value": "@rechtspraakbaan"
}],
"image": [{
"value": {
"value": "https://d3pxfuwnql1xse.cloudfront.net/30b9376b5b94713347a6c5c37faf2d1deef6cf59?url=https%3A%2F%2Fwww.werkenbijderechtspraak.nl%2Fwp-content%2Fuploads%2F2016%2F08%2Fheader-3.jpg",
"width": [{
"value": "1600"
}],
"height": [{
"value": "220"
}],
"type": [{
"value": null
}]
}
}],
"twitter_image": [{
"value": {
"value": "https://d3pxfuwnql1xse.cloudfront.net/30b9376b5b94713347a6c5c37faf2d1deef6cf59?url=https%3A%2F%2Fwww.werkenbijderechtspraak.nl%2Fwp-content%2Fuploads%2F2016%2F08%2Fheader-3.jpg",
"width": [{
"value": null
}],
"height": [{
"value": null
}],
"alt": [{
"value": null
}]
}
}]
}
}
The service will automatically create an index the first time save is performed. There are no special mappings required for the service.
In order to ensure clients can requests clients from http over https the camo service can be used. If the environment variables CAMO_HOST and CAMO_KEY are set, images are automatically rewritten to use the defined camo instance.
A Docker container is available. Configuration is done using some command line variables.
An example is:
docker run \
-e ES_URL=es.inventid.net:9200 \
-e ES_INDEX=opengraph \
-e ES_TYPE=cache \
-e ES_VERSION=1.7 \
-e CACHE_IN_DAYS=4 \
-p 7070:7070 \
inventid/opengraph-cacher
Example without elasticsearch:
docker run -p 7070:7070 inventid/opengraph-cacher
The CACHE_IN_DAYS variable can be omitted (which will fallback to 28 days).
The service has three simple endpoints:
Example: http://localhost:7070/opengraph/?url=http%3A%2F%2Finventid.nl ventid.nl).
Delete it from the cache, if you have a cache enabled.
To see if the container is online
FAQs
[](http://opensource.inventid.nl)
We found that opengraph-cacher demonstrated a not healthy version release cadence and project activity because the last version was released 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
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.