farcaster_sdk 0.0.4 copy "farcaster_sdk: ^0.0.4" to clipboard
farcaster_sdk: ^0.0.4 copied to clipboard

This library allows you to call different Farcaster APIs to build your native app based on Farcaster! Currently working only with Warpcast API.

farcaster_sdk #

Pub

This is the unofficial Flutter SDK for the Farcaster protocol. It contains two useful API clients (one for Farcaster Hubs using Hubble and one for Warpcast) to be used in your Flutter app.

๐Ÿ“š Getting started #

Available platforms #

This library is available for both Flutter and Dart projects. These are the platforms where you can use this sdk:

  • โœ… Android
  • โœ… iOS
  • โœ… Windows
  • โœ… Linux
  • โœ… MacOS

This package does not work on the web.

Add dependency #

You can use this command to add farcaster_sdk to your Flutter app:

flutter pub add farcaster_sdk

It can also be used in dart projects by running a similar command:

dart pub add farcaster_sdk

Or you can manually add farcaster_sdk into the dependencies section in your pubspec.yaml file:

dependencies:
    farcaster_sdk: ^REPLACE_WITH_LATEST_VERSION

The current latest version is 0.0.4.

โ“ Usage #

The goal of this library is to be really simple to use in your Flutter apps.

Depending on which API client you want to use, you just need to initialize it. Both clients are singletons by design to be able to be reused inside your app.

Hubble (Farcaster Hubs) #

import 'package:farcaster_sdk/farcaster_sdk.dart';

final farcasterHubbleClient = FarcasterHubbleClient();

void main() async {
    await farcasterHubbleClient.init(
        "HUB_HOST",
        HUB_PORT,
        // optional credentials (insecure by default)
    );
}

Warpcast #

import 'package:farcaster_sdk/farcaster_sdk.dart';

final farcasterWarpcastClient = FarcasterWarpcastClient();

void main() async {
    await farcasterWarpcastClient.init(
        // Your API url, default is "https://api.warpcast.com", you can leave this blank.
    );
}

๐Ÿงพ TODOs #

  • โœ… Check authentication for Warpcast client
  • โœ… Stable version for Warpcast client
  • [] Add documentation for Warpcast client
  • [] Stable version for Hubble client
  • [] Add documentation for Hubble client
  • [] Create unified models for both Hubble and Warpcast client to have consistency in the results

๐Ÿ›ก๏ธ License #

This project is licensed under the terms of the MIT license. See LICENSE for more details.

โ€ผ๏ธ Disclaimer #

This code is being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the code. It has not been audited and as such there can be no assurance it will work as intended, and users may experience delays, failures, errors, omissions or loss of transmitted information. Nothing in this repo should be construed as investment advice or legal advice for any particular facts or circumstances and is not meant to replace competent counsel. It is strongly advised for you to contact a reputable attorney in your jurisdiction for any questions or concerns with respect thereto. Paolo Rollo is not liable for any use of the foregoing, and users should proceed with caution and use at their own risk.

1
likes
140
pub points
0%
popularity

Publisher

verified publisherpaolorollo.dev

This library allows you to call different Farcaster APIs to build your native app based on Farcaster! Currently working only with Warpcast API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, fixnum, flutter, grpc, protobuf, web3dart

More

Packages that depend on farcaster_sdk