Skip to content

Feature Request: WebAssembly SpiceDB Backend for authzed-node #247

@karlismelderis-mckinsey

Description

@karlismelderis-mckinsey

Some background

You have already invested to compile SpiceDB in WebAssembly for your playground UI.

We are currently using SpiceDB and authzed-node package in our projects and face challenges with testing authorization logic against a real SpiceDB instance.
A lot of testing needs to happen as e2e tests when code is already merged and deployed.
Starting up spiceDB container is not possible in our current testing infrastructure.

Inspiration

The PostgreSQL ecosystem has successfully addressed this challenge with PGlite, which provides a fully functional PostgreSQL database using WebAssembly.
Adopting pg-lite in our tests offered several advantages:

Performance: Fast startup and execution without external dependencies

Reliability: Catches integration bugs that mocks cannot detect

Simplicity: No need for separate container orchestration

Fidelity: Testing against actual database behavior rather than mocked interfaces

Proposal

I would like to hear if you are interested and willing to reuse same wasm packages and create a package that could serve as a backend or as a replacement for authzed-node. This would enable developers to run SpiceDB directly within their test processes.

This feature would significantly improve our ability to test authorization logic in environments where spinning up external services is not practical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions