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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rusaint/react-native

v0.13.4

Published

React native implementation of the rusaint, scraper library for SSU u-saint

Readme


rusaint(ru-saint, 루세인트)는 숭실대학교 u-saint를 정확하고 빠르게, 간편하게 파싱하고 다양한 환경에서 조작할 수 있는 Rust 기반 비공식 u-saint 클라이언트입니다.

u-saint의 기반인 SAP Web Dynpro에서 사용하는 Lightspeed 라이브러리의 최소 동작을 구현하여 안전하게 u-saint 내부 요소들을 조작하고 파싱할 수 있습니다.

  • JS 런타임 없음 — JS 런타임 없이 자체적으로 요청과 응답에 따른 처리를 수행하므로 HTTPS 요청이 가능한 모든 환경에서 실행 가능합니다.
  • 빠른 속도 — 네이티브 환경으로 컴파일되는 Rust를 이용하고, 휴리스틱 없이 요청이 완료되면 곧바로 실행되어 빠르게 u-saint 를 조작 및 파싱 가능합니다.
  • 멀티플랫폼 지원 — UniFFI를 통한 Kotlin, Swift, Python(예정) 지원 및 Node.js 용 WASM Wrapper(예정)를 제공하여 다양한 플랫폼에서 간편하게 이용할 수 있습니다.
  • 간편한 기능 정의 — rusaint 에서 지원하지 않는 u-saint 애플리케이션에 대한 파싱 및 지원을 제공하는 API를 이용해 간편하게 정의할 수 있습니다.

설치

pnpm add @rusaint/react-native # or yarn, npm

문서

docs.rs

예시

import {
  CourseScheduleApplicationBuilder,
  Lecture,
  LectureCategory,
  LectureCategoryBuilder,
  SemesterType,
  USaintSessionBuilder,
  type CourseScheduleApplicationInterface,
} from '@rusaint/react-native';
import { useRef, useState, useEffect } from 'react';

// Creates an anonymous session
const session = new USaintSessionBuilder().anonymous();

// A hook for find lectures from the CourseScheduleApplication
export const useFindLectures = (
  year: number,
  semester: SemesterType,
  category: LectureCategory
) => {
  const clientRef = useRef<CourseScheduleApplicationInterface | null>(null);
  const [result, setResult] = useState<Lecture[]>([]);
  useEffect(() => {
    (async () => {
      const client = await new CourseScheduleApplicationBuilder().build(
        session
      );
      clientRef.current = client;
    })();
  }, []);

  useEffect(() => {
    (async () => {
      let result = await clientRef.current?.findLectures(
        year,
        semester,
        category
      );
      setResult(result || []);
      console.log('Lectures fetched:', result);
    })();
  }, [year, semester, category]);
  return result;
};

// Creates a category outside of the component
const category = new LectureCategoryBuilder().major(
  'IT대학',
  '글로벌미디어학부',
  undefined
);

// Use in the component
const result = useFindLectures(2025, SemesterType.One, category);

Expo에서 사용하기

현재 @rusaint/react-native는 Expo Module을 지원하지 않습니다. 따라서 Expo 프로젝트에서 사용하기 위해서는 @react-native-community/cli의 autolink 기능을 활성화하여 Turbo Module을 autolink 해야 합니다.

pnpm add @react-native-community/cli -D # or use yarn, npm

으로 @react-native-community/cli를 설치합니다.

# .env
EXPO_USE_COMMUNITY_AUTOLINKING=1 # Enable autolinking by @react-native-community/cli

EXPO_USE_COMMUNITY_AUTOLINKING 환경변수를 expo prebuild 과정에 제공하여 모듈의 autolink를 활성화합니다.

[!WARNING] Community autolinking을 활성화 하면 Expo Go를 사용할 수 없습니다.