@playlive/tiltify-search
    Preparing search index...

    Class UserSearch

    Search wrapper for the public user Meilisearch index hosted at site-search.tiltify.com. Use this for lightweight username lookups.

    For full user profile hydration (badges, team memberships, retired campaigns, etc.) reach for TiltifyGraphQL#getUserBySlug in the @playlive/tiltify-graphql package — that surface is intentionally kept out of the search package so REST/search consumers don't pull a GraphQL dep transitively (PRD §5.2 / §5.3).

    import { UserSearch } from "@playlive/tiltify-search";

    const us = new UserSearch();
    const { hits } = await us.findUserByUsername("warchant");
    Index
    client: MeiliSearch
    index: Index
    • Find users by exact username match.

      Parameters

      • username: string

        The Tiltify username.

      • hitsPerPage: number = 100

        Page size. Defaults to 100.

      • page: number = 1

        1-based page index. Defaults to 1.

      Returns Promise<
          SearchResponse<
              { id: string },
              {
                  attributesToHighlight: string[];
                  filter: string;
                  hitsPerPage: number;
                  page: number;
                  totalHits?: number;
              },
          >,
      >

      The raw Meilisearch search response.

      const { hits } = await us.findUserByUsername("warchant", 50, 1);