matrix-public-archive/server/lib
Eric Eastwood 16323df054
Add image metadata for URL previews (#224)
- Default to a nice `[matrix]` banner
    -  There is room for improvement here when the Matrix Public Archive gets it's own logo (https://github.com/matrix-org/matrix-public-archive/issues/94) and maybe says "Matrix Public Archive" somewhere in the banner.
    - This is good enough for now (and certainly better than downstream previews using the first image on the page).
 - For rooms, it will use the room avatar

Part of https://github.com/matrix-org/matrix-public-archive/issues/202

Image is sized to 1200x630 to match conventions of `og:image`.

Crafted the banner image by modifying the header on the room directory homepage and taking a node screenshot. Page zoom @ 175%
2023-05-10 00:50:12 -05:00
..
errors Timeout requests and stop processing further (#204) 2023-05-02 00:39:01 -05:00
matrix-utils Mark NSFW room pages with `<meta name="rating" content="adult">` (#216) 2023-05-05 15:36:26 -05:00
config.js Use JSON5 for configuration files with comments (#52) 2022-08-29 20:33:02 -05:00
express-async-handler.js Fix lints 2022-02-15 21:33:31 -06:00
fetch-endpoint.js Timeout requests and stop processing further (#204) 2023-05-02 00:39:01 -05:00
get-asset-url.js Add image metadata for URL previews (#224) 2023-05-10 00:50:12 -05:00
get-dependencies-for-entry-point-name.js Cache derived info from the `manifest.json` (#191) 2023-04-26 17:04:49 -05:00
get-version-tags.js Production ready build (#175) 2023-04-24 23:50:53 -05:00
parse-via-servers-from-user-input.js Timeout requests and stop processing further (#204) 2023-05-02 00:39:01 -05:00
safe-json.js OpenTelemetry tracing so we can see spans where the app is taking time (#27) 2022-07-14 11:08:50 -05:00
sanitize-html.js OpenTelemetry tracing so we can see spans where the app is taking time (#27) 2022-07-14 11:08:50 -05:00
set-headers-for-date-temporal-context.js Set `X-Date-Temporal-Context` header for easy cache rules (#209) 2023-05-04 13:42:59 -05:00
set-headers-to-preload-assets.js Set `X-Date-Temporal-Context` header for easy cache rules (#209) 2023-05-04 13:42:59 -05:00