https://github.com/amosmachora/daraja-kit
A node library to improve the DX of interacting with Safaricom`s daraja APIS
https://github.com/amosmachora/daraja-kit
daraja-api safaricom safaricom-mpesa-apis
Last synced: 5 months ago
JSON representation
A node library to improve the DX of interacting with Safaricom`s daraja APIS
- Host: GitHub
- URL: https://github.com/amosmachora/daraja-kit
- Owner: amosmachora
- License: mit
- Created: 2023-07-30T17:22:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T08:10:06.000Z (over 1 year ago)
- Last Synced: 2025-10-11T08:13:29.143Z (8 months ago)
- Topics: daraja-api, safaricom, safaricom-mpesa-apis
- Language: TypeScript
- Homepage: https://daraja-kit.amosmachora.com
- Size: 3.73 MB
- Stars: 45
- Watchers: 2
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Daraja Kit
Improving the Developer Experience of using the Safaricom daraja API.
Read the docs at https://daraja-kit.amosmachora.com/
# About
Daraja Kit is a typesafe Javascript library designed to simplify interactions with the Safaricom Daraja API. This library is suitable for both Node.js and React environments, allowing developers to seamlessly integrate M-Pesa payments into their applications.
# Benefits
- Way simpler API over using daraja on your own.
- Open source!
- Slow integration. You don`t have to hot swap this library. You can easily integrate it to your app.
- More Util Functions. If you need to generate passwords if you have decided to slowly integrate the app offers helper functions to help you move along nicely. e.g generateTimestamp and generatePassword.
# Compatibility
Daraja Kit is compatible with Node.js and React environments. It provides a simple interface for initiating M-Pesa transactions using the Safaricom Daraja API.
Some APIs are exclusively for Node Environments and some are just React Components so are only used in react.
# Stack
## docs
[Nextra](https://github.com/shuding/nextra)
## Main library
[typescript](https://www.typescriptlang.org/)
[react](https://react.dev/)
## Package manager
[pnpm](https://pnpm.io/)
## Versioning
[Changesets](https://github.com/changesets/changesets)
# License
This library is licensed under the MIT License. Feel free to contribute or open issues on the GitHub repository. More APIs and components coming. Watch this repo for alerts.