Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apostrophecms-legacy/apostrophe-link-preview-widgets
A widget that renders a preview of a URL
https://github.com/apostrophecms-legacy/apostrophe-link-preview-widgets
Last synced: 1 day ago
JSON representation
A widget that renders a preview of a URL
- Host: GitHub
- URL: https://github.com/apostrophecms-legacy/apostrophe-link-preview-widgets
- Owner: apostrophecms-legacy
- License: mit
- Created: 2019-01-15T20:45:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T19:28:09.000Z (over 1 year ago)
- Last Synced: 2024-12-26T11:08:24.237Z (1 day ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# apostrophe-link-preview-widgets
## Renders a preview of a URL based on extracted metadata
### Detail
`apostrophe-link-preview-widgets` lets you paste a link to an external URL and have scraped meta data returned to a template. You can customize that template and use it to display a preview of the external website within your Apostrophe site. All previews are AJAXed in after page load and the module leverages `apostrophe-caches` for fastest delivery.## Scraping
By default, the widget scrapes the given website and returns an object of all `` key/values in the site's `` as well as any information that is part of [https://schema.org](https://schema.org) microdata spec.### Example response object
Your template will receive an object that could look like:
```js
{
status: 'ok',
body: '