Skip to content

README template and example for code you sell

Updated December 5, 202611 min read

Use this README template to document code you sell, from installation and configuration to updates and support. A README takes buyers from download to a working result, so test its instructions from a fresh copy of the package.

Prepare a public README

Use a regular file for README.md. A symbolic link is skipped. On the product page, links need a full https:// URL. Put screenshots in the Product Editor’s Images section. Markdown images show their alternative text. HTML blocks are removed along with their text. If the whole README is written as HTML blocks, the product page shows the source as plain text. Write the content in Markdown to show formatted text.

Put README.md at the top level of your ZIP file, alongside the product files. When one folder holds every file, as in a ZIP file made by compressing a folder, Kurodyne reads the README from that folder. Kurodyne also accepts README.txt, but Markdown lets you format commands, headings, and lists. Save the file as UTF-8 text without null characters so Kurodyne can read it. A README is optional; when you include one, anyone can read it on the product page before buying. The preview keeps up to 128 KB of UTF-8 text; longer files are cut off. A long or heavily formatted README can display as plain text, with its Markdown syntax visible, even when it’s within that limit. Put requirements near the top of the README and under Public requirements in the Product Editor’s Details section.

Keep purchase-only links, keys, codes, and passwords out of the README. To deliver one as the product’s key, turn on Key delivery in the Keys section, choose What buyers receive, enter a Custom name if you choose Other, then enter the Access requirements, the Key value, and any Private usage instructions buyers need to use the key. Describe required software, accounts, paid plans, credentials, and access limits under Public requirements too, so buyers can check them before purchase.

Before writing, gather the exact runtime versions you tested, the commands that work from your package, a small sample input, and its expected result. List any external services and costs the buyer needs to cover. Include a short example of what the code does you’re comfortable making public.

Copy the template

Copy this block into README.md. Replace every placeholder in square brackets, such as [PRODUCT NAME], with your product’s details, including the command blocks. The placeholders are writing prompts, not commands to run. Remove sections that don’t apply, or say that no configuration or external account is needed.

Markdown
# [PRODUCT NAME]

[WHAT THE CODE DOES AND WHO IT IS FOR]

Version: [VERSION]

## Included files

- `[SOURCE PATH]`: [WHERE THE READABLE SOURCE LIVES]
- `[EXAMPLE PATH]`: [SAMPLE INPUT OR DEMO]
- `[CONFIGURATION EXAMPLE PATH]`: [CONFIGURATION WITHOUT REAL SECRETS]
- `[CHANGELOG PATH]`: [CHANGES AND UPGRADE INSTRUCTIONS]

## Requirements

- Runtime: [RUNTIME AND TESTED VERSION]
- Package manager: [NAME AND VERSION OR NONE]
- Tested environments: [OPERATING SYSTEMS AND ANY REQUIRED SHELL]
- External services: [ACCOUNTS, PLANS, NETWORK ACCESS, AND COSTS, OR NONE]
- Other requirements: [DATABASE, BROWSER, AND OTHER TOOLS, OR NONE]

## Set up and run

Extract the ZIP file and open a terminal in `[WORKING DIRECTORY]`.

1. Install the required dependencies:

   ```text
   [INSTALL COMMAND OR NO INSTALLATION NEEDED]
   ```

2. Create your local configuration from `[CONFIGURATION EXAMPLE PATH]`.
   [EXACT COPY STEP AND WHERE TO GET ANY REQUIRED VALUES]
3. [ANY DATABASE OR SERVICE SETUP BEFORE THE FIRST RUN]
4. Run the included example:

   ```text
   [RUN COMMAND]
   ```

## Check the result

The example uses `[SAMPLE INPUT PATH]` and produces [OUTPUT AND LOCATION].
You should see:

```text
[EXPECTED OUTPUT]
```

To use your own input, [EXACT STEP OR COMMAND].

## Environment variables

Configuration is read from `[CONFIGURATION FILE OR SERVICE SETTINGS]`.

- `[VARIABLE NAME]`: [PURPOSE]
  - Required: [YES OR NO]
  - Default: [DEFAULT VALUE OR NONE]
  - Value source: [WHERE THE BUYER GETS OR CHOOSES IT]
  - Used by: [SERVER, BROWSER, OR LOCAL COMMAND]
  - Secret: [YES OR NO]

[WHEN EDITS TAKE EFFECT AND ANY RESTART OR REBUILD STEP]

The example configuration contains no working credentials. Use your own
credentials where required, and keep secret values out of browser code,
public repositories, screenshots, and support messages.

## Customize

- Edit `[PATH]` to [SUPPORTED CUSTOMIZATION].
- Keep [LOCAL DATA AND CONFIGURATION] when replacing product files.

## Troubleshooting

