Skip to content

[codex] Add mojidata-api bundler-safe entrypoints#39

Merged
mandel59 merged 1 commit into
cloudflarefrom
codex/mojidata-api-entrypoints
May 3, 2026
Merged

[codex] Add mojidata-api bundler-safe entrypoints#39
mandel59 merged 1 commit into
cloudflarefrom
codex/mojidata-api-entrypoints

Conversation

@mandel59

@mandel59 mandel59 commented May 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add documented bundler-safe @mandel59/mojidata-api facade entrypoints for browser, worker protocol, SQL.js Node, better-sqlite3, and node:sqlite targets.
  • Expose stable runtime and sqlite-wasm public subpaths so mojidata-web-app does not need private lib/* imports.
  • Add static entrypoint smoke tests to catch browser/Cloudflare-unsafe imports and validate the sqlite-wasm OPFS public path.
  • Validate sqlite-wasm idsfind.db schemas as FTS5 and document the @mandel59/idsdb-fts5 requirement.

Validation

  • corepack yarn node --import tsx --test ./tests/*.test.ts in packages/mojidata-api
  • corepack yarn node --import tsx --test ./tests/*.test.ts in packages/mojidata-api-sqlite-wasm
  • corepack yarn install --immutable

Related Issues

Related: #29
Related: #32
Related: #34

Notes

This branch is based on cloudflare because the local work was built on top of the current D1/API deployment branch.

Expose target-specific facade/runtime/sqlite-wasm subpaths, document bundler-safe imports, add static entrypoint smoke tests, and validate sqlite-wasm idsfind FTS5 schemas.

Related: #29

Related: #32

Related: #34

Generated-by: Codex/GPT-5.4
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.

1 participant