voyant_apis 3.0.0 copy "voyant_apis: ^3.0.0" to clipboard
voyant_apis: ^3.0.0 copied to clipboard

Official Flutter SDK for Voyant APIs - NSFW image detection, text analysis, and email services with secure HMAC authentication.

Voyant APIs Flutter SDK #

Official Flutter SDK for Voyant APIs β€” NSFW image detection, text analysis, IP intelligence, and email services.


πŸ”‘ Get API Keys #

Create your account and generate API keys: https://console.voyantnetworks.com


Main Website: https://voyantnetworks.com
Docs: https://docs.voyantnetworks.com
Demo: https://demo.voyantnetworks.com


πŸ“¦ Installation #

flutter pub add voyant_apis


πŸš€ Quick Start #

import 'package:voyant_apis/voyant_apis.dart';

πŸ” Setup Credentials #

final credentials = VoyantAccountCredentials(
  apiKey: "YOUR_API_KEY",
  accountId: "YOUR_ACCOUNT_ID",
  apiSecret: "YOUR_API_SECRET",
);

🌐 IP Intelligence #

final ipIntel = VoyantApiIpIntelClient(
  credentials: credentials,
  projectId: "YOUR_PROJECT_ID",
);

// Single
final res1 = await ipIntel.lookup("8.8.8.8");

// Batch, max 50 ips
final res2 = await ipIntel.lookupBatch([
  "8.8.8.8",
  "1.1.1.1",
]);

🧠 Text Analysis #

final text = VoyantApiTextAnalyzeClient(
  credentials: credentials,
  projectId: "YOUR_PROJECT_ID",
);

// Single
final res1 = await text.analyze("hello world");

// Batch
final res2 = await text.analyzeBatch([
  "hello",
  "world",
]);

πŸ–ΌοΈ NSFW Detection #

final nsfw = VoyantApiNsfwClient(
  credentials: credentials,
  projectId: "YOUR_PROJECT_ID",
);

// Read file as bytes
final bytes = await file.readAsBytes();

// Single
final res1 = await nsfw.analyze(bytes);

// Batch
final res2 = await nsfw.analyzeBatch([
  bytes1,
  bytes2,
]);

βœ‰οΈ Email API #

final email = VoyantApiEmailClient(
  credentials: credentials,
  projectId: "YOUR_PROJECT_ID",
);

Verification Email #

final verification = EmailVerificationData(
  to: "user@example.com",
  fromType: EmailFromType.verify,
  username: "John",
);

final response = await email.send(verification.toJson());
// For verify
response.verifyOTP(otpController.text)

Welcome Email #

final welcome = EmailWelcomeData(
  to: "user@example.com",
  fromType: EmailFromType.updates,
  appName: "Voyant",
  button: EmailButton(
    text: "Get Started",
    url: "https://voyantnetworks.com",
  ),
);

await email.send(welcome.toJson());

Custom Email #

final custom = EmailCustomData(
  to: "user@example.com",
  fromType: EmailFromType.support,
  greeting: "Hello",
  title: "Welcome!",
  subtitle: "Glad to have you",
  message: "This is a custom email",
  subject: "Test Email",
);

await email.send(custom.toJson());

βš™οΈ Config #

  • credentials β†’ contains apiKey, accountId, apiSecret
  • projectId β†’ API instance ID
  • accountId β†’ your account identifier (required)

πŸ“Œ Notes #

  • NSFW: max 5 images, recommended <200KB each
  • Email: schema-based templates
  • All requests are securely signed (HMAC SHA256)

⚠️ Security #

Do NOT expose apiSecret in production apps.
Use your backend to sign requests for public apps.


πŸ“„ License #

MIT License

Copyright (c) 2026 Voyant Networks

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the β€œSoftware”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1
likes
150
points
320
downloads

Documentation

API reference

Publisher

verified publishervoyantnetworks.com

Weekly Downloads

Official Flutter SDK for Voyant APIs - NSFW image detection, text analysis, and email services with secure HMAC authentication.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #sdk #nsfw #email #text-analysis

License

MIT (license)

Dependencies

bcrypt, crypto, flutter, http, image_compression_flutter

More

Packages that depend on voyant_apis