Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / embed / EmbedConfigSortingSchemaType

Type Alias: EmbedConfigSortingSchemaType

type EmbedConfigSortingSchemaType = {
  algorithm: "chronological" | "hot";
  hot: {
     reaction: string;
     volumeMetadataKey: string;
  };
};

Defined in: packages/sdk/src/embed/schemas/index.ts:271

Type declaration

algorithm

algorithm: "chronological" | "hot";

Sorting algorithm.

  • "chronological" sorts by creation time descending.
  • "hot" applies a Hacker News-style time-decayed ranking score.

Default

"chronological"

hot

hot: {
  reaction: string;
  volumeMetadataKey: string;
};

Hot ranking configuration.

hot.reaction

reaction: string;

Reaction key used as score input for hot sorting.

Default
"like"

hot.volumeMetadataKey

volumeMetadataKey: string;

Metadata key used to read a numeric volume score from hook metadata.

Default
"volume"