module GtmToolFinder

Overview

Search the OneGTMLab GTM tool directory (https://www.onegtmlab.dev/tool-directory): API reviews of sales and marketing tools, head-to-head comparisons and plain-English GTM glossary terms.

The index is compiled into the shard, so it works offline and sends no data anywhere.

Defined in:

gtm-tool-finder.cr

Constant Summary

KIND_ORDER = {"Tool" => 0, "Category" => 1, "Comparison" => 2, "Glossary" => 3}
VERSION = "1.0.0"

Class Method Summary

Class Method Detail

def self.all : Array(Entry) #

Every entry in the directory.


[View source]
def self.search(query : String, kind : String = "", limit : Int32 = 20) : Array(Entry) #

Entries whose name or description contains every word of query. kind filters by Tool, Category, Comparison or Glossary (case-insensitive, empty means all). limit caps the result count (0 or less means 20).


[View source]