electric-sql / pglite

Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno
https://electric-sql.com
Apache License 2.0
4.77k stars 81 forks source link

chore: Add license #26

Closed samwillis closed 4 months ago

samwillis commented 4 months ago

Closes #14

thruflo commented 4 months ago

One thing on dual licensing is it potentially introduces complexity if you don’t know what it means. Also for tooling that relies on parsing the license file.

I’d suggest we have a straight Apache 2.0 license file, as normal. Then add a sibling LICENSE_alt or POSTGRES_LICENSE file and then have a section in the readme that says this is Apache licensed and also dual licensed under the Postgres license. You can choose which you prefer.

Or if all this is over the top because Apache is very permissive, we could just drop the dual idea and just Apache license this repo and Postgres license the WASM repo.