An easily forkable and configurable Banano faucet widget for YOUR site! Increase traffic and get involved in the banano ecosystem.
If you have any problems, please open an github issue.
address: Address of the faucet
claim_freq: Claim frequency of faucet for each user in milliseconds
hcaptcha_sitekey: Hcaptcha sitekey for the captcha. Should look like 9e25731c-b4b7-4ccf-a454-72f303c04a9f
allowed_site: Sites that should be allowed to embed. Put in a wildcard (*
) to allow all sites to embed.
Don't forget to replace the qr code in /files/qrcode.png
Run your own instance and then embed using an iframe. Make sure iframe height and width are equal. Designed for smaller embeds but is still very much functional for bigger ones.
Example:
<iframe src="https://<yourbarrelobananosinstance.com>" style="height: 25vw; width: 25vw;" style="border: none;"></iframe>
280x280 is the smallest size embedabble. Any smaller than that is too small.
/files/embed.html has examples of the embeds at various sizes.
Obviously you can mess with the height and width properties in the example.
In small sizes, the captcha popup will make the iframe scrollable. If that is not preferable, you can make a rectangular shape, something like 350x500 (500 being the height) to prevent that. Of course, this will result it more vertical space being taken up.
All these should be stored securely in an .env file. Do not commit these or put them anywhere that can be accessed publically.
seed: Banano seed
hcaptcha secret: Secret for hcaptcha
connection_string: Full connection string for mongodb
Commissioned by and designed by Devin from makeanything, programmed by Prussia/jetstream0