Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suven/astro-link-previews
Generates rich GDPR-conform link previews / embeds in your astro project
https://github.com/suven/astro-link-previews
astro microlink oembed
Last synced: 12 days ago
JSON representation
Generates rich GDPR-conform link previews / embeds in your astro project
- Host: GitHub
- URL: https://github.com/suven/astro-link-previews
- Owner: Suven
- License: mit
- Created: 2024-04-21T19:53:23.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-24T19:21:28.000Z (8 months ago)
- Last Synced: 2024-04-25T01:07:46.931Z (8 months ago)
- Topics: astro, microlink, oembed
- Language: Astro
- Homepage: https://suven.github.io/astro-link-previews/
- Size: 607 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# astro-link-previews
![How it could look](./demo/screenshot.png)
[Demo / Usage / Configuration](https://suven.github.io/astro-link-previews/)
Provides a single component, to display links with thumb and description previews or 2-click iframe embeds. Ships as minimal third-party connections and
js as possible.Powered by https://microlink.io/
## Setup
Install via `npm i astro-link-previews`.
If you wish to predownload all remote assets, adjust your `astro.config.mjs`:
```js
image: {
//service: squooshImageService(),
remotePatterns: [{ protocol: "https" }],
},
```After that place a Card on any desires astro page:
```astro
---
import Card from "astro-link-previews";
---```