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

@yuanchen710/portfolio-assistant-sdk

v1.0.0

Published

Plug-and-play AI chatbot widget for portfolio sites — resume upload, job match analysis, streaming responses

Readme

portfolio-assistant-sdk

AI chatbot widget for portfolio sites. One component gives visitors a floating chat button to ask questions about your background or get job-match analysis from your resume.

npm install portfolio-assistant-sdk

Using the widget in your portfolio

1. Install

npm install portfolio-assistant-sdk pdfjs-dist

2. Put your resume in public/

your-portfolio/
└── public/
    └── resume.pdf

3. Get a free API key

Sign up at console.groq.com → API Keys (free, no credit card).

Add to your .env:

VITE_GROQ_API_KEY=gsk_your-key-here

4. Add the widget

import { ChatWidget } from 'portfolio-assistant-sdk';

export default function App() {
  return (
    <>
      {/* your existing page */}

      <ChatWidget
        config={{
          ownerName: 'Yuan Chen',
          assistantName: 'Yuan AI',
          resumePdfUrl: '/resume.pdf',
          apiKey: import.meta.env.VITE_GROQ_API_KEY,
          model: 'llama-3.3-70b-versatile',
          position: 'bottom-right',
          primaryColor: '#C0392B',
        }}
      />
    </>
  );
}

No CSS import needed — styles inject automatically.


Config

| Prop | Type | Description | |---|---|---| | ownerName | string | Your name — used in the AI system prompt | | assistantName | string | Chatbot display name | | resumePdfUrl | string | Path to your PDF, e.g. '/resume.pdf' | | resumeText | string | Resume as plain text (alternative to PDF) | | apiKey | string | LLM provider API key | | model | string | Model ID (see below) | | position | 'bottom-right' \| 'bottom-left' | Widget position | | primaryColor | string | Accent color hex (default #C0392B) | | apiBaseUrl | string | Custom endpoint for a backend proxy |

Supported models

| Provider | Model ID | Cost | |---|---|---| | Groq | llama-3.3-70b-versatile | Free | | Groq | llama3-8b-8192 | Free | | Google Gemini | gemini-2.0-flash | Free tier | | Anthropic Claude | claude-opus-4-7 | Paid | | OpenAI | gpt-4o-mini | Paid |


Publishing a new version (for SDK maintainer)

npm run build
git add -A
git commit -m "v1.0.1 — describe change"
git push

Then on GitHub → ReleasesDraft a new release → tag v1.0.1Publish release.

GitHub Actions automatically runs npm publish on every release.


First-time setup (deploy this repo)

1. Create the GitHub repo

Go to github.com/new:

  • Name: portfolio-assistant-sdk
  • Visibility: Public
  • Don't add README or .gitignore (already exist)

2. Create an npm account and token

  • Sign up at npmjs.com
  • Go to Access TokensGenerate New Token → type Automation
  • Copy the token

3. Add the npm token to GitHub

In the GitHub repo → SettingsSecrets and variablesActionsNew repository secret:

  • Name: NPM_TOKEN
  • Value: paste your npm token

4. Push and publish

cd ~/Desktop/portfolio-assistant-sdk
npm run build

git add src/ demo/ dist/ public/ package.json vite.config.ts \
        tsconfig.json tsconfig.app.json tsconfig.node.json \
        index.html .gitignore .env.example README.md \
        .github/

git commit -m "v1.0.0 — initial release"
git tag v1.0.0

git remote add origin https://github.com/YuanChen/portfolio-assistant-sdk.git
git push -u origin master
git push origin v1.0.0

Then on GitHub → ReleasesDraft a new release → choose tag v1.0.0Publish release.

GitHub Actions will build and run npm publish automatically. After ~1 minute, anyone can install it:

npm install portfolio-assistant-sdk

Local dev / demo

git clone https://github.com/YuanChen/portfolio-assistant-sdk.git
cd portfolio-assistant-sdk
npm install
cp .env.example .env   # paste your Groq API key
npm run dev            # http://localhost:5173