diff --git a/FOOTER.md b/FOOTER.md index 132a12c..4131aa6 100644 --- a/FOOTER.md +++ b/FOOTER.md @@ -1,26 +1,64 @@ -## Development +## Education and Tutorials -### Setup + 1. πŸš€ [Quickstart: Getting Up and Running](https://constructive.io/learn/quickstart) +Get started with modular databases in minutes. Install prerequisites and deploy your first module. -1. Clone the repository: + 2. πŸ“¦ [Modular PostgreSQL Development with Database Packages](https://constructive.io/learn/modular-postgres) +Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules. -```bash -git clone https://github.com/constructive-io/decryption.git -``` + 3. ✏️ [Authoring Database Changes](https://constructive.io/learn/authoring-database-changes) +Master the workflow for adding, organizing, and managing database changes with pgpm. -2. Install dependencies: + 4. πŸ§ͺ [End-to-End PostgreSQL Testing with TypeScript](https://constructive.io/learn/e2e-postgres-testing) +Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation. -```bash -cd decryption -pnpm install -pnpm build -``` + 5. ⚑ [Supabase Testing](https://constructive.io/learn/supabase) +Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts. + + 6. πŸ’§ [Drizzle ORM Testing](https://constructive.io/learn/drizzle-testing) +Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement. + + 7. πŸ”§ [Troubleshooting](https://constructive.io/learn/troubleshooting) +Common issues and solutions for pgpm, PostgreSQL, and testing. + +## Related Constructive Tooling + +### πŸ“¦ Package Management -3. Test the package of interest: +* [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **πŸ–₯️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages. + +### πŸ§ͺ Testing + +* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **πŸ“Š Isolated testing environments** with per-test transaction rollbacksβ€”ideal for integration tests, complex migrations, and RLS simulation. +* [pglite-test](https://github.com/constructive-io/constructive/tree/main/postgres/pglite-test): **πŸͺΆ Drop-in pgsql-test replacement backed by PGlite** β€” in-process Postgres, no server required, instance-per-suite isolation. +* [pgsql-seed](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-seed): **🌱 PostgreSQL seeding utilities** for CSV, JSON, SQL data loading, and pgpm deployment. +* [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **πŸ§ͺ Supabase-native test harness** preconfigured for the local Supabase stackβ€”per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready. +* [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **πŸ” Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts. +* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/postgres/pg-query-context): **πŸ”’ Session context injection** to add session-local context (e.g., `SET LOCAL`) into queriesβ€”ideal for setting `role`, `jwt.claims`, and other session settings. + +### 🧠 Parsing & AST + +* [pgsql-parser](https://www.npmjs.com/package/pgsql-parser): **πŸ”„ SQL conversion engine** that interprets and converts PostgreSQL syntax. +* [libpg-query-node](https://www.npmjs.com/package/libpg-query): **πŸŒ‰ Node.js bindings** for `libpg_query`, converting SQL into parse trees. +* [pg-proto-parser](https://www.npmjs.com/package/pg-proto-parser): **πŸ“¦ Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums. +* [@pgsql/enums](https://www.npmjs.com/package/@pgsql/enums): **🏷️ TypeScript enums** for PostgreSQL AST for safe and ergonomic parsing logic. +* [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): **πŸ“ Type definitions** for PostgreSQL AST nodes in TypeScript. +* [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): **πŸ› οΈ AST utilities** for constructing and transforming PostgreSQL syntax trees. + +### πŸ“š Documentation & Skills + +* [constructive-skills](https://github.com/constructive-io/constructive-skills): **πŸ“– Platform documentation and AI agent skills** β€” feature catalog, blueprint reference, SDK guides (i18n, billing, limits, events, uploads, security, entities, search, AI), and deployment guides. + +Install skills for AI coding agents: ```bash -cd packages/ -pnpm test:watch +# All platform skills (security, blueprints, codegen, billing, etc.) +npx skills add constructive-io/constructive-skills + +# Individual repo skills (pgpm, safegres, testing, CLI, search, etc.) +npx skills add constructive-io/constructive --skill pgpm +npx skills add constructive-io/constructive --skill safegres +npx skills add constructive-io/constructive --skill constructive-testing ``` ## Credits @@ -31,4 +69,4 @@ pnpm test:watch AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. \ No newline at end of file +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/accounts/README.md b/packages/accounts/README.md index 7b2cebb..7219dae 100644 --- a/packages/accounts/README.md +++ b/packages/accounts/README.md @@ -128,13 +128,3 @@ const accounts = new AccountManager(vault, { ## License MIT - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/cli/README.md b/packages/cli/README.md index b8d9b26..6bfb868 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -302,13 +302,3 @@ Add `--json` for machine-readable output, and check exit codes: Managed with [appstash](https://www.npmjs.com/package/appstash), and shared byte-for-byte with the desktop app, so both tools see the same vaults. - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/core/README.md b/packages/core/README.md index bbddbe7..0fcb9fd 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -195,13 +195,3 @@ import { sealWithKey, openWithKey } from '@decryption/core'; const sealed = sealWithKey(key, plaintext, 'context'); const opened = openWithKey(key, sealed, 'context'); ``` - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/cosmology-compat/README.md b/packages/cosmology-compat/README.md index 602a2b8..09b4ab3 100644 --- a/packages/cosmology-compat/README.md +++ b/packages/cosmology-compat/README.md @@ -63,13 +63,3 @@ cryptoJsDecrypt(base64Ciphertext, passphrase); // throws instead of returning '' The test suite encrypts with the real `crypto-js` package and decrypts with this one (and vice versa), so the byte compatibility claim is checked on every run rather than assumed. - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/decryption/README.md b/packages/decryption/README.md index 71af6ba..21af726 100644 --- a/packages/decryption/README.md +++ b/packages/decryption/README.md @@ -29,13 +29,3 @@ dcrypt --help See the [`@decryption/cli` README](https://github.com/constructive-io/decryption/tree/main/packages/cli) for every command, and the [repository](https://github.com/constructive-io/decryption) for the libraries underneath. - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/decryption/package.json b/packages/decryption/package.json index 9338390..1fc1bea 100644 --- a/packages/decryption/package.json +++ b/packages/decryption/package.json @@ -7,7 +7,8 @@ "homepage": "https://github.com/constructive-io/decryption", "license": "MIT", "publishConfig": { - "access": "public" + "access": "public", + "directory": "dist" }, "repository": { "type": "git", @@ -19,6 +20,10 @@ "files": [ "index.js" ], + "scripts": { + "prepublishOnly": "npm run build", + "build": "makage assets && makage copy index.js dist --flat" + }, "keywords": [ "cli", "dcrypt", @@ -32,6 +37,9 @@ "dependencies": { "@decryption/cli": "workspace:*" }, + "devDependencies": { + "makage": "0.3.0" + }, "bin": { "dcrypt": "index.js" } diff --git a/packages/keys/README.md b/packages/keys/README.md index fa2c54d..ddc06d6 100644 --- a/packages/keys/README.md +++ b/packages/keys/README.md @@ -103,13 +103,3 @@ party; only the underlying `@noble` primitives have. See Removing a recipient means dropping their stanza and re-sealing under a fresh file key β€” see [`@decryption/secrets`](../secrets), which does the rekeying for you. - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/secrets/README.md b/packages/secrets/README.md index e7efa62..a7327ab 100644 --- a/packages/secrets/README.md +++ b/packages/secrets/README.md @@ -107,13 +107,3 @@ const restored = recoverIdentity([shares[0], shares[3], shares[4]]); Add `breakGlass` to the vault as an ordinary recipient and give one share to each custodian. Shamir is for this case only β€” see [`@decryption/shamir`](../shamir). - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/shamir/README.md b/packages/shamir/README.md index b1fdb07..ea5817e 100644 --- a/packages/shamir/README.md +++ b/packages/shamir/README.md @@ -81,13 +81,3 @@ be added or removed without a new ceremony. GF(256) multiplication uses log/exp tables, which are not constant time. Splitting and combining run locally on data the caller already holds, never as a remote oracle, so this is not a practical exposure. - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/vault/README.md b/packages/vault/README.md index cba04ee..d063ebf 100644 --- a/packages/vault/README.md +++ b/packages/vault/README.md @@ -41,13 +41,3 @@ const item = await vault.createItem('login', 'GitHub'); await vault.setField(item.id, 'password', 'password', 's3cret'); await vault.lock(); // saves, closes, zeroes key material ``` - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/wallet/README.md b/packages/wallet/README.md index 5433b8f..b33424f 100644 --- a/packages/wallet/README.md +++ b/packages/wallet/README.md @@ -92,13 +92,3 @@ try { key.fill(0); } ``` - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/packages/webauthn/README.md b/packages/webauthn/README.md index 29bd3fa..7e15636 100644 --- a/packages/webauthn/README.md +++ b/packages/webauthn/README.md @@ -78,13 +78,3 @@ requires hardware attestation should reject it, which is the correct outcome. ## License MIT - -## Credits - -**πŸ›  Built by the [Constructive](https://constructive.io) team β€” creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).** - -## Disclaimer - -AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. - -No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 99dc446..46ddc91 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -372,6 +372,11 @@ importers: "@decryption/cli": specifier: workspace:* version: link:../cli/dist + devDependencies: + makage: + specifier: 0.3.0 + version: 0.3.0 + publishDirectory: dist packages/hashes: devDependencies: