Skip to content

Download your app's source code

All plans The app's creator, or anyone with full control

The code the agent writes for your Onplana Maker app is yours. You can download it as a .zip at any point, on any plan, and there is no cap on how often. It is an ordinary Vite and React project, so it runs anywhere Node runs.

Downloading is a copy, not a move. Your app stays exactly as it was, the live URL keeps serving, and you can carry on building in Onplana afterwards.

  1. Open the app in Build.

  2. Open the Source files panel. It lists every file in your app.

  3. Click the download icon in that panel’s header, labelled Download code (.zip).

The file that lands is named after your app, for example my-app-source.zip.

Everything in the Source files list, which is the same set the panel shows you, so you can check what you are about to get before you click. A typical app that started from the default scaffold contains:

FileWhat it is
package.jsonDependencies and the dev and build scripts
vite.config.jsThe Vite configuration
index.htmlThe page shell
src/main.jsxThe entry point
src/App.jsxYour app itself

Plus every file the agent has written since, and any files you uploaded to the project, which are mirrored into the app at public/assets/<name>. See Use your files in a build.

It is the source, not the built site. You get the code the agent edits, not the compiled output that gets published. Running npm run build reproduces that output.

Four things are deliberately absent:

  • node_modules. Standard for any source download. npm install fetches them.
  • Your app secrets. See the caution below.
  • Data your app collected. Form submissions and counters live in your Onplana workspace, not in the code. See Collect form submissions.
  • A lockfile. package.json pins its direct dependencies to exact versions, so you get the same React and Vite the app was built against. Transitive dependencies resolve fresh at install time, as they would for any project without a committed lockfile.

You need Node 18 or newer.

  1. Unzip the download and open the folder in a terminal.

  2. Install the dependencies:

    Terminal window
    npm install
  3. Start the dev server:

    Terminal window
    npm run dev

    Your app opens at http://localhost:5173.

  4. To produce the files you would upload to any static host:

    Terminal window
    npm run build

    The result lands in dist/.

Because the output is plain static files, any static host will serve it. If you would rather keep Onplana hosting it on an address you own, see Serve your app on your own domain.

If you take the app somewhere else, supply those values yourself in whatever the new host uses for configuration. Any code the agent wrote that reads a secret will expect one to be present.

This is worth understanding rather than working around, so read How your published app and its data are kept safe before pasting a key into a file to make a local run work. A key hardcoded in your source is readable by anyone who visits the published app, and Onplana blocks a publish outright when it finds a live payment key.

Downloading the source needs full control of the app: its creator, a colleague you gave full control to, or an Owner or Admin in the workspace.

Someone with read-only access cannot download the code. They can open the app and use it, which is the point of read-only sharing, but the editable source is not part of that. See Share an app with your teammates for the difference between the two levels.