Build real-time voting and polling systems with PubNub
Does it follow best practices?
Evaluation — 99%
↑ 1.36xAgent success when using this tile
Validation for skill structure
Poll setup and lifecycle management
Channel naming convention
50%
100%
Meta channel for late joiners
50%
100%
Lifecycle state machine
100%
100%
Admin channel transitions
0%
100%
Poll config structure - options
80%
100%
Poll config structure - type
100%
100%
Poll config structure - schedule
100%
100%
SDK init with userId
100%
100%
Separate admin and participant
100%
100%
Timestamp on transitions
100%
100%
Finalize includes results
100%
100%
Listener for poll events
100%
100%
Server-side vote validation
Before Publish Function
100%
100%
Server-side validation only
100%
100%
KV Store duplicate prevention
100%
100%
Poll status check
100%
100%
Atomic counter tallying
0%
100%
Total votes counter
0%
100%
Option validation
100%
100%
Time-based rejection
100%
100%
Required field validation
88%
100%
Specific error codes
100%
100%
Poll state initialization
100%
100%
Minimal vote payload
0%
100%
Vote tallying and result broadcasting
Atomic counter increment
0%
100%
Results channel broadcast
100%
100%
Consolidated result message
100%
100%
Throttled broadcasting
50%
100%
Vote change decrement
0%
100%
Vote change increment
0%
100%
Voter record update on change
100%
100%
Previous vote lookup
100%
100%
Total counter maintained
100%
100%
Percentage calculation
100%
100%
Client subscribes to results
100%
100%
Anonymous voting and fraud detection
Hashed voter ID
100%
100%
Poll-specific salt
100%
100%
Duplicate prevention with hash
100%
100%
Rate limiting counter
100%
100%
Rate limit key pattern
100%
100%
Atomic counter for rate limit
0%
100%
Atomic counter for tallies
0%
100%
Before Publish pattern
100%
100%
Stored value not identifiable
100%
100%
Session fingerprint detection
100%
100%
Distinct error codes
0%
100%
Truncated hash
0%
0%
Multi-round elimination and weighted voting
Round-specific option keys
0%
100%
Round-specific tally keys
100%
100%
Server-side weight lookup
100%
100%
Weight pre-assignment
100%
100%
Weighted increment
50%
100%
Elimination logic
100%
100%
Next round initialization
100%
100%
Winner determination
100%
100%
Round transitions on admin channel
50%
100%
Duplicate prevention per round
100%
100%
Atomic counters for weighted tallies
0%
100%
Install with Tessl CLI
npx tessl i pubnub/pubnub-live-voting