https://github.com/useflyyer/socialpreview-flyyer
SocialPreview.io flyyer smart image preview served from https://flyyer.io
https://github.com/useflyyer/socialpreview-flyyer
flyyer link-share-preview smart-og-image socialpreview
Last synced: about 1 year ago
JSON representation
SocialPreview.io flyyer smart image preview served from https://flyyer.io
- Host: GitHub
- URL: https://github.com/useflyyer/socialpreview-flyyer
- Owner: useflyyer
- Created: 2020-10-27T19:45:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T15:43:06.000Z (over 3 years ago)
- Last Synced: 2025-03-24T11:13:10.524Z (about 1 year ago)
- Topics: flyyer, link-share-preview, smart-og-image, socialpreview
- Language: TypeScript
- Homepage: https://flyyer.io
- Size: 2.81 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README

# 🌠 Flayyer example from SocialPreview.io
This was built with `yarn create flayyer-app` using `typescript & styled-components` template interactive option. Automated deploy using [flayyer-actions](https://github.com/flayyer/flayyer-actions).
## Create your own flexible & automated image preview for your website
Feel free to checkout the latest documentation at [flayyer.com/docs](http://flayyer.com/docs) 📖
## Development
You can start a development server at [http://localhost:7777](http://localhost:7777) with:
```sh
npm run start
# Custom port and host
npm run start --port 3000 --host 0.0.0.0
```
Then preview your template at [http://localhost:7777/main.html](http://localhost:7777/main.html)
## Deployment
Once you are ready to deploy please remember to build the project first:
```sh
npm run build
```
Get your Flayyer key from [https://flayyer.com](https://flayyer.com) and set it as an environment variable:
```sh
export FLAYYER_KEY=...
```
Deploy to production
```sh
npm run deploy
```
You can find the URL for your deck in the terminal output.
## Flayyer Studio
For a better development experience visit [flayyer.github.io/flayyer-studio/](https://flayyer.github.io/flayyer-studio/)

## FAQ & Caveats
### SCSS Support
Sure. Install `npm install --save sass` and just import your SASS/SCSS files just like: `import "/styles.scss"`.
> See: https://flayyer.com/en/docs/structure/styles
### Custom fonts
Refer to https://flayyer.com/en/docs/structure/fonts.
### Nested directories
**This is not implemented yet. Please prefer a flat `/templates` directory.** This means you have to avoid folders inside `/templates`.
Folders outside `/templates` is ok 👍
### Development server crashes or stop previewing
The development server (`npm start`) can be buggy sometimes. Please restart the server if you encounter any problems.