ddnexus/pagy là dự án Ruby với 5.0k sao trong nhóm Backend. Agnostic pagination in plain ruby
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
[!TIP]
⭐ If you like Pagy, please support it with a Star! ⭐
💚 v3 was already quite snappy...
... and now it's more, with less.
Compatible with all environments and collection types
It can use OFFSET, COUNTISH, COUNTLESS, KEYSET, KEYNAV, SEARCH, and CALENDAR pagination techniques
It supports server-side rendering or faster client-side rendering for popular CSS frameworks and APIs
It autoloads ONLY the methods that you actually use, with almost zero configuration
It boasts 100% test coverage for Ruby, HTML, and JavaScript end-to-end (E2E)
💚 Examples
Pagination code
# Include pagy in your code (usually application_controller.rb)
include Pagy::Method
# Offset-based pagination
@pagy, @records = pagy(:offset, Product.all)
# Keyset-based pagination (fastest technique)
@pagy, @records = pagy(:keyset, Product.order(my_order).all)
# Paginate your collection with one of several paginators
@pagy, @records = pagy(...)
Default :pagy, :bootstrap and :bulma styles shown.
<!-- Render server side nav bar helpers with different html and styles -->
<%== @pagy.series_nav %> <!-- pagy style -->
<%== @pagy.series_nav(:bootstrap) %>
<%== @pagy.series_nav(:bulma) %>
Client side rendering
# pagy.rb initializer
javascript_dir = Rails.root.join('app/javascript')
Pagy.sync_javascript(javascript_dir, 'pagy.mjs') if Rails.env.development?
series_nav_js
Faster and responsive
Dynamically fills the container width.
<!-- Render client side nav bar helpers with different html and styles -->
<%== @pagy.series_nav_js %> <!-- pagy style -->
<%== @pagy.series_nav_js(:bootstrap) %>
<%== @pagy.series_nav_js(:bulma) %>
input_nav_js
Fastest! Combines navigation and info in minimum space.
<!-- Render client side nav input helpers with different html and styles -->
<%== @pagy.input_nav_js %> <!-- pagy style -->
<%== @pagy.input_nav_js(:bootstrap) %>
<%== @pagy.input_nav_js(:bulma) %>
💚 Dev Tools
Integrate pagy with your app's themes interactively (watch demo), and ask specific questions to the Pagy AI right in your app! You need only a single line in your page/layout head to get the Pagy Wand and the Pagy AI:
<%== Pagy.dev_tools %>
See Dev Tools
💚 Support and Docs
Quick Start
How To (quick recipes)
Upgrade to 43 (from version 9 or earlier)
Migrate from WillPaginate and Kaminari (practical guide)
Discussions
Issues
Changelog
[!TIP]
⭐ If you like Pagy, please support it with a Star! ⭐
Top 🏆 Adopters
…and 13,500+ more public repos on GitHub.
Top 💯 Contributors
💚 Credits
Special thanks to:
JetBrains for their free open source license.
Ben Koshy for his contributions to the documentation, user support and interaction with external frameworks.
The Stargazers for their support.
💚 Repository Info
How to contribute
See Contributing
Versioning
Pagy follows the Semantic Versioning 2.0.0. Please check the Changelog for breaking changes introduced by major versions. Using pessimistic version constraint in your Gemfile will ensure smooth upgrades.
Branches
The master branch is the latest rubygem-published release. It also contains docs and comment changes that don't affect the published code. It is never force-pushed.
The dev branch is the development branch with the new code that will be merged in the next release. It could be force-pushed.
Expect any other branch to be internal, experimental, force-pushed, rebased and/or deleted even without merging.
ddnexus/pagy thuộc nhóm Backend trên TopGit, cùng 12 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
ddnexus/pagy có bao nhiêu sao?
ddnexus/pagy có 5.0k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/ddnexus/pagy. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Commit gần nhất trên ddnexus/pagy là 3 tháng trước (theo timestamp GitHub). Repo có 446 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
ddnexus/pagy viết bằng ngôn ngữ gì?
ddnexus/pagy chủ yếu viết bằng Ruby. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc thêm về ddnexus/pagy ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ddnexus/pagy là nguồn chính thức.
Vì sao ddnexus/pagy được xếp vào nhóm Backend?
TopGit xếp ddnexus/pagy vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "bootstrap", "bulma", "elasticsearch-rails"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về pagy?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về pagy.