Skip to content

Conversation

@pyramation
Copy link
Contributor

No description provided.

Create new appstash package with clean, minimal architecture:

Features:
- Simple API: appstash(tool, options) returns all app directories
- Clean structure: ~/.<tool>/{config,cache,data,logs} + /tmp/<tool>
- Graceful fallback: XDG directories → tmp if home fails
- No throws: Always returns valid paths, never throws errors
- Zero dependencies: Pure Node.js implementation
- Full TypeScript support

API:
- appstash(tool, options): Get all directories for a tool
- ensure(dirs): Create directories if they don't exist
- resolve(dirs, kind, ...parts): Resolve paths within directories

Directory structure:
- Primary: ~/.<tool>/{config,cache,data,logs}
- Fallback: XDG directories (only if home fails)
- Final fallback: /tmp/<tool>

Tests: 17 tests passing
Build: Successful

This is a relocation of @launchql/appdirs from launchql/launchql
to hyperweb-io/dev-utils as a more generic utility package.

Co-Authored-By: Dan Lynch <pyramation@gmail.com>
@pyramation pyramation closed this Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants