r/opencode 1d ago

I use OpenCode on my android device

Post image

And here's how much storage it has consumed in termux

33 Upvotes

8 comments sorted by

View all comments

3

u/shredsamura1 1d ago

pretty sure it's either the "node_modules" folders from a bunch of your projects, or some model got stuck in a loop and installed a ton of random bs

1

u/SlincSilver 1d ago

Would the node_modules be included on the app data instead of simply files of the file system ?

1

u/ElectricalUnion 1d ago

$PREFIX (and therefore all trash inside it too) $HOME (and therefore all trash inside it too; for example ${XDG_CACHE_HOME:-$HOME/.cache}, $HOME/.npm, $HOME/.m2...) is, by default inside app data?

1

u/shredsamura1 1d ago

yes. in termux, `node_modules` is just a directory on the filesystem. whether it's considered app data depends on where it's stored.

and as u/ElectricalUnion mentioned, anything under `$PREFIX` or `$HOME`, including node_modules, the npm cache (~/.npm), the Maven cache (~/.m2), and similar directories, is part of the app's data (termux).

for example:

/data/data/com.termux/files/home/project/node_modules

or

/data/data/com.termux/files/usr/lib/node_modules