Skip to content

feat: add exist endpoint - #550

Merged
Aslemammad merged 3 commits into
mainfrom
feat/exist-endpoint
Aug 4, 2026
Merged

feat: add exist endpoint#550
Aslemammad merged 3 commits into
mainfrom
feat/exist-endpoint

Conversation

@AmirSa12

@AmirSa12 AmirSa12 commented Aug 3, 2026

Copy link
Copy Markdown
Member

Not all packages on npmx have preview releases (i.e. not all packages use pkg.pr.new).
so, npmx can call this endpoint to check if a package exists on pkg.pr.new and render the button only when it does.

https://31157168.stackblitz-cr.pages.dev/api/repo/exists?owner=stackblitz-labs&repo=pkg.pr.new (true)
https://31157168.stackblitz-cr.pages.dev/api/repo/exists?owner=vitejs&repo=vite (false)

@continuous-releases-staging

continuous-releases-staging Bot commented Aug 3, 2026

Copy link
Copy Markdown
  • example-1

  • example-2

    npm i https://6cb0c4f9.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/pkg-pr-new@550
    
    npm i https://6cb0c4f9.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/playground-a@550
    
    npm i https://6cb0c4f9.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/playground-b@550
    

commit: 0700e7d

@Aslemammad
Aslemammad merged commit ae0a88d into main Aug 4, 2026
5 checks passed
@Aslemammad
Aslemammad deleted the feat/exist-endpoint branch August 4, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants