TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you vet open source libraries?

8 点作者 nothasan大约 4 年前
I try to minimise the impact of security vulnerabilities, but it just seems painstaking to look through a ton of code. Is there processes that people/companies follow that decrease the time taken to do this?

6 条评论

softwaredoug大约 4 年前
- how recent was the last commit?<p>- what is the license? (Avoiding copyleft headaches)<p>- do the issues look cared for?<p>- is there an issue asking “is the project maintained any longer?”<p>- what business or person is behind the project? What is their motive for creating the project?<p>- how much of an impact would it be if the project disappeared tomorrow? Could I maintain a fork or rebuild it? Is it core business functionality or a side thing?<p>- do others at my company use it? Or do they have a different library&#x2F;etc for solving the problem?
评论 #26377695 未加载
评论 #26399918 未加载
burntoutfire大约 4 年前
I check if it&#x27;s on a list of libraries that we&#x27;re allowed to use in our bank (my employer). Then I learn that the list is a total mess, the people in charge of it have been purged in the latest round of cost-saving-inspired firings and apparently no one was assigned this responsibility after that. Then I just use whatever I want.
Raed667大约 4 年前
Just the basics: number of installs, activity of maintainers, the &quot;feel&quot; of their Github repository.<p>I have never had the need (nor was I asked) to vet code in depth before adding a dependency.
tacostakohashi大约 4 年前
Ideally you can use the libraries provided by your linux distribution &#x2F; vendor, and they can do the heavy lifting and economies of scale can be taken advantage of.<p>Even if you&#x27;re not actually running your code on Debian &#x2F; RHEL &#x2F; whatever, using libraries that are distributed by those vendors where possible is a good start.
codegladiator大约 4 年前
Fork the repo and keep an eye on the original repo commits&#x2F;issues.
bananamansion大约 4 年前
you can use <a href="https:&#x2F;&#x2F;snyk.io&#x2F;advisor&#x2F;" rel="nofollow">https:&#x2F;&#x2F;snyk.io&#x2F;advisor&#x2F;</a>