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

@skein-js/config

v0.5.0

Published

langgraph.json parser and graph loader (path:export) for skein-js.

Readme

@skein-js/config

Loads an unchanged langgraph.json, validates it, and resolves each path:export graph, its schemas, and the optional custom-auth module.

Part of skein-js — a TypeScript Agent Protocol server for LangGraph.js, and a drop-in replacement for the LangGraph CLI.

Status: 🚧 Pre-alpha — implemented: langgraph.json loading, path:export graph resolution, graph-schema introspection, env resolution, and custom-auth loading.

What it does

loadConfig() reads an existing langgraph.json unchanged, validates it (Zod, unknown keys preserved), and returns the parsed config plus a lazy graph registry — the boot-time entry point the CLI, the runtime assembler, and the adapters all start from.

  • graphs.load(id) resolves a "./path:export" entry to a runnable graph. It mirrors the LangGraph CLI's resolveGraph exactly — splits on the first colon, falls back to the default export, compiles an uncompiled graph builder, unwraps the createAgent wrapper, and returns a factory export un-invoked so per-run config still applies — so a project moves onto skein-js with no code change. Loads are cached; a failed load is not memoized, so a transient error can be retried.
  • graphs.schemas(id) extracts the graph's input/output/state/config JSON schemas via static analysis (no module execution), for assistant introspection.
  • resolveEnv() resolves the config's env (a .env path or an inline map) to a plain object — without touching process.env.
  • loadAuthEngine() loads the optional auth block's path:export module (a LangGraph @langchain/langgraph-sdk/auth Auth instance) and adapts it to core's injectable AuthEngine.
  • The parsed env / store / checkpointer / http / auth fields are exposed on config for the CLI and adapters to wire up.

Install

pnpm add @skein-js/config

Peer dependencies: @langchain/langgraph and @langchain/langgraph-sdk.

Usage

import { loadConfig, loadAuthEngine } from "@skein-js/config";

const { config, configDir, graphs } = await loadConfig({ configPath: "./langgraph.json" });

const graph = await graphs.load("agent"); // a CompiledGraph or a per-config factory
const schemas = await graphs.schemas("agent"); // input/output/state/config JSON schemas
const auth = await loadAuthEngine(config.auth, { configDir }); // AuthEngine | undefined

To load TypeScript graphs (e.g. under skein dev), pass an importModule — a TS-capable importer (the CLI injects a vite loader); it defaults to native dynamic import().

API

  • loadConfig(options?): Promise<SkeinConfig>options: { cwd?, configPath?, importModule? }. Returns { config: LanggraphJson, configPath, configDir, graphs: GraphRegistry }.
  • GraphRegistry{ ids, spec(id), load(id), schemas(id) }.
  • parseLanggraphJson(raw): LanggraphJson + langgraphJsonSchema — validate/parse the config (passthrough: unknown keys preserved). Validated fields include graphs, node_version, env, store.index, checkpointer, http, auth, dockerfile_lines, dependencies.
  • parseGraphSpec(spec, baseDir) / loadGraph(spec, importModule?) — the low-level path:export resolver (GraphSpec, ResolvedGraph, CompiledGraphFactory, ModuleImporter).
  • parseEnvFile(text) / resolveEnv(config, configDir).env parsing + env resolution.
  • loadAuthEngine(auth, { configDir, importModule? })AuthConfigAuthEngine | undefined.
  • class SkeinConfigError — boot-time config error (distinct from core's edge SkeinHttpError).

Reuse

Reuses @langchain/langgraph-api's ./schema parser (getStaticGraphSchema, GraphSpec, isAuthMatching) for introspection and auth-filter semantics, and mirrors its (non-exported) resolveGraph algorithm for path:export loading — rather than diverging from the CLI it replaces.

Learn more

License

Apache-2.0