Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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: '