Skip to main content
Introducing packages.sweber.dev
All posts
Release1 min read

Inverse 0.6.0 released

Inverse now comes with ready-to-paste integrations for WooCommerce, Shopware, Shopify and WordPress. Inverse Pro's ledger CLI works directly on a SQLite file or a PostgreSQL database.

By Seya Weber

Inverse 0.6.0 is out. @sweberdev/inverse and @sweberdev/inverse-react are on npm under the MIT licence, and the Pro packages are updated on GitHub Packages for licence holders. Nothing breaks: 0.5.0 code keeps working as it is.

What is in 0.6.0

  • Integrations for shop platforms. Most online shops run on a platform, not on React. inverse snippet <platform> --endpoint <url> prints a snippet you can paste into your shop: for WooCommerce (footer links, account area, links under every order, shortcodes for the two forms), Shopware 6 (footer block and Custom HTML elements), Shopify (a theme snippet and Custom Liquid sections), WordPress and plain HTML. The snippets load the script-tag build and post to your handler.
pnpm add @sweberdev/inverse@^0.6.0 @sweberdev/inverse-react@^0.6.0
npx @sweberdev/inverse snippet woocommerce --endpoint https://api.example.com/inverse

The snippets are starting points: test them in your theme, and check the live pages with inverse check <url>. Guide: packages.sweber.dev/inverse/docs/guides/platforms. Try the flows in the demo.

Inverse Pro 0.6.0

  • Ledger CLI on a database. inverse-ledger no longer needs a JSON Lines file. Pass a SQLite file or a PostgreSQL URL and every command (verify, evidence, export, retain, anchor, dossier) works on it, with --table for the table name. SQLite needs Node 22.5 or newer; PostgreSQL needs the pg package.
npx inverse-ledger verify ./data/inverse.db
npx inverse-ledger dossier postgres://user@host/db --html dossier.html

Inverse Pro is available on the package page, from CHF 19 a month.

Package in this post

Inverse

The withdrawal button (§ 356a BGB) and the cancellation button (§ 312k BGB) for Next.js and React, with the two-step flow, the receipt e-mail and a page check.

pnpm add @sweberdev/inverse @sweberdev/inverse-react
View package

Related posts

Release

Inverse 0.3.0 released

The withdrawal and cancellation buttons now work on every website, not only in React: one script tag for WordPress, Shopify themes and static sites. Plus Dutch, Spanish and Polish, and in Inverse Pro a ledger in PostgreSQL or SQLite.

Inverse
Release

Inverse 0.4.0 released

Inverse now catches double clicks, so a declaration sent twice is stored and confirmed once. Inverse Pro adds a weekly team digest of refunds and contract ends that are due, and audit reports that print to PDF and export to CSV.

Inverse
Release

Inverse 0.5.0 released

Inverse can now serve forms on another domain with a cors option, and says which legal state it reflects with legalRevision and inverse legal. Inverse Pro adds RFC 3161 time stamp anchors for the evidence ledger and an evidence dossier you can hand to your lawyer.

Inverse