@iminds/vfs-client
v0.4.0
Published
Remote-first consumer client for the inf-minds virtual filesystem worker
Readme
@iminds/vfs-client
Remote-first consumer SDK for the canonical VFS worker app.
Purpose
Use this package when you want typed programmatic access to:
- library listing
- structured path operations
- search routes
vfs ...command execution over HTTP
Example
import { createVfsClient } from '@iminds/vfs-client';
const client = createVfsClient({
baseUrl: 'https://vfs.example.workers.dev',
getAuthToken: async () => process.env.VFS_TOKEN,
defaultOrganizationSlug: 'acme',
});
await client.mkdir({ path: '/docs' });
await client.writeFile({ path: '/docs/readme.txt', content: 'hello' });