Add GitHub Gist loading capability to json-string-extractor#69
Merged
Conversation
Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
Deploying tools with
|
| Latest commit: |
4195e1f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fd62ef79.tools-b1q.pages.dev |
| Branch Preview URL: | https://copilot-add-load-gist-option.tools-b1q.pages.dev |
Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ability to load data from GitHub Gists
Add GitHub Gist loading capability to json-string-extractor
Oct 18, 2025
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the issue by adding the ability to load JSON data from GitHub Gists.
What's New
The json-string-extractor tool now supports loading JSON files directly from GitHub Gists. This makes it easy to share and analyze JSON data without needing to copy-paste large amounts of text.
How It Works
Load Gist Button: A new "Load Gist" button appears next to the existing "Load example JSON" button. When clicked, it prompts you to enter either:
https://gist.github.com/simonw/1d1013ba059af76461153722005a039d)1d1013ba059af76461153722005a039d)Smart JSON Detection: The tool fetches the Gist from GitHub's API and automatically finds the first valid JSON file in it, even if the Gist contains multiple files.
URL Hash Integration: When a Gist is loaded, the URL updates to include
#gist=gist-id. This means you can share a direct link to the tool with a specific Gist pre-loaded, like:Auto-loading: If you visit the tool with a
#gist=gist-idhash in the URL, the Gist is automatically loaded when the page opens.Implementation Details
prompt()API as specified in the requirementsScreenshots
New "Load Gist" button in the UI:
Tool successfully extracting strings from JSON loaded from a Gist:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/gists/1d1013ba059af76461153722005a039dcurl -s REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #68
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.