just-better/bard-link-suggestions

There is no license information available for the latest version (0.0.1) of this package.

Add's functionality to the bard so that it suggests links.

Maintainers

Package info

github.com/justbetter/statamic-bard-link-suggestions

pkg:composer/just-better/bard-link-suggestions

Statistics

Installs: 93

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.1 2026-04-10 07:30 UTC

This package is not auto-updated.

Last update: 2026-04-11 05:57:29 UTC


README

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