Skip to content

How to package and sell source code as an app starter

Updated December 4, 202615 min read

An app starter is one way to sell software online: buyers receive the source code of a working app, run it with their own settings and data, and build their own product on it. You keep ownership of your project and sell reusable copies of it, and every buyer receives the Kurodyne Commercial License. Selling a running business, with its users and revenue, and building custom software for one client are different tasks, and this guide covers neither.

The steps follow one example, Changelog Starter, a small Node.js app written with a coding agent. It publishes a product’s changelog as a web page and a JSON feed. The Changelog Starter sample ZIP file holds its source, tests, sample data, README, AGENTS.md with a one-line CLAUDE.md, third-party notices, and test record. On Nov 27, 2026, we installed it as a buyer would in clean Node.js 24 and 26 containers and on a Mac, and this guide shows the failure its first package had and the repair. What the test covered gives the conditions. Windows wasn’t tested, and AGENTS.md template and example for code you sell records how Claude Code and Codex worked with the sample’s AGENTS.md.

Define what the starter does and what buyers receive

Choose one job that a buyer can check. Changelog Starter serves a changelog page at / and the same entries as JSON at /api/entries, and it adds an entry when a request carries the owner’s secret token. It keeps the entries in one JSON file and needs no database. The app is 425 lines of JavaScript, and 209 more lines of tests cover its settings, its storage, and every route.

A starter is source code, not a service. Buyers run it on their own computer or server, with their own accounts. Kurodyne’s review allows that: starters and templates can require setup or customization, as long as the listing explains what buyers receive and what they need to do, as How does listing review work? states. Code also has to come with readable source, under Kurodyne’s listing standards.

Separate what buyers receive from what stays with you:

  • In the package: the source, the tests, made-up sample data, an example configuration file, setup instructions, agent instructions, third-party notices and license texts, and the lockfile
  • With you: your working .env file and its secrets, your real data, your accounts and API keys, your deployment, your installed dependencies, and your version history

To replace real records with sample data and check the folder for names, paths, and metadata, follow How to scrub private data and build a demo dataset.

Buyers may build finished apps on your starter and sell them, as long as those apps don’t hand out the starter itself as reusable source or stand in for buying it. They can’t resell or share the starter, even modified. What can I do with a product I bought? and Can I share or resell the product itself? explain those terms.

Check your rights to sell the source code

You can sell a starter you made or substantially adapted, including one written with a coding agent, when you own it or have the rights to sell it. The terms of the AI tools you used must also let you sell what they produced, as Can I sell a product I made with AI? explains, and Selling AI-generated code covers who owns code a coding agent wrote. If you built the app while employed, your employer may have rights in it, and Selling a side project while employed covers what to check. If it grew out of work for a client, Selling work built for a client covers that case. Code that came from open-source projects keeps its own license: Selling code that uses open source explains what that requires, and How to sell a paid edition of an open-source project covers a paid edition of a project you publish as open source.

The sample is licensed differently from a product you sell. Its LICENSE.txt dedicates the sample’s own files to the public domain under CC0 1.0 (opens in a new tab), so you can build a commercial product on it. CC0 grants no trademark rights and implies no endorsement, and a product built on the sample still has to be substantially your own work, as Kurodyne’s listing standards require. Every buyer of your product receives the Kurodyne Commercial License, so your package needs no license file of its own. When you build on the sample, remove its CC0 statements:

  1. Delete LICENSE.txt.

  2. Delete the "license": "CC0-1.0", line from package.json, then run this once in the folder that holds it:

    Shell
    npm install

    In our test, that removed the same line from package-lock.json and changed nothing else. npm ci and the tests still passed.

  3. In README.md and THIRD_PARTY_NOTICES.md, remove the references to LICENSE.txt, and replace the CC0 sentences with the license sentence from the README template. In the README, also replace the notes about the educational sample and its Kurodyne support link with your own update and support terms.

Keep the notices and license files of the two third-party components. They stay under their own MIT licenses.

Map accounts, services, and settings

