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

@zlooks.cn/resume-server

v0.1.8

Published

独立的内部 Hile 服务,通过现有 Gateway 自动发现的 `resume` RSC 插件提供简历编辑与限时分享。

Readme

个人简历

独立的内部 Hile 服务,通过现有 Gateway 自动发现的 resume RSC 插件提供简历编辑与限时分享。

  • /resume:登录后编辑个人简历,支持重复经历条目、排序、展示设置和分享管理;匿名用户可登录或输入访问码。
  • /resume/preview:预览本人已保存的简历。编辑页的预览也支持尚未保存的内容。
  • /resume/view/[code]:访客查看固定的公开内容快照,无需登录。

每个用户最多一份简历。草稿使用乐观版本校验;保存冲突保留本地输入。分享创建时锁定已保存版本,只保存允许展示的内容。1、7、30 天有效期从服务端成功创建时开始,支持单条或全部撤销。

三张 PostgreSQL 表为 resumes、resume_snapshots、resume_shares。服务只同步这些实体,复用顶层 postgres 和 public-host Registry 配置。访问码由 32 个随机字节生成,数据库仅保存 SHA-256;完整 code 只在生成时返回一次。失效不自动删除历史快照,删除简历会物理级联删除全部数据。已经被访客保存的内容无法撤回。

编辑页采用 B「纸间」文档式界面:姓名和职业标题原位编辑,简介保留多段换行,经历条目通过侧边面板逐条编辑、增删和排序;关闭面板保留未保存修改。完成当前文字编辑后才能保存、预览或分享。创建分享时可选择纸白、深蓝、松绿、石墨、陶土、赤线六套主题,并在创建前预览公开内容。主题独立保存在每条分享记录上;同一内容快照可供不同主题的链接复用。旧记录及省略主题的请求默认深蓝。分享页只使用已保存的主题,不接受网址参数覆盖。主题各自拥有纸面、侧栏、开放分栏、暗色索引、项目展签和瑞士网格布局,复用同一套 Markdown 和内容投影。

页面使用共享 Ant Design 6.6.1 静态样式、官方提取的主题样式、CSS 断点和服务端初始数据。正文不通过 hydration 初始化请求加载;初次编辑在交互就绪前保持原生只读属性,防止初始化覆盖输入,不切换禁用外观或响应式结构。分享时间统一标注北京时间,首屏与浏览器显示一致。

在仓库根目录运行:

pnpm --filter @zlooks.cn/resume-shared build
pnpm --filter @zlooks.cn/resume-server build
pnpm --filter @zlooks.cn/resume-server verify:rsc
pnpm --filter @zlooks.cn/resume-server start

复用 ~/.zlooks.cn/.env 中的 Registry 引导配置。Gateway、Registry、User 服务和数据库需可用。服务不打开独立公共 HTTP 端口。匿名分享读取不依赖 User 服务。

验证命令:

pnpm --filter @zlooks.cn/resume-shared test
pnpm --filter @zlooks.cn/resume-server test
pnpm --filter @zlooks.cn/resume-server typecheck
pnpm exec tsx packages/resume-server/test/postgres.integration.ts /path/to/protected-postgres-config.json

PostgreSQL 集成检查仅创建随机临时 schema,使用两个真实连接验证并发创建与保存、六种主题隔离、快照复用、跨实例撤销、锁等待后的取消、过期和级联删除,并在结束时清理。配置文件必须由操作者保护;检查不会打印凭证,也不创建或同步业务 schema。