Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A GitHub collection of favorite JavaScript single-liners with Eleventy static site and community contributions.
1loc is an open-source GitHub repository that aggregates favorite JavaScript single-line code snippets into an Eleventy-powered static site, inviting community contributions through pull requests.
1loc is a community-driven collection of JavaScript one-line code snippets (LOC), developed and maintained by Nguyen Huu Phuoc. The repository accepts markdown files that each describe a single JavaScript one-liner, and builds a static site using Eleventy. The project's GitHub topics include eleventy, javascript-utils, js-tips, one-line-code, and tips-and-tricks, and it has earned 6,730 stars.
The contribution flow is straightforward: create a markdown file describing your preferred JavaScript one-liner, add it to the contents folder, and submit a pull request. Once merged, the Eleventy build incorporates the new file into the static site, making it available to all visitors.
