Gutenberg Stocks
Wordpress Gutenberg Plugin for displaying Stocks using Alphavantage API and React. Plugin renders Stock index information as a Time Series of the global equity specified, covering 20+ years of historical data.
Install / Use
npx skills add nikolareljin/gutenberg-stocksInstalls into whichever agent you are using.
README
Stock Information
Demo project for Zac Gordon's JS for WP course : https://javascriptforwp.com
Plugin renders Stock index information as a Time Series of the global equity specified, covering 20+ years of historical data.
Requirements: Node 20.x, npm 10+, Gutenberg 4.8 (or later).
The data is shown for a period of the last month (30 days) till the current day.

This plugin uses Alphavantage API service for historical stock data retrieval: https://www.alphavantage.co/
Note : Alphavantage API allows 4 requests per minute in the Free API service so using more than that number of requests will result in an error.
Please get your API token before activating the plugin. https://www.alphavantage.co/support/#api-key
Setup application
Clone the project into your Wordpress wp-content/plugins or wp-content/mu-plugins .
In the administration section of your website, Activate the plugin.
Configure your API settings in the plugin congfiguration.
Configure the plugin
Open the page configuration page and change the default settings.
Go to the following link: wp-admin/admin.php?page=stockinfo_settings

Please insert the Token you previously retrieved from the API service: https://www.alphavantage.co/support/#api-key
Use the plugin
Insert new Block into the content.

Search the Stock Index key you would like to show.
The plugin is using Autocomplete functionality to search for the indexes using Alphavantage API. To start the autocomplete, you need to type $ character that will enable the Autocompleter.

Select the index and click Enter.

Final result with the stock graph displayed in the post.
You can change the Index once it was displayed on the page by pressing $ in the Enter Comppany name to find Stock Index prompt.

Prepare PHP
composer install --no-dev
to install the required packages
composer dump-autoload --optimize
More information about the API
https://www.alphavantage.co/documentation/
Compile React components
Install NPM dependencies
npm install
👉 npm start
- Use to compile and run the block in development mode.
- Watches for any changes and reports back any errors in your code.
👉 npm run build
- Use to build production code for your block inside
buildfolder. - Runs once and reports back the gzip file sizes of the produced code.
React Stock Charts
This project uses React Stock Charts to render the time series: http://rrag.github.io/react-stockcharts/documentation.html#/svg_vs_canvas
More information about the React component: https://github.com/rrag/react-stockcharts
Build Tooling
This project uses modern @wordpress/scripts tooling for block build and development workflows.
Related Skills
coding-agent
385.5kDelegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
gh-issues
385.5kFetch GitHub issues, select candidates, spawn background fix agents, open PRs, and optionally process PR review comments.
notion
385.5kNotion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.
oracle
385.5kOracle CLI second-model review/debug/refactor/design with selected files, dry-run token checks, API or browser engine.
