This product was not featured by Product Hunt yet. It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).
Product upvotes vs the next 3
Waiting for data. Loading
Product comments vs the next 3
Waiting for data. Loading
Product upvote speed vs the next 3
Waiting for data. Loading
Product upvotes and comments
Waiting for data. Loading
Product vs the next 3
Loading
cyclic-prev
Cycle backward through indexes with zero dependencies
A tiny JavaScript utility for stepping backward through indexes, wrapping from the first position to the last. Great for previous-slide controls, repeating schedules, and game turns. Zero runtime dependencies, input validation, normalized indexes, CommonJS, ES modules, browser bundles, and TypeScript declarations.
Hi Product Hunt! cyclic-prev is the backward companion to cyclic-next. With five positions, stepping back from index 0 returns 4. It supports custom steps, validates safe integers, and keeps the result within the cycle. Use it for previous-slide buttons, weekdays, and game turns. The library has zero runtime dependencies and ships JavaScript bundles and TypeScript declarations. I would love your feedback on the API and examples.
About cyclic-prev on Product Hunt
“Cycle backward through indexes with zero dependencies”
cyclic-prev was submitted on Product Hunt and earned 2 upvotes and 1 comments, placing #148 on the daily leaderboard. A tiny JavaScript utility for stepping backward through indexes, wrapping from the first position to the last. Great for previous-slide controls, repeating schedules, and game turns. Zero runtime dependencies, input validation, normalized indexes, CommonJS, ES modules, browser bundles, and TypeScript declarations.
On the analytics side, cyclic-prev competes within Open Source and GitHub — topics that collectively have 110.4k followers on Product Hunt. The dashboard above tracks how cyclic-prev performed against the three products that launched closest to it on the same day.
Who hunted cyclic-prev?
cyclic-prev was hunted by Abhisek Pattnaik. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
For a complete overview of cyclic-prev including community comment highlights and product details, visit the product overview.