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 Pro 3.0.0 released

Inverse Pro 3.0 turns the Pro packages into a service: one Docker image that takes withdrawal and cancellation declarations from any shop, keeps them in a tamper-evident ledger, mails the receipt, runs the case inbox, reminds you before refund deadlines and watches your pages. A WooCommerce plugin uses it. Nothing from 2.x breaks, and we explain why it is still a major version.

Inverse
Release

Inverse 0.8.0 released

Inverse gets a WordPress plugin with a settings page, and the links and both forms are now checked with axe in the tests. Inverse Pro adds the evidence dossier as a PDF, one ledger per client for agencies, and time stamp anchors on a schedule.

Inverse
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