MCPcopy Index your code
hub / github.com/WebDevStudios/wds-blocks

github.com/WebDevStudios/wds-blocks @2.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.2.2 ↗ · + Follow
23 symbols 65 edges 47 files 4 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WDS Blocks

WebDevStudios library of Gutenberg blocks.

WebDevStudios. Your Success is Our Mission.

Current blocks

  • Accordion
  • Carousel

Table of Contents


Use as WordPress Plugin

  1. Download WDS Blocks
  2. Extract wds-blocks-main.zip into your project's /plugins directory
  3. Activate the plugin in the WordPress Dashboard

Plugin Development

If you're interested in using WDS Blocks to get started building your own blocks, follow the instructions below:

Requirements

Install

Clone the repo with Git:

git clone git@github.com:WebDevStudios/wds-blocks.git

Install dependencies:

npm i --legacy-peer-deps
composer install

Development

WDS Blocks using @wordpress/scripts to handle compiling assets and watching for changes.

See the Official Gutenberg Developer Documentation for extensive tutorials, documentation, and API references.

NPM Scripts

Use the following commands to get started:

Watch for changes:

npm start

Build a production version of WDS Blocks:

npm run build

Linting

Lint the codebase:

npm run lint

Format the codebase with Prettier:

npm run format

Webpack Config (optional)

The optional webpack.config.js file includes the @wordpress/scripts defaults, along with an entry path for /src/frontend.js. The frontend entry path is conditionally included and is not a requirement. It can be safely deleted.


Contributing and Support

Your contributions and support tickets are welcome. Please see our guidelines before submitting a pull request.

Core symbols most depended-on inside this repo

usePreviewToggle
called by 3
src/utils/hooks/use-preview-toggle/index.js
togglePreview
called by 3
src/utils/hooks/use-preview-toggle/index.js
withBackgroundColor
called by 1
src/utils/components/with-background-color/index.js
register_block
called by 0
wds-blocks.php
register_block_category
called by 0
wds-blocks.php
withFontColor
called by 0
src/utils/components/with-font-color/index.js
withBackgroundVideo
called by 0
src/utils/components/with-background-video/index.js
withBackgroundImage
called by 0
src/utils/components/with-background-image/index.js

Shape

Function 23

Languages

TypeScript91%
PHP9%

Modules by API surface

src/blocks/starter/edit.js4 symbols
src/utils/hooks/use-preview-toggle/index.js3 symbols
wds-blocks.php2 symbols
src/blocks/carousel-slide/components/Slide.js2 symbols
src/utils/components/with-overlay-color/index.js1 symbols
src/utils/components/with-font-color/index.js1 symbols
src/utils/components/with-background-video/index.js1 symbols
src/utils/components/with-background-image/index.js1 symbols
src/utils/components/with-background-color/index.js1 symbols
src/blocks/starter/save.js1 symbols
src/blocks/carousel/components/Slider.js1 symbols
src/blocks/carousel-slide/save.js1 symbols

For agents

$ claude mcp add wds-blocks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact