poptart_lex 0.1.0 copy "poptart_lex: ^0.1.0" to clipboard
poptart_lex: ^0.1.0 copied to clipboard

Generated Dart types and method descriptors for AT Protocol ecosystem lexicons.

poptart_lex #

Generated Dart record types, generated XRPC method values, method descriptors, IDs, and curated protocol surfaces for AT Protocol ecosystem lexicons.

import 'package:poptart/poptart.dart';
import 'package:poptart_lex/app/bsky/actor/get_profile.dart' as get_profile;

Future<void> main() async {
  final client = PoptartClient.anonymous();
  final response = await client.call(
    get_profile.appBskyActorGetProfile,
    parameters: const get_profile.ActorGetProfileInput(actor: 'bsky.app'),
  );

  print(response.data.handle);
}

client.call also accepts get_profile.methodDescriptor. Generated method values are a nice default for domain/subdomain entrypoints; descriptors remain the explicit lower-level primitive.

1
likes
160
points
122
downloads

Documentation

Documentation
API reference

Publisher

verified publishersprk.so

Weekly Downloads

Generated Dart types and method descriptors for AT Protocol ecosystem lexicons.

Homepage
Repository (GitHub)
View/report issues
Contributing

Funding

Consider supporting this project:

github.com

License

BSD-3-Clause (license)

Dependencies

characters, freezed_annotation, json_annotation, poptart_core, poptart_primitives, poptart_xrpc

More

Packages that depend on poptart_lex