nostr_app_finder_sdk 1.0.1 copy "nostr_app_finder_sdk: ^1.0.1" to clipboard
nostr_app_finder_sdk: ^1.0.1 copied to clipboard

A Dart SDK for discovering and finding Nostr applications using. Provides tools to search, filter, and manage Nostr app discovery with caching support.

A Dart SDK for discovering and finding Nostr applications using. Provides tools to search, filter, and manage Nostr app discovery with caching support.

Features #

Search for a specific app by name, tags, kinds and platforms.

Usage #

// use sembast to get the database
final dir = await getApplicationDocumentsDirectory();
await dir.create(recursive: true);
final dbPath = join(dir.path, 'my_database.db');
final db = await databaseFactoryIo.openDatabase(dbPath);

// create you finder instance
final appFinder = AppFinder(db: db);

// load apps in memory
await appFinder.loadApps();

// search
final matchingApps = appFinder.search(
    search: "upload",
    tags: ["video"],
    kinds: [24133],
    platforms: ["linux"],
);

print("${matchingApps.length} apps match the search");

Additional information #

This package use Sembast and Ndk, advanced users can directly interact with it to gain more control over the research.

0
likes
160
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart SDK for discovering and finding Nostr applications using. Provides tools to search, filter, and manage Nostr app discovery with caching support.

Repository

Documentation

API reference

License

MIT (license)

Dependencies

ndk, nip77, path, sembast, sembast_cache_manager

More

Packages that depend on nostr_app_finder_sdk