Flarum (2.x)
    Preparing search index...

    Finding something to install.

    The one thing this does that a bare Packagist search does not: it says whether a result works with the Flarum you actually have, BEFORE you press anything — not at install time, after the resolve, after the wait, and in the form of a constraint error rather than a sentence.

    Verdicts arrive in a second request, so results appear immediately and the badges fill in. Waiting on a dozen round trips before showing anything would be the slower, worse version of the same screen.

    Hierarchy (View Summary)

    Index
    category: string = ''

    '' is everything; the rest are the keys of Packagist::CATEGORIES.

    checking: boolean = false
    compact: NumberFormat | null = null

    One formatter for every card's download count; the locale does not change while the page is open.

    core: string | null = null
    error: string | null = null
    installedNames: string[] = []
    lastSearched: string | null = null

    The query whose results are on screen, so a keystroke can tell if anything changed.

    loadingMore: boolean = false
    minimumStability: string = 'stable'
    more: boolean = false
    page: number = 1
    query: string = ''
    results: Found[] = []
    searched: boolean = false
    searching: boolean = false
    seq: number = 0
    shown: { category: string; query: string } = ...

    The query and category the results on screen belong to, which "Show more" pages through. Not the search box: what is typed there may not have been searched yet, and its second page appended under the first page of something else.

    typing: Timeout | null = null

    The pending debounce, so a new keystroke replaces it rather than adding to it.

    verdicts: Record<string, Verdict> = {}
    • The next page, appended.

      Appended rather than replacing, because browsing is a scroll and losing what you already looked at to see more of it is the wrong trade. Each page costs its own compatibility pass, which is why they are fetched a page at a time rather than all 2306 at once.

      Returns void