Packbase

pb.tags

Fetch the tags that can be attached to Packbase howls.

pb.tags() fetches the current list of tags for howls. It returns strings. Use these strings to make a tag selector or validate a user's selection.

pb.tags(): Fetch all tags

The result is a flat array. There is no surrounding data object and no pagination.

const tags = await .()
const tags: string[]
.() // ['rating_safe', 'rating_mature', 'art', 'digital', ...]

Returns: Promise<string[]>

Usage example

Use the tag list to populate a tag selector in the user interface:

const allTags = await .()
const allTags: string[]
// Keep rating choices separate from ordinary topic tags. const contentTags = .( => !.('rating_'))
const contentTags: string[]
.('Available content tags:', )

Notes

  • Tags are returned as plain strings.
  • Every new howl needs exactly one rating tag (rating_safe, rating_mature, rating_suggestive, or rating_explicit). Its position does not matter.
  • Additional tags beyond the rating are optional and free-form.

On this page