All Projects → vberlier → poll

vberlier / poll

Licence: MIT license
Cloudflare worker for embedding polls anywhere.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to poll

ultimate-poll-bot
💡 The ultimate vote and poll bot for creating, sharing and evaluating polls inside of Telegram
Stars: ✭ 109 (+179.49%)
Mutual labels:  poll
ev
Lightweight event-loop library based on multiplexing IO
Stars: ✭ 15 (-61.54%)
Mutual labels:  poll
PollMaubot
A polling plugin for Riot (using maubot)
Stars: ✭ 18 (-53.85%)
Mutual labels:  poll
survey kit
Flutter library to create beautiful surveys (aligned with ResearchKit on iOS)
Stars: ✭ 68 (+74.36%)
Mutual labels:  poll
toyhttpd
I/O 模型练手代码,分别使用阻塞式 I/O、select、poll 和 epoll 和 Java NIO 实现了简单的 HTTP Server
Stars: ✭ 43 (+10.26%)
Mutual labels:  poll
Gh Polls
These polls work by pasting individual markdown SVG images into your issue, each wrapped with a link that tracks a vote. A single vote per IP is allowed for a given poll, which are stored in DynamoDB.
Stars: ✭ 1,726 (+4325.64%)
Mutual labels:  poll
random-redirect
Page that redirects to a random page that offers the service you are looking for
Stars: ✭ 54 (+38.46%)
Mutual labels:  poll
laravel-survey
Create and manage surveys within your Laravel app.
Stars: ✭ 146 (+274.36%)
Mutual labels:  poll
waiter
Delayed iteration for polling and retries.
Stars: ✭ 17 (-56.41%)
Mutual labels:  poll
redirekt
Super simple Cloudflare Worker that performs redirections and serves a static site from Cloudflare Workers KV
Stars: ✭ 15 (-61.54%)
Mutual labels:  cloudflare-worker
pollmommy
⭐️ Hack your 🙈 vote out of 📈 Polldaddy surveys - used by 💰 BBC, Microsoft, Forbes, Pfizer, IBM
Stars: ✭ 31 (-20.51%)
Mutual labels:  poll
tally
🙋‍♀️Social voting app
Stars: ✭ 58 (+48.72%)
Mutual labels:  poll
Democracyos
Democracia en Red is focusing on specific implementations of DemocracyOS. We are working now working with governments and activists all over Latin America. If you are interested in our online participation tools you can check them out on our site.
Stars: ✭ 1,753 (+4394.87%)
Mutual labels:  poll
itsgoingto.be
The magic behind itsgoingto.be
Stars: ✭ 13 (-66.67%)
Mutual labels:  poll
DNS-over-Discord
A 1.1.1.1 DNS resolver built for Discord
Stars: ✭ 228 (+484.62%)
Mutual labels:  cloudflare-worker
fn-rate
🌠 Rate the skins of Fortnite and see what skins are most appreciated!
Stars: ✭ 14 (-64.1%)
Mutual labels:  poll
easypoll-v3
EasyPoll Discord Bot | With EasyPoll, a Discord Poll Bot, you can easily create polls and your members can vote by clicking on a reaction very easily and quickly.
Stars: ✭ 35 (-10.26%)
Mutual labels:  poll
PollDaddyHack
Exploit PollDaddy polls
Stars: ✭ 33 (-15.38%)
Mutual labels:  poll
curl-worker
No description or website provided.
Stars: ✭ 42 (+7.69%)
Mutual labels:  cloudflare-worker
cloudflare-worker-router
A super lightweight router (1.3K) with middleware support and ZERO dependencies for CloudFlare Workers.
Stars: ✭ 144 (+269.23%)
Mutual labels:  cloudflare-worker

poll.fizzy.wtf

Cloudflare worker for embedding polls anywhere.

🍕 Pineapple on pizza? 🍍

Yes 👍
No 👎
Total

Features

  • Unlimited polls and unlimited options per poll
  • No setup required, polls and all their options are created on-the-fly
  • No sign up, just paste urls in your html/markdown
  • GDPR compliant, no tracking, the worker doesn't store any personal information

Getting started

The worker provides a voting endpoint that you can use as a clickable link. When someone clicks the voting link, the worker increments a counter associated with the selected option and redirects them to the previous page. If the user clicks any of the options again, nothing will happen because the worker will remember that they already voted on this poll.

  • Voting endpoint

    https://poll.fizzy.wtf/vote?<poll>=<option>
    

In addition to the voting endpoint, the worker can render svg widgets for showing the results of the poll. The widget endpoints are meant to be used directly as images.

  • Widget endpoints

    https://poll.fizzy.wtf/show?<poll>=<option>
    https://poll.fizzy.wtf/count?<poll>
    https://poll.fizzy.wtf/count?<poll>=<option>
    

That's it! You can now create dynamic polls anywhere. Just add a voting link for each option and use some of the available widgets to show the results.

Creating a poll step by step

The first thing to do is to come up with a unique scoped identifier for your poll. It needs to contain a . (dot character) to separate the scope from the name of the poll.

vberlier.pineapple_pizza

Then add voting links for each option. You can display the options however you want as long as the user can click on the voting links.

Pineapple on pizza?

- [Yes](https://poll.fizzy.wtf/vote?vberlier.pineapple_pizza=yes)

- [No](https://poll.fizzy.wtf/vote?vberlier.pineapple_pizza=no)

Now to display the results we're going to use the show endpoint to render a horizontal bar filled according to the number of votes for each option.

Pineapple on pizza?

- [Yes](https://poll.fizzy.wtf/vote?vberlier.pineapple_pizza=yes)

  ![](https://poll.fizzy.wtf/show?vberlier.pineapple_pizza=yes)

- [No](https://poll.fizzy.wtf/vote?vberlier.pineapple_pizza=no)

  ![](https://poll.fizzy.wtf/show?vberlier.pineapple_pizza=no)

We're done! Feel free to be creative when it comes to layout and formatting. For example if you wanted to keep the results hidden by default you could wrap the horizontal bar in a <details> element.

Clean redirections

By default, after clicking the voting link, the worker will bring the user back to the previous page by using a script that calls history.back(). However this can cause a slight flicker when voting so you can specify an explicit redirect parameter to make the endpoint return a 302 to the url of your choice.

https://poll.fizzy.wtf/vote?vberlier.pineapple_pizza=yes&redirect=https://github.com/vberlier/poll

Available widgets

  • Horizontal bar

    https://poll.fizzy.wtf/show?<poll>=<option>
    
  • Vote count

    https://poll.fizzy.wtf/count?<poll>=<option>
    
  • Total vote count

    https://poll.fizzy.wtf/count?<poll>
    

Contributing

Contributions are welcome. Make sure to first open an issue discussing the problem or the new feature before creating a pull request.


License - MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].