element-hq / element-hq/synapse

Handle structured data (JSON-LD / Microdata / RDFa) for URL previews

Open
#11,540 0 comments 0 reactions 0 assignees View on GitHub
T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#11540](https://github.com/matrix-org/synapse/issues/11540).

---

[Google supports "structured data"](https://developers.google.com/search/docs/advanced/structured-data/intro-structured-data) which is possibly fairly prevalent as it is used for SEO:

> Google uses structured data that it finds on the web to understand the content of the page, as well as to gather information about the web and the world in general.

The format they support are:

* [JSON-LD](https://json-ld.org/)
* [Microdata](https://html.spec.whatwg.org/multipage/)
* [RDFa](https://rdfa.info/)

Support for this would probably be similar to what we do for oEmbed and would essentially boil down to an {JSON-LD|Microdata|RDFa}->Open Graph converter.

See a conversation around this: https://matrix.to/#/!NasysSDfxKxZBzJJoE:matrix.org/$tvfeceE24AkQJyxB8Oj82Qm8g1dPpyKB8aE3pMS-nH4?via=matrix.org&via=libera.chat&via=envs.net

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.