diff --git a/demo/jersey/README.md b/demo/jersey/README.md
new file mode 100644
index 0000000..7b3b1d5
--- /dev/null
+++ b/demo/jersey/README.md
@@ -0,0 +1,31 @@
+# Jersey demo
+
+A runnable consumer of `problem-details-java` **as released on Maven Central** (version pinned in `pom.xml` via `problem-details.version`). It lives outside the library's Maven reactor on purpose: it builds and runs exactly like a user project. Grizzly serves HTTP on port 8081, so both demos can run side by side.
+
+## Run it
+
+```sh
+cd demo/jersey
+../../mvnw compile exec:java
+```
+
+Endpoints, one per case:
+
+| Endpoint | Case |
+|-------------------------|-------------------------------------------------------------|
+| `GET /demo/ok` | Control case, no problem |
+| `GET /demo/credit` | Returned problem, negotiates `problem+json` / `problem+xml` |
+| `GET /demo/fail` | Thrown problem → mapper answers JSON even for XML Accept |
+| `GET /demo/boom` | No status member → 500 with a faithful body |
+| `GET /demo/validate` | Validation-style `errors` extension, negotiable |
+| `GET /demo/types` | The registry itself, as JSON |
+
+## Verify it
+
+With the app running, in another shell:
+
+```sh
+./verify.sh
+```
+
+The script curls every endpoint (both media types where negotiable) and asserts HTTP status, content type, and key body fields. It exits non-zero on the first mismatch.
diff --git a/demo/jersey/pom.xml b/demo/jersey/pom.xml
new file mode 100644
index 0000000..13fd861
--- /dev/null
+++ b/demo/jersey/pom.xml
@@ -0,0 +1,76 @@
+
+
+ 4.0.0
+
+
+ com.example
+ problem-details-jersey-demo
+ 0.1.0
+ jar
+
+ problem-details-jersey-demo
+ Demo Jersey/Grizzly app consuming problem-details-java from Maven Central.
+
+
+ 17
+ UTF-8
+ 0.1.0
+ 4.0.2
+
+
+
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ 2.22
+
+
+ org.glassfish.jersey.containers
+ jersey-container-grizzly2-http
+ ${jersey.version}
+
+
+ org.glassfish.jersey.inject
+ jersey-hk2
+ ${jersey.version}
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${jersey.version}
+
+
+ io.github.othmaneataallah
+ problem-details-core
+ ${problem-details.version}
+
+
+ io.github.othmaneataallah
+ problem-details-registry
+ ${problem-details.version}
+
+
+ io.github.othmaneataallah
+ problem-details-jaxrs
+ ${problem-details.version}
+
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 3.5.0
+
+ com.example.jerseydemo.Main
+
+
+
+
+
+
diff --git a/demo/jersey/src/main/java/com/example/jerseydemo/DemoResource.java b/demo/jersey/src/main/java/com/example/jerseydemo/DemoResource.java
new file mode 100644
index 0000000..0a0c99e
--- /dev/null
+++ b/demo/jersey/src/main/java/com/example/jerseydemo/DemoResource.java
@@ -0,0 +1,114 @@
+package com.example.jerseydemo;
+
+import static io.github.othmaneataallah.problemdetails.jackson.ProblemMediaTypes.PROBLEM_JSON;
+import static io.github.othmaneataallah.problemdetails.xml.ProblemMediaTypes.PROBLEM_XML;
+
+import io.github.othmaneataallah.problemdetails.core.ProblemDetail;
+import io.github.othmaneataallah.problemdetails.core.ProblemDetailException;
+import io.github.othmaneataallah.problemdetails.core.ProblemDetailKey;
+import io.github.othmaneataallah.problemdetails.registry.ProblemType;
+import io.github.othmaneataallah.problemdetails.registry.ProblemTypeRegistry;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.Response;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+/** One endpoint per case, so every behavior is curl-verifiable (see verify.sh). */
+@Path("demo")
+public class DemoResource {
+
+ private static final ProblemDetailKey BALANCE =
+ ProblemDetailKey.of("balance", Integer.class);
+
+ private final ProblemTypeRegistry registry = new ProblemTypeRegistry();
+
+ public DemoResource() {
+ registry.register(
+ ProblemType.of(
+ "https://example.com/probs/out-of-credit",
+ "You do not have enough credit.",
+ 403,
+ "https://example.com/docs/probs"));
+ }
+
+ private ProblemDetail outOfCredit() {
+ ProblemType type =
+ registry.lookup("https://example.com/probs/out-of-credit").orElseThrow();
+ return ProblemDetail.builder()
+ .type(type.getType())
+ .title(type.getTitle())
+ .status(type.getRecommendedStatus())
+ .detail("Your current balance is 30, but that costs 50.")
+ .extension(BALANCE, 30)
+ .build();
+ }
+
+ /** Control case: no problem involved. */
+ @GET
+ @Path("ok")
+ @Produces("text/plain")
+ public String ok() {
+ return "ok";
+ }
+
+ /** Returned directly: serializes via the writer with content negotiation. */
+ @GET
+ @Path("credit")
+ @Produces({PROBLEM_JSON, PROBLEM_XML})
+ public ProblemDetail credit() {
+ return outOfCredit();
+ }
+
+ /** Thrown: the mapper answers JSON regardless of Accept. */
+ @GET
+ @Path("fail")
+ @Produces({PROBLEM_JSON, PROBLEM_XML})
+ public String fail() {
+ throw new ProblemDetailException(outOfCredit());
+ }
+
+ /** No status member: the mapper answers 500 with a faithful body. */
+ @GET
+ @Path("boom")
+ @Produces({PROBLEM_JSON, PROBLEM_XML})
+ public String boom() {
+ throw new ProblemDetailException(ProblemDetail.builder().title("Boom.").build());
+ }
+
+ /** Validation-style extension, negotiable like everything returned. */
+ @GET
+ @Path("validate")
+ @Produces({PROBLEM_JSON, PROBLEM_XML})
+ public ProblemDetail validate() {
+ Map error = new LinkedHashMap<>();
+ error.put("detail", "must be a positive integer");
+ error.put("pointer", "#/age");
+ return ProblemDetail.builder()
+ .type("https://example.net/validation-error")
+ .title("Your request is not valid.")
+ .status(422)
+ .extension(ProblemDetailKey.of("errors", Object.class), List.of(error))
+ .build();
+ }
+
+ /** Exposes the registry itself, ordered by type URI. */
+ @GET
+ @Path("types")
+ @Produces(PROBLEM_JSON)
+ public Response types() {
+ List