New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

just-better/bard-link-suggestions

Add's functionality to the bard so that it suggests links.
1,040
Install
composer require just-better/bard-link-suggestions
Latest Version:0.0.1
Laravel:13
Last Updated:Apr 10, 2026
Links: GitHub  ·  Packagist
Maintainer: justbetter

Statamic Bard Link Suggestions

JustBetter logo A Statamic addon that adds **link suggestions** to the Bard editor.

While you type in Bard, this addon searches for possible links and shows a dropdown of suggestions. Suggestions are sourced from:

  • Statamic entries (based on configurable fields per collection)
  • Sitemaps (URLs indexed from one or more sitemap XML files)

Requirements

  • Statamic v6
  • Laravel 12+
  • PHP 8.3+
  • Statamic Eloquent Driver (this package queries entries via Eloquent/Stache)

Installation

Install the package via Composer:

composer require just-better/bard-link-suggestions

Run the migrations:

php artisan migrate

Usage

Once installed, Bard will start requesting suggestions while you type.

  • Suggestions appear after typing 3+ characters of the current word (debounced).
  • Clicking a suggestion turns the current word into a link.
  • Only super users and users with the marketeer flag will see suggestions.

Configuration (Control Panel)

Go to the Control Panel settings page:

  • JustBetter → Suggestions settings

On this page you can configure:

  • Queryable fields per collection: choose which entry fields should be searched.
  • Sitemap URLs: add one or more sitemap XML URLs (per Statamic site).

Sitemap indexing

Sitemap suggestions are backed by a database table that stores URLs extracted from your sitemap(s).

Index all configured sitemaps using:

php artisan statamic-bard-suggestions:index-sitemaps

Notes:

  • Indexing runs via the queue. Make sure a queue worker is running.
  • When you update sitemap settings, indexing/pruning jobs are dispatched automatically.

Quality

To ensure the quality of this package, run:

composer quality

This will execute:

  1. Tests
  2. Static analysis
  3. Code style checks

Testing

composer test

Credits

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The MIT License (MIT). Please see License File for more information.

JustBetter logo

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released Laravel License
0.0.1 ^13