bricks_list_cdn_libraries

Phase 4.5BeginnerRead OnlyComplexity: 1/10
Browse available CDN libraries by category

Overview

Lists all available CDN libraries from the built-in catalog that can be loaded to enhance the site design. Libraries are grouped by category: animations, text-effects, backgrounds, sliders, and interactions. Each entry includes a description, usage hints, and asset count.

Use this to browse what’s available before loading a library with bricks_load_cdn_library.

Key Features

Category filtering
Filter by: animations, text-effects, backgrounds, sliders, interactions, or "all"
Usage hints
Each library includes integration hints for Bricks elements
13+ libraries
AOS, GSAP, Animate.css, Lenis, Typed.js, Splitting.js, CountUp, tsParticles, Vanta.js, Swiper, Lottie, GLightbox, CSS Marquee

When to Use

Phase 4.5 (CDN Enhancement) to see available libraries
When deciding which animation or effect library to use
To check usage hints before loading a library
Prerequisites
No prerequisites — this is a read-only catalog lookup

When NOT to Use

To actually load a library — use bricks_load_cdn_library instead
For custom CDN URLs not in the catalog — use bricks_load_custom_cdn

Parameters

1 Total Parameters1 Optional
categoryenumoptional
Filter by category, or "all" for the full catalog
Default: all Values: all, animations, text-effects, backgrounds, sliders, interactions

Code Examples

List animation libraries

Browse available animation libraries

JSON
{
    "category": "animations"
}
Response
{"total": 5, "libraries": [{"id": "aos", "label": "AOS", "category": "animations", ...}]}

Tips & Warnings

Tips & Warnings
  • Max 2-3 JS libraries per site — pick the most impactful ones
  • Prefer CSS-only solutions when possible (glassmorphism, gradients, marquee)
  • Choose ONE scroll animation lib: AOS or GSAP, not both

Return Values

FieldTypeDescription
totalnumberNumber of libraries in the filtered result
librariesarrayArray of library objects with id, label, category, description, usageHint

Related Tools

Technical Details

Tool ID
bricks_list_cdn_libraries
API Endpoint
N/A (client-side catalog)
HTTP Method
GET
Namespace
wordpress-site
Source File
wordpress/cdn-libraries.ts
Version
1.0
Min Bricks Version
1.9
Requires Auth
Yes

Changelog

v1.0
Initial release
20250101