Repository navigation
Octoload 0.2.0: SQLite and hardened uploads
Octoload 0.2.0 adds SQLite alongside PostgreSQL, with matching Drizzle schemas, CLI scaffolds, and runnable examples. PostgreSQL remains the default; use --dialect sqlite for SQLite.
Upload URLs now bind size and content type and require create-only writes. Ready-only reads, metadata validation, private not-found responses, and database-error redaction strengthen the upload lifecycle. The legacy add command preserves dependency pins and environment values; multipart helpers reject invalid counts before allocation.
Upgrade bucket CORS to allow If-None-Match and Content-Type, and forward every returned upload header. Existing PostgreSQL applications keep their schema; SQLite connections must enable foreign keys.
Verified: 251 tests on Node 24 and 26, package/scaffold checks, PGlite and SQLite constraints/races, and actual private R2 uploads through both databases with byte comparison, replay rejection, and deletion. Browser/session integration, network PostgreSQL pooling, and live S3 parity remain separate deployment checks.
Octoload intentionally checks object metadata without decoding image bytes. Matching-size non-image payloads can be accepted; image decoding remains future work to keep the package lightweight. Credentials are not included in the release.
pnpm add octoload@0.2.0