30 Seconds of Code

JSON →
library 1.2.3 ·javascript
verified May 1, 2026

Curated collection of useful JavaScript snippets that can be understood in 30 seconds or less. The npm package provides a function library with over 200+ snippets covering array, object, string, utility, and DOM operations. Current stable version is v14.0.0 as of recent releases, with a major infrastructure overhaul. Key differentiators: snippets are small, self-contained, and educational; package is published on npm and CDN; includes both CommonJS and ESM support. The library is maintained by the 30-seconds organization and has a vibrant community with multiple related projects.

total hits 66
actors 12 distinct systems
last hit 19h ago DotBot
Amazonbot
3
MetaBot
3
GPTBot
2
ByteDance
1
ClaudeBot
1
PerplexityBot
1
Search engines
8
Humans
33

top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇩🇪 Germany · 🇫🇷 France