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 .()
.() // ['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 .()
// Keep rating choices separate from ordinary topic tags.
const contentTags = .( => !.('rating_'))
.('Available content tags:', )Notes
- Tags are returned as plain strings.
- Every new howl needs exactly one rating tag (
rating_safe,rating_mature,rating_suggestive, orrating_explicit). Its position does not matter. - Additional tags beyond the rating are optional and free-form.