circumstellar 0.1.51

  • Installing
  • Versions
  • 46

Circumstellar logo
Travis Pub

A Dart wrapper for the Discord API. Feel free to contribute!

Documentation is available here, and examples can be found in the example directory.


  • Speedy (built upon the latest versions of the Dart SDK and web APIs)
  • Small dependency tree (only one direct dependency - w_transport, for both WebSocket and REST // five development dependencies)
  • Predictable - robust and well-defined type checks included with all models
  • Multiplatform - runs anywhere Dart VM (Web support soon) does


A quick example of the client in action:

import 'package:circumstellar/circumstellar.dart';

import 'package:w_transport/vm.dart' show vmTransportPlatform;
// Dart for Web: import 'package:w_transport/browser.dart' show browserTransportPlatform;

void main() {
  var client = new DiscordClient(new AuthSet('MY_TOKEN', TokenType.Bot), vmTransportPlatform /* dart for web: browserTransportPlatform */);
  client.dispatcher.messageCreate.listen((Message msg) async {
    print('Received message with ID ${} (Channel ID ${})');
    print('Content: ${msg.content}');
    if (msg.content == '!ping') {
  client.dispatcher.ready.listen((empty) {


Contributing guidelines:

  • Please use dartfmt and follow Dart's standard formatting rules for all your contributions
  • Please follow the naming conventions already laid out in the project
  • The tests haven't been fully written yet, so you can run bin/dev.dart (check file for the environment variables to set) to run a dev instance/test client of Circumstellar. You can also use the Shell script

Features and bugs

Please file feature requests and bugs at the issue tracker.


  • Add logging system
  • Remove TObjectId type parameter from internal entities


  • Jump releases for Pub publishing


  • Added Guild object
    • Added guildUpdate and guildCreate events
  • Added caching system for most Discord objects
  • Added image CDN endpoints for User and Guild


  • Fixed docs


  • Added caching for channels
  • Added channelCreate and channelUpdate events
  • Refactor entity system
  • Fix REST requests

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  circumstellar: ^0.1.51

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:circumstellar/circumstellar.dart';
Version Uploaded Documentation Archive
0.1.51 Jun 22, 2018 Go to the documentation of circumstellar 0.1.51 Download circumstellar 0.1.51 archive
0.1.22 Jun 22, 2018 Go to the documentation of circumstellar 0.1.22 Download circumstellar 0.1.22 archive
0.1.12 Jun 20, 2018 Go to the documentation of circumstellar 0.1.12 Download circumstellar 0.1.12 archive
0.1.11 Jun 20, 2018 Go to the documentation of circumstellar 0.1.11 Download circumstellar 0.1.11 archive
0.1.2 Jun 20, 2018 Go to the documentation of circumstellar 0.1.2 Download circumstellar 0.1.2 archive
0.1.1 Jun 20, 2018 Go to the documentation of circumstellar 0.1.1 Download circumstellar 0.1.1 archive
0.1.0 Jun 19, 2018 Go to the documentation of circumstellar 0.1.0 Download circumstellar 0.1.0 archive
0.1.20-dev1 Jun 20, 2018 Go to the documentation of circumstellar 0.1.20-dev1 Download circumstellar 0.1.20-dev1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.10


Detected platforms: Flutter, other

Primary library: package:circumstellar/circumstellar.dart with components: io.

Health suggestions

Format bin/dev.dart.

Run dartfmt to format bin/dev.dart.

Maintenance issues and suggestions

Homepage URL does not exists. (-20 points)

We were unable to access at the time of the analysis.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use circumstellar.dart. Packages with multiple examples should use example/


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.40.0 <=3.0.0
w_transport ^3.2.5 3.2.8
Transitive dependencies
charcode 1.1.2
collection 1.14.11
dart2_constant 1.0.2+dart2
fluri 1.2.5
http_parser 3.1.3
intl 0.15.7
js 0.6.1+1
meta 1.1.7
mime 0.9.6+2
path 1.6.2
sockjs_client 0.3.5
sockjs_client_wrapper 1.0.8
source_span 1.5.1
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
w_common 1.15.0
Dev dependencies
coverage ^0.8.0
dart_dev 2.0.0-alpha
dart_style ^0.2.0
dartdoc ^0.9.0
logging ^0.11.3+1 0.11.3+2
test ^0.12.0