S9pk Package Creation

I have Claude throwing it’s hands up in the air

Stop fighting the Start9 build toolchain — it’s changed too many times. The clean solution is much simpler. "The real fix** — the dashboard now works on Start9 Pages without any build system at all:

I have build an html dashboard and I’m trying to fix CORS limits direct fetch to run properly over Tor on my start9 OS. The page works fine with Start9Pages but I’d like to sideload directly so as to fight the CORS-safe mempool endpoints.

Claude

The real solution for Start9/Tor is completely different from fighting CORS — the right architecture is a server-side proxy. The nginx container running on Start9 can proxy all API calls server-side, which means no browser CORS at all. The browser talks to your own Start9 nginx, which forwards requests to mempool.space from the server. Server-to-server calls are never subject to CORS.

So I have one problem: start-cli:

The error - start-cli package
error: ‘start-cli package’ requires a subcommand but one was not provided
[subcommands: action, attach, backup, cancel-install, host, install, installed-version, list, logs, rebuild, restart, set-outbound-gateway, start, stats, stop, uninstall, help]

Usage: start-cli package

For more information, try ‘–help’.
make: *** [btc-dashboard.s9pk] Error 2

What is the sub-command to build or create the s9pk file?

Is this intended for StartOS 0.4.0?

3.5.1

That might be my mistake. I have wrong compiler?

Yes, I think start-cli is only for 0.4.0. For 0.3.5.1 I always used the start-sdk. The docs are here. Might be good to point Claude to them and have it distill the important details to a document that it can reference.

Anyway, the specific command is “start-sdk pack” (though typically that is built into your makefile, and you just run “make” to build the .s9pk).

Thank you sir. After correcting my error I got the thing working properly.

Like I said the reason I wanted to sideload was to overcome the CORS-safe functions when running in Pages as http or in local mode. Sideload fixed that and now the functions work properly with https

Fulll page example of what 'm working on

1 Like