- [SYMPTOM OR ERROR]: [CAUSE AND RECOVERY STEP]
- [ANOTHER SYMPTOM OR ERROR]: [CAUSE AND RECOVERY STEP]

## Updates

Approved updates to this product are included while you have access to it
on Kurodyne. The seller decides whether to publish further releases.

Back up your code, data, and configuration before updating. Download the
new release's package from your Kurodyne Library and extract the ZIP file
into a separate folder, then read `[CHANGELOG PATH]`.
[EXACT UPGRADE STEPS INCLUDING CONFIGURATION OR DATA CHANGES]
Run the included example again before switching to the new release.

## Support

Use the seller's support options shown with your purchase in the
Kurodyne Library. [WHAT HELP IS INCLUDED OR WHETHER SUPPORT IS OFFERED]

When reporting a problem, include the product version, runtime version,
operating system, command you ran, and error text. Remove credentials
and private data before sending logs or sample files.

## License and third-party notices

The [Kurodyne Commercial License](https://kurodyne.com/license)
covers everything this product delivers except identified third-party
material, which remains subject to its own license terms.

[IDENTIFY THE NOTICES FILE AND REQUIRED LICENSE FILES OR STATE NONE ARE BUNDLED]

## Limits

[KNOWN LIMITATIONS, UNSUPPORTED USE CASES, AND DEPLOYMENT REQUIREMENTS]

For an app, include the database setup, build and start commands, and deployment instructions that your listing promises. For a command-line tool, include a sample input and output. For a plugin, include the installation step inside its host application and the host versions you tested.

If buyers may change the code with a coding agent, add project instructions in AGENTS.md, as AGENTS.md template and example for code you sell shows.

Read a filled example

This example describes a fictional product called Task Summary, a local command-line tool. Its source files aren’t included in this article. The README shows the level of detail to write for your own package; replace its product facts and commands with ones you have tested. The Changelog Starter sample ZIP file holds a README written from this template for a real Node.js app, tested from a clean install in How to package and sell source code as an app starter.

The example uses Node.js’s --env-file option (opens in a new tab) to load configuration explicitly. A file named .env doesn’t make an application read it by itself.

Markdown
# Task Summary

Count completed and open tasks in a local JSON file. Task Summary prints
a report in your terminal and leaves the input file unchanged.

Version: 1.0.0

## Included files

- `src/report.mjs`: Readable source for the command-line tool
- `examples/tasks.json`: Three sample tasks
- `.env.example`: Example report title, with no credentials
- `CHANGELOG.md`: Changes and upgrade instructions
- `README.md`: Setup and usage instructions

## Requirements

Node.js 24 and a terminal. No package installation, external account,
paid service, or network connection is needed to run the tool once
Node.js is installed.

## Set up and run

1. Extract the ZIP file. Open a terminal in the extracted folder containing
   this README and `src`.
2. Run `node --version` and check that it reports `v24.x.x`, with numbers
   in place of the two `x` values.
3. Duplicate `.env.example` as `.env` in that same folder. The file contains:

   ```text
   REPORT_TITLE=Example task report
   ```

4. Run the sample:

   ```sh
   node --env-file=.env src/report.mjs examples/tasks.json
   ```

## Check the result

The included `examples/tasks.json` contains:

```json
[
  { "title": "Write setup notes", "done": true },
  { "title": "Test the package", "done": true },
  { "title": "Prepare listing images", "done": false }
]
```

The command prints:

```text
Example task report
Total: 3
Completed: 2
Open: 1
```

To summarize your own tasks, copy `examples/tasks.json` to `tasks.json`
in the extracted folder. Replace the sample tasks in `tasks.json` with
your own, keeping the same structure, then run:

```sh
node --env-file=.env src/report.mjs tasks.json
```

Each task needs a `title` string and a `done` value of `true` or `false`.

## Environment variables

`REPORT_TITLE` sets the report's first line and defaults to `Task report`.
Choose your own text in `.env`. The command prints that value, so keep
secrets out of it.
The tool needs no API keys.

Run the command again after changing `.env`. If `REPORT_TITLE` is also
set in your terminal environment, that value takes precedence over `.env`.
The documented command requires the `.env` file to exist even when you
leave it empty to use the default title.

## Customize

Change `REPORT_TITLE` to name your report. Edit `src/report.mjs` to change
the output format. Keep your own task files and a copy of any source
changes when installing another release.

## Troubleshooting

- The terminal can't find `node`: Install Node.js 24, reopen the terminal, and run
  `node --version` again.
- The command can't find `.env`: Create it from `.env.example` and run the command
  from the folder containing this README. Check that your editor didn't
  save it as `.env.txt`.
- The command can't find the input file: Check the path passed after `src/report.mjs`.
  Put quotes around a path that contains spaces.
- The command can't read the JSON: Compare it with `examples/tasks.json`. Use
  double quotes around property names and strings, and remove trailing
  commas. The top-level value must be an array of tasks.

## Updates

This package is version 1.0.0. Approved updates to this product are
included while you have access to it on Kurodyne. The seller decides
whether to publish further releases.

For a later release, download its package from your Kurodyne Library and
extract it into a new folder. Read that release's `CHANGELOG.md` before
using it. Compare its `.env.example` with your `.env`, apply any required
configuration changes, and run the sample again. Keep your original
folder until you have checked your own input and source customizations.

## Support

Use the seller's support options shown with your purchase in the
Kurodyne Library for help running the included example. Support doesn't include custom feature development.

Send the product version, the output of `node --version`, your operating
system, the command, and the error text. Use the sample tasks to reproduce
the problem where possible. Remove private data from anything you send.

## License and third-party notices

The [Kurodyne Commercial License](https://kurodyne.com/license)
covers everything this product delivers except identified third-party
material.
This release bundles no third-party code or assets. Install Node.js separately.

## Limits

Task Summary processes one local JSON file per run. It has no graphical
interface, CSV import, hosted service, or automatic synchronization.
It reads the whole input file into memory.

Record configuration and notices

For each environment variable your code reads, explain where the buyer gets its value, whether it is required, and whether it is secret. Ship .env.example with placeholders or harmless defaults. Keep your working .env and real credentials out of the package. Document how the program loads the file and when configuration changes take effect. If the product needs a paid service or the buyer’s own API account, put that requirement in the listing as well as the README.

Check dependencies and included fonts, icons, images, sample data, and copied code before filling in the notices section. When the package includes third-party material, identify it in THIRD_PARTY_NOTICES.md with its source, license, required notices, and buyer obligations. Include the license texts and other files its terms require. A link to a project’s home page doesn’t take the place of a required notice. What you agree to when you submit a product and the Kurodyne Commercial License, Third-party material explain Kurodyne’s requirements.

You don’t need a separate Kurodyne license file. For a product that Kurodyne delivers, the Kurodyne Commercial License covers everything it delivers except identified third-party material, and a README can’t add seller-specific restrictions to it. A product you sell on another site and list by link comes with your store’s terms instead, so a README in the copy your store delivers names those terms. Keep third-party notices distinct from that license; each component’s terms determine its obligations. Only state that no third-party material is bundled after checking the package.

Follow Third-party notices for code you sell for the inventory steps and a filled notices-file example.

Build the ZIP file

Put the finished README.md alongside the readable source, example configuration, sample files, and required notices in a package folder. Keep README.md and any THIRD_PARTY_NOTICES.md at the top level of that folder.

Follow the packaging steps in Publish your first product to check the package requirements and build the ZIP file. Include product files: the root README and license or notice files anywhere in the package don’t count toward the submission check.

Test from the ZIP file

Test the README against the exact files you intend to upload:

  1. Extract the final ZIP file into a new folder. Check that README.md is at the top level, or directly in the one folder that holds every file.
  2. Follow the setup using only the README, packaged files, and prerequisites you list. Use a clean environment for each platform you claim to support, without relying on your project’s installed dependencies, saved credentials, or local configuration.
  3. Run the included sample and compare the result with the documented output. Then try the documented step for using the buyer’s own input or customizing the product.
  4. Check every filename, command, configuration variable, and link. Search the README for any remaining placeholder in square brackets, replace it, and record recovery steps for failures you encounter.
  5. For an update, test upgrading from copies of earlier releases buyers may have kept to the package you plan to upload. Once approved, the update becomes the only release buyers can download from their Library, so don’t require an intermediate release. See Update a product you sell, and write the changelog with the release notes template.
  6. Check that the README’s requirements match the listing, and that every public example is safe to show before purchase.

If a command works only from your development folder, find the missing file, dependency, or setup step and add it before packaging again. If the expected result is hard to describe, choose a smaller sample that gives the buyer a clear way to confirm the setup worked.

Package and publish

If you haven’t created the product yet, follow Publish your first product to create your first draft. If the product has a price, your Stripe account must accept payments before you submit it for review. Then upload the package you tested in the Product Editor’s Files section and check that the Package checklist finds your README. If it reports no README, check the filename and that README.md sits at the top level of the package folder, then rebuild the ZIP file. If it can’t read the README, save the file as UTF-8 text without null characters, then rebuild the ZIP file. If it says the README has no visible text, add its content, then rebuild the ZIP file. Test and upload the corrected package.

If the checklist says the README displays as plain text, write the instructions in Markdown if they appear only in raw HTML or images. For a long or heavily formatted README, shorten it or simplify its formatting. Then rebuild and upload the package.

Follow Publish your first product for the remaining listing and submission steps.

Was this helpful?

Need more help? or contact Kurodyne support.