Skip to content
pubscout

bluesky_text

1.8.0, released 3 months ago by atprotodart.com

Analyze text for Bluesky Social to detect handles, links, and tags, and generate facets.

WASM-ready
$ flutter pub add bluesky_text
Source repository

What it does

Provides tools to parse text for Bluesky Social, automatically detecting handles, links, and tags while supporting Unicode grapheme clusters and safe text splitting. It converts detected entities into Bluesky-compatible facets and handles link facade warnings.

AI-written summary of version 1.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building a Bluesky client or integration in Dart and Flutter
  • Extracting handles, links, and hashtags from user input posts
  • Generating rich-text facets for Bluesky social posts

Skip it when

  • Building generic non-Bluesky text parsing applications
  • Needing general Markdown rendering without Bluesky social specific rules

Strengths

  • Automatic detection of handles, links, and tags
  • 100% compatible with the bluesky package
  • Supports Unicode grapheme clusters and safe text splitting
  • Zero external domain dependencies outside basic networking

Weaknesses

  • Scoped strictly to Bluesky Social text structures
  • Relies on network calls or a resolver to convert handles to DIDs

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
5
import 'package:bluesky_text/bluesky_text.dart';

Future<void> main() async {
  final text = BlueskyText('Hello @shinyakato.bsky.social! Visit https://shinyakato.dev.');
  final data = await text.toPostData();
  print(data.text);
  print(data.facets);
}

Alternatives

Packages that do the same job and could replace bluesky_text.

Works with

Packages commonly used together with bluesky_text: ones it builds on, ones built on it, and its own family.