Code and instructions written on your computer, by you or by a coding agent, can depend on things that only your computer has. Before you package the starter, list what it needs from the computer it runs on:

  • The runtime, its version, and the package manager
  • Accounts and API keys, and any paid plan behind them
  • Services the app calls or needs running, such as a database or an email provider
  • Settings in your shell, in an .env file, or written into the code
  • Files and folders the app expects to find
  • Tools your instructions use, such as curl or git

For Changelog Starter, the list is short. It needs Node.js 24 or later with npm, and no account or paid service. npm ci downloads one package from the npm registry. After that, the app ran in our test with the network disconnected. It reads five settings from .env and creates its own data file, data/entries.json.

For each setting, record whether it’s required, its default, where the buyer gets its value, and whether it’s secret, as Record configuration and notices describes. Then ship an example file with placeholders and harmless defaults. This is the sample’s .env.example:

# Copy this file to .env and set your own values. Never share your .env.

# The product name shown in the page title and the JSON feed.
SITE_NAME=Example App

# The secret that allows adding entries. Replace it with at least 24 random
# characters. The app refuses to start while this placeholder is in place.
ADMIN_TOKEN=replace-with-your-own-token

# The port the app listens on.
PORT=3000

# The address the app listens on. 127.0.0.1 accepts requests from this
# computer only. Use 0.0.0.0 inside a container or on a server that other
# computers reach.
HOST=127.0.0.1

# The JSON file that holds your entries. A relative path starts from this
# folder. The app creates the file and its folder.
DATA_FILE=data/entries.json

Make the app refuse a placeholder instead of running with it. With .env copied unchanged, npm start stops with:

Configuration problem in .env:
- ADMIN_TOKEN still has the placeholder from .env.example

Keep the example file in step with the code. The sample’s tests include one that compares the settings in .env.example with the settings src/config.js reads. On the build computer, the first .env.example listed three of the five settings, and that test failed:

AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

  [
    'ADMIN_TOKEN',
-   'DATA_FILE',
-   'HOST',
    'PORT',
    'SITE_NAME'
  ]

The lines marked - are the settings the code reads and the file left out. Adding HOST and DATA_FILE to .env.example made the test pass. When we later put the first draft back into the final package in a clean container, the same test failed with the same lines.

If your starter needs a paid service or the buyer’s own API account, say so in the README and in the listing. A starter whose setup needs a paid API key that Public requirements doesn’t mention doesn’t pass review, under Kurodyne’s listing standards.

Package the source, sample data, and notices

The Changelog Starter sample ZIP file holds one folder:

changelog-starter/
  README.md
  AGENTS.md
  CLAUDE.md
  CHANGELOG.md
  TESTING.md
  THIRD_PARTY_NOTICES.md
  LICENSE.txt
  .env.example
  .gitignore
  package.json
  package-lock.json
  src/
  scripts/
  test/
  examples/
  public/vendor/concrete.css
  licenses/concrete.css-3.1.0/LICENSE
  licenses/zod-4.6.7/LICENSE
  • src/: The app’s settings, storage, page, routes, and server
  • scripts/: The npm run commands that copy the sample entries, check the running app, and add an entry
  • test/: The tests, which run with npm test without a .env file or a running app
  • examples/: Three entries for a made-up product, and one more to add
  • package-lock.json: The exact version of the one dependency
  • CHANGELOG.md: The starter’s own releases, which are separate from the entries the app serves
  • TESTING.md: The test record

Leave out everything that belongs to your copy: your working .env, the data folder, node_modules, .git, logs, build output, and operating system files such as .DS_Store. Buyers install the dependencies themselves with npm ci, which installs what package-lock.json records. npm’s npm ci reference (opens in a new tab) says it stops with an error instead of changing the lockfile when the lockfile’s dependencies don’t match package.json. The sample’s .gitignore lists .env, data/, and node_modules/, so a buyer who keeps the starter in a Git repository doesn’t commit their token or their entries.

