As I work through implementing Domain (codeberg.org/domain/app) in Kitten (codeberg.org/kitten/app), I’m evolving what an “application” will mean on the Small Web:
codeberg.org/domain/app/issues…
#SmallWeb #domain #kitten #topologicalDecentralisation #web #dev #git #clone #modify #remix
Ryuno-Ki
in reply to Aral Balkan • • •Hm, so git is part of the app.
Since it needs to be available on the Internet, doesn't that create a security risk?
Imagine secrets that got accidentally committed.
With that decentralised nature, how would an upgrade path look like?
What if it requires migrations of any kind?
Aral Balkan
in reply to Ryuno-Ki • • •@RyunoKi Yeah, folks should not commit secrets to git. This applies equally to every publicly-accessible Git repository ever (which, at last count, I believe was several hundred million) ;)
Upgrades are git pulls with npm install being run automatically as necessary if Node modules are used. Migrations are the responsibility of the apps themselves. Kitten apps can run them for the in-process JSDB database (codeberg.org/small-tech/jsdb) at startup from the main.script (entrypoint).
jsdb
Codeberg.orgRyuno-Ki
in reply to Aral Balkan • • •Agree.
Any specific reason why npm (vs yarn or pnpm for example)?
Or just to start somewhere?
Aral Balkan
in reply to Ryuno-Ki • • •Ryuno-Ki
in reply to Aral Balkan • • •Alright.
I remember there was an alternative package manager that used a decentralised repository (P2P even) but I can't recall it's name 😖
Aral Balkan
in reply to Ryuno-Ki • • •Ryuno-Ki
in reply to Aral Balkan • • •Sure.
I wouldn't hold my breath for it, though.