{"id":15975221,"url":"https://github.com/flexseth/polygon-block","last_synced_at":"2026-02-08T08:03:19.371Z","repository":{"id":190633682,"uuid":"682839412","full_name":"flexseth/polygon-block","owner":"flexseth","description":"Polygon block to demonstrate API access with Gutenberg.","archived":false,"fork":false,"pushed_at":"2023-09-05T22:44:42.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T22:32:47.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Mustache","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexseth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-25T02:07:05.000Z","updated_at":"2023-08-25T02:08:38.000Z","dependencies_parsed_at":"2025-01-20T02:50:39.912Z","dependency_job_id":"0ee2c92e-dcd4-4daa-acee-f5f8bd5ea4f1","html_url":"https://github.com/flexseth/polygon-block","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"3d168e700dc918f131bbc1fe3c5ab844d4749511"},"previous_names":["flexseth/polygon-block"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexseth/polygon-block","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fpolygon-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fpolygon-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fpolygon-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fpolygon-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexseth","download_url":"https://codeload.github.com/flexseth/polygon-block/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fpolygon-block/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270065429,"owners_count":24520946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T22:01:22.090Z","updated_at":"2026-02-08T08:03:14.337Z","avatar_url":"https://github.com/flexseth.png","language":"Mustache","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mission Objective\nShowcase using the SWR data fetching library with a bleeding edge WordPress + React component, to create a user interface that displays in the editor. The user should be able to type in a stock symbol that is publicly traded on the Dow Jones Industrial Average (DJIA) and the most recent closing price shows up in the display pane.\n\n### Todo \n### Release 1.0\n- [x] WordPress InputControl working on back-end, data persistance\n- [ ] Basic return of API call with SWR, from Polygon\n- [x] Adding Debounce to wait to call API\n- [ ] Showcase getting system date via data store calls `wp.select`\n- [ ] Reuse code from React app to calculate date for API call\n- [ ] Simple block display in editor\n- [ ] Send off for review\n\n### Release 1.2\n- [ ] Create front-end widget to display data? - Edit create/block template\n- [ ] Dynamic variant (rendered server side with php) - not SSR!\n- [ ] Add in variant with Interactivity API\n- [ ] Add API key settings field (in lieu of hard coded)\n- [ ] Toggle Polygon views (daily, all time, monthly/etc) - Interactivity API\n- [ ] Send off for review\n\n### Release 1.3\n- [ ] Use custom post types to create ticker widgets that can display across pages\n- [ ] Create new \"closing price\" widget - CPT UI\n- [ ] Allow for exporting of widget HTML code, create a new template part with\n- [ ] Move to a certain page area based on category or tag\n- [ ] Allow to only have one block per page or post\n- [ ] \n\n### Todo: Enhancements\n- [ ] *MUSTACHE*    API template, include a flag for API key on scaffolding\n- [ ] *MUSTACHE*    Improve API template  \n\n\n### Installation\n- Register for Polygon/API key\n- Clone repository\n  `git clone https://github.com/flexseth/polygon-block`\n- Add your key to the file API_KEY, - \"REPLACE_WITH_YOUR_API_KEY\"\n- Scaffold block with SWR \n- Activate plugin\n- Add Polygon block to your post or page to see it work\n- \n### Changelog\n- 1.2.3 Scaffolded using Ryan Welcher's SWR/API-template create-block package","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexseth%2Fpolygon-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexseth%2Fpolygon-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexseth%2Fpolygon-block/lists"}