npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@webbridge-native/redirect

v0.6.0

Published

Redirect handler for WebBridge Native

Downloads

19

Readme

@webbridge-native/redirect

RN에서 브라우저와 동일한 리다이렉트 처리.

Problem

RN의 기본 redirect 처리는 브라우저와 다릅니다: redirect: 'manual'이 부정확하고, 크로스 오리진 리다이렉트 시 Authorization 헤더가 그대로 전달되어 토큰 유출 위험이 있습니다.

Solution

브라우저 Fetch 스펙과 동일한 리다이렉트 동작을 RN에 제공합니다.

설치

pnpm add @webbridge-native/redirect @webbridge-native/core

사용법

import { redirectInterceptor } from '@webbridge-native/redirect';

client.use(redirectInterceptor());

// 자동 follow (최대 5회)
const res = await client.fetch('https://api.myapp.com/old');
// res.redirected === true, res.url === 최종 URL

브라우저 호환 동작

| 상태 | 메서드 변경 | 보안 | |---|---|---| | 301, 302, 303 | → GET, body 제거 | cross-origin 시 Auth/Cookie strip | | 307, 308 | 유지 | cross-origin 시 Auth/Cookie strip |

  • redirect: 'manual' → 3xx 응답 그대로 반환
  • redirect: 'error' → 3xx 시 에러

License

MIT