Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

Gistful For GitHub Wordpress Plugin - Rating, Reviews, Demo & Download

Gistful For GitHub Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Gistful for GitHub embeds GitHub Gists in your posts and pages. It is a replacement for GistPress: existing [gist] shortcodes and pasted gist URLs keep working, so you can switch without editing your content.

Features:

  • Block editor block, [gistful] shortcode and pasted gist URLs (oEmbed-style) all supported. [gist] works too, as a compatibility alias for GistPress content (see the FAQ).
  • Local CSS, no browser requests to GitHub from the plugin’s own CSS and scripts. Gists are fetched and cached by your server. The only exception is images inside Markdown gists, which are served by GitHub.
  • Dark mode: follows the visitor’s system preference automatically, or force light or dark in the settings.
  • “Copy” button on every code and CSV file and “Copy all” on multi-file gists: copies exactly the lines shown, without line numbers (CSV files copy as CSV). Markdown files are shown rendered, so they have no Copy button. Can be turned off in the settings, per block, or with copy="no" on the shortcode.
  • Line numbers, line ranges and line highlighting, file selection for multi-file gists, and Markdown and CSV files rendered inline. Files GitHub shows with special viewers (notebooks, maps, 3D models) get a link to GitHub.
  • Migration tool (Tools > Gistful Migration) to convert GistPress content, with a backup so changes can be reverted.
  • Security hardening: gist HTML is sanitized with a strict allow-list, requests go only to GitHub over verified TLS with short timeouts and size limits, and the optional API token is read from a constant and never stored in the database or printed.
  • WP-CLI cache command and clean uninstall.

Credits: based on GistPress by Brady Vercher and Gary Jones (https://github.com/bradyvercher/gistpress).

External services

This plugin connects to GitHub, a code hosting service provided by GitHub, Inc., to fetch the gists you embed. Without it the plugin cannot display gists.

  • What is sent and when: when a post containing a gist is saved, and when a visitor views a post whose cached copy of the gist has expired, your server requests the gist from gist.github.com (the gist’s embed data) and, when that fails or to read the gist’s file names, from api.github.com. The request contains the gist ID, the selected file name if any, and a User-Agent with the plugin version and your site URL. If you define GISTFUL_GITHUB_TOKEN, that token is sent to api.github.com to authenticate. No data about your visitors is sent.
  • Images inside Markdown gists are loaded by the visitor’s browser directly from GitHub’s servers (for example githubusercontent.com), so GitHub receives the visitor’s IP address and browser details for those images.
  • GitHub Terms of Service: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
  • GitHub Privacy Statement: https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement

Privacy

Your server contacts gist.github.com and api.github.com to fetch the gists you embed; no personal data of your visitors is sent, and the request carries a User-Agent with the plugin version and your site URL. The results are cached in your database. The plugin’s own CSS and scripts are served from your site and make no browser requests to external domains. Markdown gists may contain images, and those images are served by GitHub, so a visitor’s browser will request them from GitHub’s servers. The plugin does not set cookies or track visitors.

Source code

The full, unminified source, including the block source under src/, is available at https://github.com/gioxx/wp-gistful. The compiled block in build/ is produced with npm ci && npm run build (@wordpress/scripts).

Credits

Based on GistPress by Brady Vercher and Gary Jones: https://github.com/bradyvercher/gistpress

Screenshots

No screenshots provided


Reviews & Comments