I have no dramatic story for this one, and I'd like to keep it that way.
My first trip to Shenzhen was in 2016, to help set up production of the Shake-On bracelet. It was a different world, and the speed was unreal. I still travel there regularly, and Insyght now has an engineer based in the city. The photo below is from one of those trips, with my co-founder Koos.

Those years went into relationships as much as into products. Partners have become friends. That's the best protection I have.
The stories that do go around all end the same way. A founder falls out with a factory and discovers that the 3D files, the parts list and the molds (the steel forms that shape the plastic parts) all live at that factory. Moving means starting over. Staying means paying whatever is asked.
So relationships come first and paper comes second. The paper is cheap, but it has to be arranged at the start, while everyone is still friendly. This post covers which documents to sign, which files to collect, and at what moment.
Why a contract from home doesn't work in Shenzhen
A contract only helps where the other side has something a court can take: money, machines, a building. For a factory in mainland China, all of that is in China. Chinese courts generally don't enforce rulings from foreign courts, so the factory can ignore a judgment from Rotterdam or Delaware.
That's why the NDA (non-disclosure agreement) you use at home is close to worthless there. It names the wrong court, in the wrong language. It also covers too little. An NDA stops a supplier from leaking your information. It says nothing about the supplier using your design for its own product, or selling directly to your customers without you.
The China-ready version is an NNN agreement: non-disclosure, non-use and non-circumvention (no going around you to your customers). All three are written out, in Chinese, under Chinese law, with a Chinese court named. Most Chinese suppliers have never been sued, and a contract that a local court will act on changes how they behave.
A factory stays honest as long as it believes it earns more with you than without you. So pick an established factory with other customers to protect, pay on time and keep the orders coming. One China law firm with about 1,000 manufacturing contracts behind it saw real trouble only two or three times among clients who had a vetted partner and a proper contract.

Owning a design and holding it are different things
Two practical things settle who owns a design that was made together with a factory.
The first is who paid. If a supplier does engineering "for free", meaning it never shows up as a line on an invoice, the supplier sees the result as theirs. In their eyes it was an investment to win your orders, and a Chinese court tends to follow the same logic. A paid invoice per task is your proof.
The second is who has the files. Say the contract calls the design yours, but the editable CAD (the 3D design files) sits on the factory's server. Then only that factory can change a wall thickness, order a new mold or quote a second production line. You're the owner on paper, and you still can't have your product built anywhere else.
Sign three documents, each before the step it protects
Scale the paperwork to the order. Manufacturing contracts run from about 3 pages to about 60. Send 60 pages with a $5,000 order and the factory sees a difficult customer. Whatever the length, put every term in one signed document, because promises spread over WeChat and email end up contradicting each other.
There are three documents, and each one is signed just before a new kind of risk starts.
Before you show a factory anything, sign the NNN. First find out who you're signing with: the factory itself, a trading company (a middleman that resells what factories make) or a Hong Kong company that owns the factory. A good contract with the wrong company protects nothing. Set a term of 2 to 5 years. "Forever" can be struck down as unreasonable, and so can a flat $1 million penalty per breach.
Before design work starts, sign a development agreement. It says who owns what gets designed, and what gets delivered. Put a price next to every task and list the deliverables in editable formats.
Before mass production, sign a manufacturing agreement. It fixes the price, the quality standard, the lead time, and what happens when a batch fails. Add a ban on quietly moving your production to another workshop, and your right to visit and inspect.
I'm an engineer, so have a lawyer who works in China draft the real documents and check the details for your product.
Collect the files when you pay
Here's a made-up example. A factory quotes $24,000 to develop your product. Split it into milestones and attach a delivery to each payment.
| Milestone | You pay | You receive |
|---|---|---|
| Enclosure design approved | $6,000 | 3D CAD and 2D drawings |
| Electronics working | $8,000 | Schematics and board layout, editable |
| Parts list frozen | $4,000 | Full parts list with suppliers and prices |
| Test fixture built | $6,000 | Fixture design and test software |
Ask for the 3D files in the program's own format plus STEP, a neutral format any CAD program opens. Schematics are the circuit diagrams, and the board layout is the drawing of the circuit board itself. A PDF of either lets you look but not change anything, so ask for the editable files.
The parts list needs the real supplier behind every part, with a price. One buyer with a failing silicone part asked which grade of silicone was used. The supplier called it a business secret, on the buyer's own product.
Firmware (the code that runs on the device) works the other way around. For a connected product it's half the design. The factory needs the compiled file, the finished program that gets loaded onto each unit. It doesn't need the source code. Keep the cloud accounts and the keys that sign firmware updates in your company's name.
Two things are easy to forget. The test fixture (the jig that programs and checks every unit at the end of the line) has a design and software of its own, and without them another line can't test your product. A mold stays in the factory's machine, so what you hold is a clause: the mold is yours, and the factory has to release it when you ask.
Register the brand, wait with the patent
China gives a trademark (the legal right to a brand name) to whoever files first. If that isn't you, someone else can register your name, sell under it and block your exports. One manufacturer whose contract had been ended got a relative to file the customer's brand, and carried on selling.
Filing costs roughly $2,000 to $2,500, and it's worth doing even if you never sell in China. An NNN binds one company. A trademark binds everyone in the country.
A patent is a different calculation. A full one costs $10,000 to $50,000, and all it gives you is the right to sue. James Dyson showed vacuum cleaner blueprints to a possible partner, saw a similar product appear and went to court. The case took about 5 years and nearly bankrupted him before it was settled.
For a first product I'd wait. A US provisional application (a cheap placeholder filing) costs $200 to $300, isn't published and holds your date for 12 months. File it just before you go public, then use those 12 months to see if people pay.
Make the last payment depend on an inspection
The usual pattern is about 30 percent with the order and the rest before shipment. Take an example order of 3,000 units at $18 each, so $54,000. You wire $16,200 to start. The remaining $37,800 is still in your account when the batch is finished.
Write into the manufacturing agreement that this balance is due after a passed inspection. Unpaid money is the only argument a small buyer has.
Good partners deserve the same discipline from you. When the inspection passes, pay on the day you promised, to the company named in the contract, into a company bank account in that exact name.

Where it goes wrong
Accepting free engineering. It feels like a favor. Later the supplier treats the design as theirs, and you have no invoice that says otherwise. Ask for an itemized quote and pay for every task.
Building on a part the factory owns. One fitness-equipment brand tried to leave its manufacturer and found that two components inside its own product were patented by that manufacturer. Before you design in a supplier's module, ask who owns it.
Going public long before you can ship. One biometric ring had about 2 years of development behind it. Within roughly 3 months of its crowdfunding campaign, around 20 Shenzhen companies were reportedly building near-identical products, while the original was still waiting for its molds. Announce when the molds are nearly done.
Buying the patent before anyone has bought the product. Companies have gone under with a granted patent in hand, because the cash went to lawyers and none was left for stock and marketing. Prove demand first, then file.