opencode_api 0.1.1 copy "opencode_api: ^0.1.1" to clipboard
opencode_api: ^0.1.1 copied to clipboard

A Dart package that wraps the opencode.ai API using retrofit for type-safe HTTP requests.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add opencode_api

With Flutter:

 $ flutter pub add opencode_api

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  opencode_api: ^0.1.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:opencode_api/opencode_api.dart';
2
likes
160
points
14
downloads

Documentation

API reference

Publisher

verified publishercdavis.ca

Weekly Downloads

A Dart package that wraps the opencode.ai API using retrofit for type-safe HTTP requests.

Repository (GitHub)
View/report issues

Topics

#api #http #client #retrofit #opencode

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

dio, json_annotation, logger, retrofit

More

Packages that depend on opencode_api