Skip to content

A simple, lightweight, and easy to use HTTP streaming library for BunnyCDN.

License

Notifications You must be signed in to change notification settings

dan-online/bunnycdn-stream

Repository files navigation

Contributors Forks Stargazers Issues Codecov


Logo

BunnyCDN-Stream

A simple, lightweight, and easy to use library for BunnyCDN's stream api.
Documentation · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Product Name Screen Shot

There are many bunnycdn modules for accessing bunnycdn storage yet none of them provide access to the stream endpoint, which requires seperate authentication. Therefore I decided to just write my own in typescript.

This was harder than you would think, a lot of bunnycdn's documentation is misnamed or just not documented. Therefore I had to experiment a lot but I believe I was able to make this library simple and easy to use.

Built With

Getting Started

To get a local copy up and running follow these simple example steps.

Install

  • npm

    npm install bunnycdn-stream
  • yarn

    yarn add bunnycdn-stream

Usage

For more examples, please refer to the Documentation

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Testing

The project is tested with vitest and requires you to have a library on your BunnyCDN account to send commands to the Bunny API.

Warning: all videos will be deleted during testing.

Keys

BUNNY_VIDEO_LIBRARY=xxx BUNNY_API_KEY=xxx npm test

Also, IGNORE_PRUNE=1 can be used to keep the testing video at the end of the tests for further manual checking.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

DanCodes - @dan-online - dan@dancodes.online

Project Link: https://github.com/dan-online/bunnycdn-stream

Acknowledgments

  • Josh Core - For the project layout so I could easily write this module in a day without worrying about typescript issues