Compress the package folder itself, as Package limits and file rules describes. Compressing the folder keeps every file in it, hidden ones included, so first remove everything listed above. A ZIP file made from the folder’s visible contents instead loses .env.example and .gitignore, which Finder and many Linux file managers hide. Then check the list of files buyers will receive:

Shell
unzip -l changelog-starter-1.0.0.zip

The sample uses two third-party components, both under MIT, and each one needs different handling:

  • concrete.css 3.1.0, a stylesheet copied unchanged into public/vendor/. Its file is in the package, so its license file is too.
  • zod 4.6.7, a validation library that npm ci installs. No zod file is in the package, so its entry says where npm puts it, and the package carries a copy of its license for anyone who redistributes an installed copy.

THIRD_PARTY_NOTICES.md lists them in separate sections, following Third-party notices for code you sell. This is the zod entry:

Markdown
### zod

- Version: 4.6.7, pinned in `package.json` and `package-lock.json`
- Source: [zod 4.6.7 package on the npm registry](https://registry.npmjs.org/zod/-/zod-4.6.7.tgz)
- Installed to: `node_modules/zod` when you run `npm ci`. No zod file is in
  this package.
- Use: Validates the settings in `src/config.js` and the entries in
  `src/entries.js`
- License: MIT
- Copyright holder: Colin McDonnell
- Changes: None
- Full copyright notice and license: [Copy of the license](licenses/zod-4.6.7/LICENSE),
  which npm also installs as `node_modules/zod/LICENSE`

Take each license from the component’s own files at the version you ship, including for a dependency your agent added: its description of a license isn’t the license, as Identify what you include explains. We compared the sample’s stylesheet and both license files with the packages on the npm registry, and all three were identical.

Write the README and agent instructions

The README takes a buyer from the download to a working app, and buyers can read it on the product page before they buy. The sample’s README follows the README template section by section. Three choices did most of the work:

  • An expected result in the buyer’s own terms. After npm run check, the README shows the line that appears, with the buyer’s SITE_NAME in place of Example App.
  • Steps that need only what its Requirements section lists. The commands use Node.js, npm, and cp.
  • Recovery steps quoted from real failures. Each symptom in its Troubleshooting section was produced on purpose, so the README quotes what the buyer sees.

Tell buyers how to move to a new release without losing their settings, data, and changes. The sample’s Updates section says to extract the new release into a new folder, run npm ci and npm test first, compare .env.example and copy .env across, stop the old app so no entries are written during the switch, copy and verify the final data file, start the new release, and check it with npm run check. Keep the earlier folder until the new one passes its check, and if you roll back after adding entries on the new release, stop the new app and copy the current data file back (when the file format didn’t change) before restarting the earlier folder. Update a product you sell covers what buyers receive when you publish an update, and Release notes template for code you sell gives a format for CHANGELOG.md.

A buyer’s coding agent needs other facts: where things are, the command that shows a change works, and what not to touch. AGENTS.md holds them. The AGENTS.md format (opens in a new tab) describes it as a README for agents, placed at the root of the repository. The sample’s file has four short sections: Layout, Commands, Conventions, and Boundaries. Two of them:

Markdown
## Commands

- Install: `npm ci`
- Verify a change: `npm test`. It needs no `.env` and no running server.
- Run: `npm start`. It needs a `.env` file, as `README.md` describes.
- Check a running app: `npm run check`

Run `npm test` after your last edit, including an edit to documentation, and
finish only when it passes.

## Boundaries

- Don't edit `public/vendor/concrete.css` or anything in `licenses/`. Put
  style changes in a new file under `public/`.
- Don't add a dependency without asking. When one is added or updated,
  update `THIRD_PARTY_NOTICES.md` and `licenses/` in the same change.
- Don't read, print, or commit `.env`. Never put a real token in code,
  tests, examples, or documentation.
- Don't change the files in `examples/` to make a test pass.
- Don't change `package-lock.json` by hand.

Pair a rule with a check where you can. The Conventions section says a new setting goes in src/config.js, .env.example, and the README together, and the test shown earlier fails when the first two disagree. Write the file like any agent instructions you sell: Kurodyne’s listing standards require them to act only on what the buyer asks, and an instruction to read secrets, send data elsewhere, or install software the buyer didn’t ask for doesn’t pass. AGENTS.md template and example for code you sell tests the sample’s AGENTS.md with Claude Code and Codex, with the one-line CLAUDE.md that keeps Claude Code loading it beside a buyer’s own CLAUDE.md.

Install the app starter as a buyer would

Test the ZIP file you’ll upload on a computer that has never held your project: none of your installed dependencies, saved settings, extra tools, or files. A new container from the runtime’s official image works as that computer. For each run, we:

  1. Started a container from the official Node.js image, with only the ZIP file and our step script mounted, read-only.
  2. Installed unzip, because the image has no ZIP extractor and a buyer’s computer has one.
  3. Followed the README exactly, as the image’s unprivileged node user, in a new folder.
  4. Used a buyer’s values instead of ours: the site name Harbor Ledger, port 8080, and a new token from the README’s command.

In the folder that holds the README, the buyer runs these commands, editing .env after the copy:

Shell
npm ci
cp .env.example .env
npm test
npm run seed
npm start

With the app running, a second terminal in the same folder asks for its status:

Shell
npm run check

In both containers, after npm’s own lines, the check printed the line the README promises, with the buyer’s site name:

{"status":"ok","site":"Harbor Ledger","entries":3}

The rest of the README worked the same way: the page, the JSON feed, the stylesheet, the sample entry, an entry of the buyer’s own, a restart that kept all five entries, and the update steps replayed with a second copy of the release. The same steps passed on our Mac, which built the package and isn’t a clean environment.

Repair what the clean install finds

The first package failed at its check. Its README told the buyer to run:

Shell
curl http://127.0.0.1:3000/health

On the build computer, where curl is installed, that kind of check worked. In the clean Node.js 24 container, the command didn’t exist:

bash: line 1: curl: command not found

The image has Node.js and npm, the two tools the README listed, and no curl. In a second container with curl installed, the same line failed again, because our buyer had chosen port 8080:

curl: (7) Failed to connect to 127.0.0.1 port 3000 after 0 ms: Couldn't connect to server

The repair removed both assumptions. The starter gained npm run check, a script that reads HOST and PORT from .env and asks the app for its status with Node.js alone, and the README’s check became that command. We rebuilt the ZIP file and repeated the whole installation, not only the step that failed, and the check printed the expected line. AGENTS.md now tells an agent not to document a step that needs another tool, such as curl.

When a step fails only in the clean environment, find what your computer supplied, such as a tool, a setting, a file, or a default. Then remove the need for it, or list it under the README’s requirements.

Produce the failures your README documents, then quote them. We caused each symptom in the sample README’s Troubleshooting section on purpose, in fresh containers. Two of them:

  • A second copy of the app on the same port printed Port 8080 is already in use. Set another PORT in .env.
  • SITE_NAME=Harbor #1 Ledger showed as Harbor, because Node.js’s --env-file option (opens in a new tab) treats text after a # as a comment. Quotes around the value fixed it.

A container adds one more: with the default HOST=127.0.0.1, a request through the container’s published port got an empty reply. With HOST=0.0.0.0, the same request returned the status line. The sample’s README says which value to use where.

Publish the tested requirements and limits

Write the requirements from your test record, and keep what the code accepts apart from what you tested. This is the sample README’s Requirements section:

Markdown
## Requirements

- Runtime: Node.js 24 or later. Tested with 24.22.3 and 26.13.1 on Linux and
  with 24.22.2 on macOS.
- Package manager: npm, which comes with Node.js. Tested with 11.19.1 and
  11.20.0.
- Tested environments: Linux in the official Node.js container images, and
  macOS 27.2.1, as `TESTING.md` records. Windows wasn't tested.
- External services: None. Installing the dependency downloads one package
  from the npm registry. Running the app needs no account, paid service, or
  network connection.
- Other requirements: A terminal. The commands were tested in Bash. Apart
  from `cp`, every command below needs only Node.js and npm.

The engines field in package.json sets the same minimum, Node.js 24. The README names the versions that passed, the systems they ran on, and the system it didn’t test. Name a runtime or an operating system as supported only after the clean install passes there.

Put the limits in the README too. The sample’s README says that the app runs as one process, keeps every entry in one JSON file, and has no sign-in page, entry editing, pagination, HTTPS, or rate limiting, and that it needs a server that provides HTTPS in front of it before it faces the internet.

Use the same requirements and limits in the listing. This is how the sample would fill the Product Editor; it illustrates the copy and isn’t a Catalog listing:

  • Title: Use “Changelog Website Starter for Node.js”.
  • Description: A small Node.js app that publishes your product’s changelog as a web page and a JSON feed. Add an entry with one command, and the app stores it in a JSON file. Includes readable source, 19 tests, sample entries, a README with setup and troubleshooting steps, and project instructions in AGENTS.md. Needs no database, account, or paid service.
  • Category: Choose Websites & apps.
  • Product type: Choose Project starter.
  • Price (USD): A whole-dollar amount from $5 to $500, or 0 to publish a free product.
  • Public requirements: Select Add requirement and choose Runtime.
    • Enter Node.js as the name, with “24 or later. Tested with 24.22.3 and 26.13.1 on Linux and 24.22.2 on macOS” as its version or detail.
    • Other requirements: Write “Installing the dependency needs network access to the npm registry. The commands were tested in Bash on Linux and macOS. Windows wasn’t tested. Put the app behind a server that provides HTTPS before you expose it to the internet.”
  • Images: Use screenshots of the running page and of the check’s output.
  • Files: Upload your own tested package using the sample layout, with the CC0 statements removed and your own support details and test record.
  • Key delivery: Leave it Disabled.

Upload the package in the Product Editor’s Files section and check its Package checklist. Then download the package from the same section and repeat the clean install from that copy, which is the file buyers receive.

What the test covered

We recorded these results on Nov 27, 2026, on macOS 27.2.1 (arm64) with Docker 29.9.3:

  • Clean containers from node:24-bookworm-slim, with Node.js 24.22.3 and npm 11.19.1, and from node:26-bookworm-slim, with Node.js 26.13.1 and npm 11.20.0, both on Debian 12. Each container saw only the ZIP file and the script that typed the README’s steps.
  • The same script on the Mac, with Node.js 24.22.2 and npm 11.19.1 in Bash, in a new folder with an empty npm cache. That Mac built the package, so it isn’t a clean environment.
  • Headless Google Chrome 158 on the Mac, which showed the page with its five entries and the stylesheet applied.
  • In Node.js 24 containers: the troubleshooting symptoms, the HOST setting from outside a container, npm ci with no network connection, and the installed app with no network connection.
  • The bundled stylesheet and license files against the npm registry packages, and Kurodyne’s package reader on the final ZIP file, which read the complete README as Markdown and recognized four license and notice files.

Each check ran once on the Nov 27, 2026 archive. Later edits updated validation message wording in src/config.js, src/entries.js, and scripts/add-entry.js, and on Dec 3, 2026 revised the upgrade and rollback steps in README.md and TESTING.md. On Dec 3, 2026, we reran the 19-test suite, verified an upgrade with an intervening write before cutover and a rollback with a post-cutover entry on macOS with Node.js 24.22.2, and reran Kurodyne’s package reader on the rebuilt ZIP file. The Linux container and headless Chrome checks weren’t repeated on Dec 3, 2026. The update steps used a second copy of the same release, so they show that the commands work, not how a real change between releases behaves. The record doesn’t cover Windows, other Node.js versions, an HTTPS server, load, an upload to a Kurodyne store, or any coding agent reading AGENTS.md. TESTING.md in the sample holds the record.

When your own starter installs from its ZIP file in a clean environment, follow Publish your first product to create the listing and submit it for review.

Was this helpful?

Need more help? or contact Kurodyne support.