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

@desk2quant/cli

v2.0.2

Published

Desk2Quant terminal-native Quant Agent for aspiring and working quants

Downloads

60

Readme

Desk2Quant Quant Agent CLI v2

A terminal-native quant copilot for learning, rigorous problem solving, interview practice, adaptive assessment and project design.

Requirements

  • Node.js 20+
  • A paid Desk2Quant purchase using the same email you sign in with

Install

npm install -g @desk2quant/cli

For development from this repository:

cd cli
npm link

Sign in

d2q login [email protected]

Desk2Quant emails a My Access sign-in message. For CLI authentication, copy the raw https://desk2quant.com/my-access.html?email=...&tk=... URL shown in the dedicated CLI box and paste it at Magic link >.

The CLI exchanges that temporary sign-in credential for a signed Quant Agent session. Model, Razorpay, Supabase and email-service secrets remain server-side.

Launch the dedicated TUI

After sign-in, run:

d2q

This opens the Quant Agent v2 terminal interface. Ask questions naturally; the agent automatically routes the request to the appropriate workflow.

Examples:

Explain why gamma becomes concentrated near the strike as expiry approaches.
Derive the Black-Scholes PDE from a delta-hedged portfolio.
Interview me for an equity derivatives quant role.
Design a production-grade Heston calibration project.
Give me a probability drill focused on conditional expectation.

TUI controls

/mode auto|learn|solve|practice|interview|project
/depth concise|standard|deep
/progress
/skills
/assess <skill>
/submit <assessment-id> <answer>
/context
/history
/sources
/new
/export
/clear
/help
/quit

The default mode is auto, and the default answer depth is deep.

Multi-turn context

The TUI keeps recent conversation context locally so follow-up questions can refer to the current discussion. For example:

You: I am calibrating Heston to an SPX smile.
You: Why is rho unstable?

The second question is interpreted in the context of the Heston calibration discussion rather than as an unrelated definition of rho.

Local TUI history is stored under ~/.desk2quant/ with owner-only permissions where supported. /new starts a fresh conversation and /export writes the current transcript to a Markdown file in the working directory.

One-shot commands remain supported

The v1-style commands still work for scripts and quick terminal usage:

d2q learn "Ito's lemma"
d2q solve "derive E[S_T^2] under GBM"
d2q practice "conditional probability"
d2q interview "quant research"
d2q project "Heston calibration"
d2q progress
d2q whoami

Adaptive assessment

d2q assess probability
d2q submit <assessment-id> "your answer"
d2q skills

theta is a bounded latent ability estimate updated from graded assessments. It is not a percentage or percentile.

Supported assessment areas include probability, linear algebra, statistics, stochastic calculus, derivatives, fixed income, numerical methods, programming, risk and quant research.

Private Desk2Quant retrieval

When the signed-in buyer has a Razorpay-verified entitlement to an indexed Desk2Quant product, relevant excerpts from that product can be retrieved server-side and used as grounding. The CLI cannot query the private corpus directly and no paid-book text is bundled with this package.

The TUI does not fabricate citations. /sources only displays source metadata when the backend actually returns it.

Local credentials

The CLI stores only the signed Desk2Quant agent session in ~/.desk2quant/config.json, created with owner-only permissions where supported.

To remove the local session:

d2q logout

Security

  • No Desk2Quant model/API secret is shipped in the npm package.
  • Purchase entitlement is verified server-side.
  • Authentication uses short-lived My Access credentials and a signed local agent session.
  • Conversation history is local to the CLI unless included in a user request sent to the Desk2Quant backend for contextual answering.