https://github.com/0xdir/satisfaction_dart
A collection of customer satisfaction scores and metrics used by businesses to measure and assess customer satisfaction.
https://github.com/0xdir/satisfaction_dart
csat customer data metrics nps
Last synced: over 1 year ago
JSON representation
A collection of customer satisfaction scores and metrics used by businesses to measure and assess customer satisfaction.
- Host: GitHub
- URL: https://github.com/0xdir/satisfaction_dart
- Owner: 0xdir
- License: mit
- Created: 2023-07-31T15:41:39.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T15:53:07.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T11:57:21.780Z (over 1 year ago)
- Topics: csat, customer, data, metrics, nps
- Language: Dart
- Homepage: https://pub.dev/packages/satisfaction
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/packages/satisfaction)
[](https://pub.dev/packages/satisfaction/publisher)
[](https://www.buymeacoffee.com/0xdir "Buy Me A Coffee")
A collection of customer satisfaction scores and metrics used by businesses
to measure and assess customer satisfaction.
This library is designed to have minimal dependencies for use across multiple platforms.
## Using
The easiest way to use this library is via the top-level ```Satisfaction``` class.
```dart
import 'package:satisfaction/satisfaction.dart';
/// This example illustrates the main features of the library
///
/// For more examples, look at /tests
void main() {
/// Initialize the main object
Satisfaction satisfaction = Satisfaction();
/// Get NPS score for several ratings
double npsScore = satisfaction.nps(ratings: [1, 7, 7, 8, 9, 10]).score;
print('nps: $npsScore');
/// Get a summary describing the ratings
Map npsStats =
satisfaction.nps(ratings: [1, 7, 7, 8, 9, 10]).stats;
print('nps stats: $npsStats');
/// Get CSAT score for several ratings
double csatScore = satisfaction.csat(ratings: [1, 2, 3, 4, 5]).score;
print('csat: $csatScore');
/// Get a summary describing the ratings
Map csatStats =
satisfaction.csat(ratings: [1, 2, 3, 4, 5]).stats;
print('csat stats: $csatStats');
}
```
## Supported Metrics
Implemented:
1. Customer Satisfaction Score (CSAT)
2. Net Promoter Score (NPS)
Not Implemented:
1. everything else, suggestions welcome
## Getting Help
Submit an issue on [github](https://github.com/0xdir/satisfaction_dart).
## How to contribute
All feedback and suggestions for improvements are welcome:
1. Open a discussion on [github](https://github.com/0xdir/satisfaction_dart)
2. Discuss proposed changes
3. Submit a PR (optional)
## Support my work
This package is possible thanks to the people and companies
who donate money, services or time to keep the project running.
If you're interested in becoming a Sponsor, Backer or Contributor
to expand the project, please visit my [github sponsors page](https://github.com/sponsors/0xdir).
Or [buy me a coffee](https://www.buymeacoffee.com/0xdir).