> For the complete documentation index, see [llms.txt](https://help.bots.business/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.bots.business/libraries-and-examples.md).

# Libraries and examples

- [Add reusable features with libraries](https://help.bots.business/libraries-and-examples/libraries.md): Choose a Bots.Business library, install it for the right bot, and check its exact BJS name before use.
- [Manage resources with ResLib](https://help.bots.business/libraries-and-examples/resources.md): Store numeric resources, choose user or chat scope, and configure growth with the current ResLib contract.
- [Track referral links](https://help.bots.business/libraries-and-examples/referrals.md): Create referral links, track a user's first entry, and read referral counts with RefLib.
- [Show a leaderboard](https://help.bots.business/libraries-and-examples/leaderboards.md): Add scores and display a bounded leaderboard with TopBoardLib, including reset behavior.
- [Check channel membership](https://help.bots.business/libraries-and-examples/membership.md): Check channel membership with MembershipChecker, configure callbacks, and avoid using cached membership as a fresh verification.
- [Limit repeated actions with CooldownLib](https://help.bots.business/libraries-and-examples/cooldown.md): Limit repeated bot actions with CooldownLib and understand first-call, waiting, and reset behavior.
- [Restrict administrator commands with Guard](https://help.bots.business/libraries-and-examples/guard.md): Restrict a command folder to approved internal BB user IDs with the Guard library.
- [Receive an external webhook](https://help.bots.business/libraries-and-examples/webhooks.md): Generate a command-specific webhook URL, receive JSON in BJS, and validate the sender before acting.
- [Translate bot messages with Lang](https://help.bots.business/libraries-and-examples/language.md): Configure message dictionaries and let each bot user choose a language with the Lang library.
- [Build reply templates with SmartBot](https://help.bots.business/libraries-and-examples/smart-bot.md): Define reusable SmartBot reply templates, validate numeric input, and understand SmartTasker boundaries.
- [Random values, dates and hashes](https://help.bots.business/libraries-and-examples/utilities.md): Display names with CommonLib, generate random values, format UTC dates, and calculate hashes using BJS utilities.
- [Create a BJS library](https://help.bots.business/libraries-and-examples/development.md): Write a reusable BJS library, expose functions with publish, and import it from a bot repository.
