Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

gitlab stricter api rate limits announced

Đang mở
#3,263 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
gitlab, nuxt, typescript
Lĩnh vực
api

Hướng nghiên cứu

Start by locating the GitLab API calls used for package metadata and changelogs, then read how metadata currently uses cachedfetch and how changelog fetching will use defineCachedFunction. The issue lists access tokens and a separate GitLab API fork as possible approaches, but does not choose one. Done should include an agreed approach that reduces rate-limit risk while supporting the mentioned GitLab data.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

context

Gitlab has announced they're going to make some changes to their api rate limits rules.
From 19th of October an unauthenticated requests will be rate limited to 60 requests per hour per ip.
with a free account with an access token the request go to 5000 request per account.

Currently npmx uses the gitlab api to get metadata (ex: stars), latest release & releases list api's.

link to announcement blog post: https://about.gitlab.com/blog/rate-limit-change-2026/

possible solutions

  • Add via environment variables Gitlab access token(s)
    • possibly make the access token available via a function to allow easier changes in only 1 function
  • create an fork of ungh that serves the gitlab api instead of github's (ungl)

further unless ungl gets made, it would be best if gitlab api is used via cachedfetch or defineCachedFunction to reduce refetching the same data

For package changelog I'll add defineCachedFunction to reduce refetching the same data.
Getting metadata like stars already use cachedfetch currently

if there other solutions or you've some opinions, then don't be hesitant to comment below.
I know that Gitlab isn't used as much as for example github for hosting npm packages source code, but it might still be best to be able to handle more than 60 an hour

Ngôn ngữ chính
TypeScript
Star
3.6k
Fork
533
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
36

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của npmx-dev/npmx.dev

Tất cả issue của npmx-dev/npmx.dev

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.