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

@acryldev/sign-in

v0.2.5

Published

ACRYL sign-in: sign in to a model provider with an account (Claude, ChatGPT/OpenAI Codex and the rest of the catalog's flows; DeepSeek through DeepSeek's own account dialog) from Settings > Models on Web and Desktop, over the harness authorization flows;

Readme

@acryldev/sign-in

Sign in to a model provider with an account, from Settings > Models on Web and Desktop. A card at the foot of the page offers Claude (Anthropic, Claude Pro or Max), ChatGPT (OpenAI Codex), DeepSeek (DeepSeek account) and, in a list, every other provider whose harness flow offers an account sign-in (GitHub Copilot, ...). API keys stay on the page's own provider editor ("Add model provider").

  • Client (src/client/): the card, registered in the Models page's settings.models.footer seat. It opens the provider's sign-in page (the system browser on Desktop, a new tab on Web; a pop-up opened without a click is blocked by browsers, so "Open sign-in page" stays on the card), shows the question a flow asks (paste a code or a redirect URL, choose browser or device login), and reads a failure in the provider's words.

  • Failed chat turns (src/client/TurnFailureView.tsx, src/client/turn-failure.ts): the chat's turn-error row (conversation.chat.node, shadowing DeepSeek's at priority -1). It reads the provider's sentence out of the JSON body the harness recorded (400 {"type":"error","error":{...,"message":"..."}} becomes "Claude: ..."), makes web addresses links that open outside the app, adds a hint for a refusal whose fix is known (Anthropic billing third-party apps to extra usage), and keeps the raw text behind Details. A request whose provider has no credential (MISSING_CREDENTIAL) is reworded on the Host, in the llm/stream waterfall: add an API key, or sign in with the provider's account when it offers one.

  • Host (src/index.ts, src/controller.ts): the providers are the harness's own authorization flows (ctx.authorization, registered by dsh-llm-pi-ai); nothing here knows a protocol. The terminal's /login drives the same flows. @acryldev/control's SignInAttempts holds the one running conversation; createRouteActivation makes the provider usable once it succeeds (a new route is named for the provider, Claude for anthropic; an apiKeyEnv naming a key that is not stored is removed, since the harness would try it before the sign-in and fail), and createDefaultModelAdoption makes it the default for new sessions when the current default cannot answer (its provider has no credential or is not live; a default that works is never replaced). The starting model per provider is STARTING_MODELS in @acryldev/control, else the route's first model.

  • DeepSeek account (src/deepseek-account.ts): DeepSeek's own account dialog registers only inside DeepSeek's Desktop window, so the Host drives the harness's deepseekAccount service directly and shows its attempt like a flow. The browser returns to the Host's own /oauth/callback on the origin these routes are served on; a successful sign-in makes the deepseek-account model route the default when the current default cannot answer. DeepSeek's account flow on ctx.authorization is never started as a flow.

  • Terminal (src/account-callback.ts, entry @acryldev/sign-in/account-callback, row acryl-sign-in-account-callback): the terminal has no web server for DeepSeek's browser callback, and DSH's would also wake the API gateway. This row serves /oauth/callback on its own loopback port (listening from the first sign-in, closed with the row), as webServer in the Loader realm acryl-account-callback that only the deepseek-account row shares, and provides acrylAccountSignIn (AccountSignInPort in @acryldev/control), which /login uses for "DeepSeek". Composed by the account-callback capability.

  • Routes (src/route.ts): one app on the framework's router, mounted under /api/acryl-sign-in with ctx.routerHttp.mount, under the shared private-route rules of @acryldev/loopback-http/router: only the app's own page on loopback, 405 with Allow for another method, a JSON body (415) of at most 16 KiB (413) for a change, a refusal the harness explains 409 with its reason. No response carries a secret, and a typed answer is handed to the flow and dropped:

    | Route | Method | Meaning | | --- | --- | --- | | /api/acryl-sign-in/providers | GET | providers, their methods, whether each is signed in, and whether any is | | /api/acryl-sign-in/attempt | GET | the current conversation, or null | | /api/acryl-sign-in/begin | POST { key, method?, locale? } | start a sign-in (a running one is withdrawn); locale sets the language of DeepSeek's page | | /api/acryl-sign-in/answer | POST { attemptId, promptId, value } | answer the question the flow asks | | /api/acryl-sign-in/cancel | POST { attemptId } | withdraw the conversation |

Composed for Web and Desktop through the sign-in capability in @acryldev/harness-runtime's coding-capabilities.ts, which needs the router (needsRouter): a Blueprint with the capability must carry the framework-kit row, and Desktop composes the router rows itself.