mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
54 lines
928 B
Markdown
54 lines
928 B
Markdown
# Nitro-Embed
|
|
API Service for fetching URL Information like images, icons, descriptions etc. thourgh OpenGraph, oEmbed and other standards.
|
|
|
|
> early version of simpler embed api with Metascraper and oEmbed for better results.
|
|
|
|

|
|
|
|
---
|
|
|
|
## Todo`s
|
|
- [x] Metascraper
|
|
- [x] oEmbed
|
|
- [ ] Temporary API Cache in some DB?
|
|
- [ ] Scrape for meta tags
|
|
- [ ] Image Caching
|
|
|
|
---
|
|
|
|
## Install and start development server
|
|
|
|
Install dependencies
|
|
```shell
|
|
yarn install
|
|
```
|
|
|
|
Start development server
|
|
```shell
|
|
yarn dev
|
|
```
|
|
|
|
## Example Request
|
|
Use the following request by posting it against the endpoint or open the url the `yarn dev` script did gave you and fire it there to get your first result.
|
|
|
|
```grapql
|
|
{
|
|
embed(url: "https://human-connection.org") {
|
|
type
|
|
embed
|
|
title
|
|
description
|
|
author
|
|
publisher
|
|
url
|
|
date
|
|
image
|
|
audio
|
|
video
|
|
lang
|
|
logo
|
|
sources
|
|
}
|
|
}
|
|
```
|