@filepack/core
v0.1.1
Published
Framework-neutral Filepack lifecycle and adapter contracts
Readme
@filepack/core
Framework-neutral Filepack lifecycle, route, authorization, error, and adapter contracts.
pnpm add @filepack/coreThe main export provides createFilepack, route, the Web-standard handler,
stable errors, domain types, and the ObjectStorage and FileRecordStore
contracts. Adapter packages use runner-neutral contract cases from
@filepack/core/testing.
const filepack = createFilepack({ routes, storage, records });
const handler = filepack.handler({
auth: async (request) => getActor(request),
});
export const { GET, POST, PUT, DELETE } = handler;See the repository
API reference
for the approved direct lifecycle surface. Terminal attempts use trusted
zero-byte object markers and durable settlement cleanup. M5A adds safe upload
status, bounded part preparation and receipt recording, server-side multipart
completion, and durable abort cleanup. @filepack/client provides browser
pause, cancellation, progress, and multipart reload recovery.
