How to price and sell your lua programming pieces

Lua work is awkward to price because the deliverable is small: a folder of files that could be copied in a second. The value was never in the file size. It is in the hours you spent learning the engine and the fact that the buyer cannot write it themselves. Price that clearly, or the conversation turns into haggling over something that looks like text.

Name the deliverable before the number

Four kinds of Lua work sell differently. A standalone module does one job and can be dropped into any project. A plugin extends someone else’s tool and has to live inside their conventions. Integration work means reading their codebase and making your module fit. Maintenance is a subscription to future fixes.

Write one sentence describing what the buyer can do after paying that they could not do before. If the sentence needs a paragraph, the job is not scoped yet, and the number you quote will be invented rather than calculated.

Put the scope in writing

A short scope note protects both sides: what is included, what is explicitly out, how many revision rounds are covered, which runtime you tested against, and when delivery happens. A single page is enough, sent before work starts.

  • Included: the module, a README, a working example, one revision round.
  • Excluded: art, hosting, porting to another engine, features added after sign-off.
  • Tested on: the interpreter and libraries you actually ran it against, named precisely.
  • Not covered: support beyond the agreed window.

Four pricing shapes that suit Lua jobs

Pick the shape that matches the risk, rather than converting everything into an hourly rate.

  • Fixed price for a defined module or plugin. Quote it after you have written the scope, and add a margin for the unknowns you know will appear.
  • Day rate for integration, where the size of the buyer’s codebase decides the work. Estimate days, not hours, and stop when the estimate is reached to renegotiate.
  • Licence plus support window for a library you sell repeatedly. Charge for the licence, then define exactly what the support window includes and when it expires.
  • Revenue share only when you trust the other party and the cap is written down. A percentage with no floor and no end date is a gift, not a deal.

Deliver so it runs without you

The fastest way to lose a repeat buyer is a zip file with no instructions. Tag the release, write a README that shows the first successful call, include a minimal example project, list dependencies, state which Lua version you tested, and attach a licence file. Someone who can run your module in five minutes does not come back with complaints, and someone who cannot will ask for their money back.

Keep a changelog from the first release, so future paid updates are easy to justify.

Get paid on a schedule

Ask for part of the fee up front on anything longer than a couple of days, invoice at agreed milestones, and keep the conversation in writing. A marketplace that holds payment in escrow solves this if the buyer is a stranger. Decline unpaid test projects bigger than a small sample.

Hourly or fixed?

Fixed for well-defined modules, hourly or daily for exploration inside a codebase you have not seen. If a buyer insists on hourly for a fixed piece of work, cap the hours in writing so the bill is predictable for both of you.

What licence should I attach?

A permissive open licence if you want the module shared widely, and a commercial licence with named restrictions if you are selling it. Licence wording has legal consequences, so have a professional review your terms.

Describe the deliverable, scope it on one page, price it by the shape of the risk, and deliver it with instructions. The awkwardness fades once the offer is concrete enough to compare with a number.