TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to Price a Software Library?

34 pointsby rivoabout 6 years ago
More than once, I&#x27;ve built a software library - usually something required in specialized industries - which I&#x27;ve then gone on to sell to enterprise customers. Each time, however, I feel that I&#x27;m leaving money on the table by pricing it wrong.<p>It does not seem wise to charge a fixed one time fee of a few hundred bucks when the customer then uses the library for years in their own products. Is it still common to charge per installed CPU&#x2F;core? How do you then deal with cloud systems where that number always changes and may even be difficult to determine? What about charging &quot;per end user&quot;? In general, can libraries also be charged on an ongoing basis like a SaaS (x EUR per month or year), i.e. do customers accept that?<p>I&#x27;ve offered maintenance and support packages but when the software works beyond the initial warranty, customers usually don&#x27;t order them. I could turn the library into an API and charge for that but that&#x27;s not always what the customer wants.<p>Any ideas on how to maximize my revenues here?

8 comments

JohnFenabout 6 years ago
I&#x27;ve developed and sold several libraries over the years. Here&#x27;s how I approached pricing. I&#x27;m not saying this is the best way, but it has worked for me.<p>I don&#x27;t really do ongoing payment (rental) schemes, out of pure personal preference. (If a customer asks for one, I can do that, though -- it&#x27;s just not a default option). I don&#x27;t like it when other software does this, so I&#x27;m not going to do it myself. That&#x27;s not an economic or business-based decision and not a recommendation. I&#x27;m just mentioning it to explain why that&#x27;s absent here.<p>I take a look at what my development costs were to develop the library, and use that to estimate what it would cost another shop to replicate the same functionality. I try to subtract out the portion of the development costs that are reflect the API design and other things that are unique to library development (including documentation).<p>Then, once I have an estimate for what it would cost my potential customers to develop the functionality, I cut that in half, and that becomes my asking price.<p>I also sell libraries in two forms: with source code and without. For those who want the source code (which is most of my customers), I charge double what the asking price I computed above is.
评论 #19822237 未加载
dsr_about 6 years ago
My company buys a math library. It&#x27;s normally licensed per-core, annually, with a license key that expires and makes it stop working.<p>We eventually worked out a special deal where we would pay for 2 years at a time in advance, and get a version without the stupid expiring key.<p>The library vendor trusts us to account for the number of CPUs we are running it on and self-report. We don&#x27;t abuse that trust.<p>The alternatives are:<p>1. Writing our own math library. We estimated it would take a man-month to get it usable, but we might spend years in corner cases.<p>2. Paying someone to improve Octave. Probably similar to case 1, but we would feel good about our contribution.<p>3. Very expensive alternatives.
actionowlabout 6 years ago
&gt; It does not seem wise to charge a fixed one time fee of a few hundred bucks<p>Maybe you could make the one-time price higher? I&#x27;ve seen some critical libraries cost several thousand dollars, and it was worth it in time saved.
评论 #19819525 未加载
评论 #19819733 未加载
cweagansabout 6 years ago
Your customers are going to ask if it&#x27;s cheaper to buy your library or build out the functionality on their own. If I were pricing this, I&#x27;d try to be at the highest number possible where the answer to that question is a no-brainer.<p>Personally, I&#x27;d do a fixed one time fee for each major version of the library.<p>Another option is to scale your pricing based on your customers&#x27; revenue like Unity does (minus the subscription part). Smaller companies can get a better deal on your software, but when they cross a threshold of annual revenue, then they pay more.
评论 #19823251 未加载
DerekQabout 6 years ago
Look into charging per developer, with a site license option. Libraries &#x2F; components, especially for enterprise development is big business. In the .Net space you have $100m+ companies like DevExpress and Telerik, and smaller, more specific and niche component providers (example: componentspace.com) selling successfully at a few grand a copy.<p>A few hundred bucks is way too low for any library of substance that saves the local developers a few weeks work.
happythoughtabout 6 years ago
Value-based pricing is an alternative to cost-based pricing. Try to quantify the value that your library brings to the customer in terms of revenues generated or costs saved. You and the customer should get to share this value, so choose a price that divides that value between you equitably.
gremlinsincabout 6 years ago
I think for a library an annual &#x27;support license&#x27; on top of the purchase fee, would keep your pockets padded - since it&#x27;s niche say you charge $400 for the library, then $80&#x2F;year -- if you have enough clients that&#x27;s some residual on-going income just be sure to push out a few security updates per year which is what the subscription aspect is for -no subscription --what&#x27;s your motivation to provide support&#x2F;upgrades?
评论 #19820465 未加载
评论 #19840796 未加载
laydnabout 6 years ago
You should charge &quot;per month&#x2F;year&quot;, if you have any intention of supporting your product and your customers long term.<p>Sell the library for X EUR, and then charge Y Eur&#x2F;year for ongoing support and maintenance, where Y is a fraction of X. If the user does not want the support and maintenance, so be it, they can use the software indefinitely. In my experience, most serious users have no problem paying for long term support.<p>Good luck.