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

@cometix/cscience

v0.0.2

Published

Claude Science BYOK (Bring Your Own Key)

Downloads

1,487

Readme

@cometix/cscience

Run Claude Science locally with your own Anthropic API key. No OAuth login required.

Install

bun install -g @cometix/cscience

Setup

First run creates ~/.claude-science/byok.env:

cscience
# → Config created: ~/.claude-science/byok.env
# → Edit it to set your ANTHROPIC_API_KEY, then re-run.

Edit the config:

vim ~/.claude-science/byok.env
ANTHROPIC_API_KEY=sk-ant-api03-xxxxx

Usage

cscience                        # start server + open browser
cscience serve --port 9000      # custom port
cscience status                 # check daemon status
cscience stop                   # stop daemon

Config

~/.claude-science/byok.env supports:

| Key | Description | |-----|-------------| | ANTHROPIC_API_KEY | Your Anthropic API key (required) | | ANTHROPIC_AUTH_TOKEN | Alternative: OAuth bearer token | | ANTHROPIC_BASE_URL | Custom API endpoint / proxy | | OPERON_MODELS | Custom model list (see below) | | PORT | Server port (default: auto) | | NO_AUTO_UPDATE | Set to 1 to skip update checks |

Custom Models

# Comma-separated id:name pairs
OPERON_MODELS=claude-sonnet-4-20250514:Sonnet 4,claude-opus-4-20250918:Opus 4

# Or JSON
OPERON_MODELS=[{"id":"claude-sonnet-4-20250514","name":"Sonnet 4"}]

How It Works

This package distributes a patched build of Claude Science that replaces OAuth-only authentication with API key support. The patcher uses Acorn to parse the ~9MB minified JS bundle into a full AST, applies 13 targeted patches, and validates the output parses cleanly.

Patches

| ID | Name | What it does | |----|------|-------------| | P1 | oauth-gate-bypass | Accept API key when OAuth token is absent | | P2 | credential-resolver-env | Fall back to ANTHROPIC_API_KEY env var | | P3 | https-enforcement-relaxed | Allow HTTP base URL for local proxies | | P4 | auth-status-bypass | Return authenticated: true without OAuth | | P5 | growthbook-flags-hardcode | Enable feature flags without GrowthBook | | P6 | models-error-downgrade | Show default models instead of auth error | | P7 | provider-restriction-remove | Remove anthropic-only provider check | | P8 | operon-models-env | Support OPERON_MODELS env var | | P9 | model-filter-disable | Remove claude- prefix requirement | | P10 | fable-filter-disable | Remove fable/mythos model series block | | P11 | pid-daemon-recognition | Recognize .js/.ts in process detection | | P12 | disable-require-token | Remove require_token build guard | | P13 | require-token-default-false | Default require_token to false |

All patches are AST-based (no regex/string matching), idempotent, and validated against Acorn after application.

Package Structure

One package name, platform runtimes published as version suffixes with dist-tags:

@cometix/[email protected]                 latest (meta)
@cometix/[email protected]       macOS ARM
@cometix/[email protected]         macOS Intel
@cometix/[email protected]       Linux x64

bun install -g @cometix/cscience automatically pulls the correct platform runtime via optionalDependencies with npm: aliases.

Requirements

Building from Source

git clone https://github.com/Haleclipse/cscience.git
cd cscience
npm install
npm run build                   # current platform
npm run build:mac-arm64         # specific platform
npm run build:all               # all platforms

Output in dist/pkg-<platform>/.

License

MIT