Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjgd/open-graph-preview-demo
The purpose of this project is to show how to use open graph annotations to have a rich preview of a link in Slack (or other websites)
https://github.com/gjgd/open-graph-preview-demo
lambda open-graph serverless slack
Last synced: 8 days ago
JSON representation
The purpose of this project is to show how to use open graph annotations to have a rich preview of a link in Slack (or other websites)
- Host: GitHub
- URL: https://github.com/gjgd/open-graph-preview-demo
- Owner: gjgd
- Created: 2020-08-03T15:52:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:43:37.000Z (almost 2 years ago)
- Last Synced: 2024-07-30T19:43:16.115Z (3 months ago)
- Topics: lambda, open-graph, serverless, slack
- Language: JavaScript
- Homepage: https://l3mukrh389.execute-api.us-east-1.amazonaws.com/dev/2
- Size: 295 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# open-graph-preview-demo
## Install
Install `serverless` (and its alias `sls`)
```bash
npm i -g serverless
```To deploy:
```bash
sls deploy
```## Try it:
https://l3mukrh389.execute-api.us-east-1.amazonaws.com/dev/2
If you paste this link in Slack, it will recognize the user agent and return open graph annotation
If you paste this link in a normal browser, it will return a Hello world sentence
## Links
- https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254
- https://ogp.me/