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

@heejun/spa-seo-gateway-openai

v1.0.0

Published

OpenAI-compatible reference adapter for spa-seo-gateway — works with OpenAI, Ollama, Groq, OpenRouter, LM Studio

Readme

@heejun/spa-seo-gateway-openai

OpenAI-compatible reference adapter for spa-seo-gatewaychat/completions 엔드포인트를 가진 모든 호환 API 와 동작.

동일 코드로 다음 모두 사용 가능:

| 서비스 | baseUrl | apiKey 필요 | |---|---|---| | OpenAI 공식 | (기본 — https://api.openai.com/v1) | ✓ | | Groq | https://api.groq.com/openai/v1 | ✓ | | OpenRouter | https://openrouter.ai/api/v1 | ✓ | | Together AI | https://api.together.xyz/v1 | ✓ | | Ollama (로컬) | http://localhost:11434/v1 | ✗ | | LM Studio (로컬) | http://localhost:1234/v1 | ✗ |

SDK 의존 없음 — fetch 만 사용.

Install

npm install @heejun/spa-seo-gateway-core @heejun/spa-seo-gateway-openai

Use

import { setAiSchemaAdapter } from '@heejun/spa-seo-gateway-core';
import { createOpenAiSchemaAdapter } from '@heejun/spa-seo-gateway-openai';

// OpenAI 공식
setAiSchemaAdapter(
  createOpenAiSchemaAdapter({
    apiKey: process.env.OPENAI_API_KEY,
    model: 'gpt-4o-mini',
  }),
);

// Groq (무료 티어, 빠름)
setAiSchemaAdapter(
  createOpenAiSchemaAdapter({
    apiKey: process.env.GROQ_API_KEY,
    baseUrl: 'https://api.groq.com/openai/v1',
    model: 'llama-3.3-70b-versatile',
  }),
);

// Ollama (로컬, 완전 무료)
setAiSchemaAdapter(
  createOpenAiSchemaAdapter({
    baseUrl: 'http://localhost:11434/v1',
    model: 'llama3.2',
  }),
);

Options

| 옵션 | 기본값 | 설명 | |---|---|---| | apiKey | process.env.OPENAI_API_KEY | API 키. 로컬 엔드포인트는 불필요 | | baseUrl | process.env.OPENAI_BASE_URL 또는 https://api.openai.com/v1 | 호환 엔드포인트 base URL | | model | process.env.OPENAI_MODEL 또는 gpt-4o-mini | 모델 ID | | maxHtmlChars | 12000 | LLM 입력으로 보낼 최대 HTML 글자수 | | maxSuggestions | 5 | 한 번에 반환할 최대 schema 갯수 | | timeoutMs | 60000 | 요청 타임아웃 | | fetch | globalThis.fetch | 테스트용 fetch 주입 |

License

MIT