Skip to content

emindera/examples

Repository files navigation

Emindera Comparison Demo

This repo now has one demo, not a pile of sample apps.

It compares two paths against the same local GraphQL server and the same database-backed resolver delay:

  1. Plain GraphQL + database-backed server: the message appears only after the server responds.
  2. Emindera plugin + the same GraphQL API: the message appears immediately, queues locally, then reconciles with the server response.

Emindera is a React/React Native plugin. It is not a framework, not a scaffold, and not a replacement for your database or GraphQL API.

Run

Keep the SDK repo next to this repo:

/Users/kabirsekhon/Documents/Coding/
  emindera/
  examples/

The demo uses link:../emindera/packages/* dependencies. That keeps it pointed at your local SDK source without turning the examples repo into part of the SDK workspace.

Then:

pnpm install
pnpm dev

Open the Vite URL, usually http://localhost:5173.

The GraphQL server runs at http://localhost:4100/graphql.

By default the server uses an in-memory store so the demo opens immediately.

To run the same demo against local Postgres:

pnpm db:up
pnpm dev:postgres

dev:postgres uses DATABASE_URL=postgres://emindera:emindera@localhost:5432/emindera_demo. The server creates the tiny demo tables automatically.

Verify

pnpm lint
pnpm typecheck
pnpm build

License

MIT.

About

Sample Emindera-based apps showing common patterns like instant DMs, comments, notes, offline queues, and GraphQL subscriptions.

Resources

License

Stars

Watchers

Forks

Contributors