at_uri 0.0.2
at_uri: ^0.0.2 copied to clipboard
Provide standard uri supported by AT Protocol to Dart/Flutter.
Provide Standard AT Uri Supported By AT Protocol to Dart/Flutter 🎯
1. Guide 🌎 #
This library provides the easiest way to use AT Uri supported by AT Protocol in Dart and Flutter apps.
Show some ❤️ and star the repo to support the project.
1.1. Getting Started ⚡ #
1.1.1. Install Library #
With Dart:
dart pub add at_uri
Or With Flutter:
flutter pub add at_uri
1.1.2. Import #
import 'package:at_uri/at_uri.dart';
1.1.3. Implementation #
import 'package:at_uri/at_uri.dart';
void main(List<String> args) {
final uri = AtUri.parse('at://bob.com/com.example.post/1234');
uri.protocol; // => 'at:'
uri.origin; // => 'at://bob.com'
uri.hostname; // => 'bob.com'
uri.collection; // => 'com.example.post'
uri.rkey; // => '1234'
ensureValidAtUri('at://user.bsky.social'); // => returns void
ensureValidAtUri('at//did:plc:asdf123'); // => throws
}
1.2. Contribution 🏆 #
If you would like to contribute to at_uri, please create an issue or create a Pull Request.
There are many ways to contribute to the OSS. For example, the following subjects can be coat_uriered:
- There are request parameters or response fields that are not implemented.
- Documentation is outdated or incomplete.
- Have a better way or idea to achieve the functionality.
- etc...
You can see more details from resources below:
Or you can create a discussion if you like.
Feel free to join this development, diverse opinions make software better!
1.3. Support ❤️ #
The simplest way to show us your support is by giving the project a star at GitHub and Pub.dev.
You can also support this project by becoming a sponsor on GitHub:
You can also show on your repository that your app is made with at_uri by using one of the following badges:
[![Powered by at_uri](https://img.shields.io/badge/Powered%20by-at_uri-00acee.svg)](https://github.com/myConsciousness/atproto.dart)
[![Powered by at_uri](https://img.shields.io/badge/Powered%20by-at_uri-00acee.svg?style=flat-square)](https://github.com/myConsciousness/atproto.dart)
[![Powered by at_uri](https://img.shields.io/badge/Powered%20by-at_uri-00acee.svg?style=for-the-badge)](https://github.com/myConsciousness/atproto.dart)
1.4. License 🔑 #
All resources of at_uri is provided under the BSD-3
license.
Copyright 2023 Kato Shinya. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided the conditions.
Note
License notices in the source are strictly validated based on.github/header-checker-lint.yml
. Please check header-checker-lint.yml for the permitted standards.
1.5. More Information 🧐 #
at_uri was designed and implemented by Kato Shinya (@myConsciousness).