├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── TemplateFunctions.md ├── alternatives.md ├── contributing.md ├── mocha.opts ├── mutability.md ├── package.json ├── protocol.md ├── roadmap.md ├── security.md ├── setup.sql ├── src ├── authentication.ts ├── authentication │ ├── authentication-device.ts │ ├── authentication-impl.ts │ ├── authentication-noop.ts │ ├── authentication-offline.ts │ ├── authentication-session.ts │ ├── authentication-test.ts │ └── authentication.ts ├── authorization │ ├── authorizaation-noop.ts │ ├── authorization-engine.ts │ ├── authorization-keystore.ts │ ├── authorization.ts │ └── authorizationRules.ts ├── cache.ts ├── fact │ ├── hash.ts │ ├── hydrate.ts │ └── sorter.ts ├── feed │ ├── feed-impl.ts │ ├── feed.ts │ └── service.ts ├── fork │ ├── persistent-fork.ts │ ├── serialize.ts │ └── transient-fork.ts ├── http │ ├── fetch.ts │ ├── messages.ts │ ├── node-http.ts │ ├── router.ts │ ├── web-client.ts │ └── xhr.ts ├── index.ts ├── indexeddb │ ├── driver.ts │ ├── indexeddb-login-store.ts │ ├── indexeddb-queue.ts │ └── indexeddb-store.ts ├── jinaga-browser.ts ├── jinaga-server.ts ├── jinaga-test.ts ├── jinaga.ts ├── keystore.ts ├── memory │ ├── debug.ts │ ├── inspector.ts │ ├── memory-keystore.ts │ └── memory-store.ts ├── postgres │ ├── connection.ts │ ├── edge-record.ts │ ├── postgres-keystore.ts │ ├── postgres-store.ts │ └── sql.ts ├── query │ ├── descriptive-string.ts │ ├── inverter.ts │ ├── query-parser.ts │ ├── query.ts │ └── steps.ts ├── storage.ts ├── util │ ├── fn.ts │ ├── obj.ts │ ├── primise.ts │ ├── serviceRunner.ts │ └── trace.ts └── watch │ ├── model-map.ts │ ├── watch-impl.ts │ ├── watch-noop.ts │ └── watch.ts ├── synchronization.md ├── test ├── authorization │ ├── authorizationExampleSpec.ts │ ├── authorizationRulesSpec.ts │ └── authorizationSpec.ts ├── fact │ ├── factSpec.ts │ └── sorterSpec.ts ├── memory │ └── memorySpec.ts ├── postgres │ └── postgresSpec.ts ├── query │ ├── inverseSpec.ts │ └── parserSpec.ts ├── service │ ├── serviceRunnerSpec.ts │ └── serviceSpec.ts ├── storage │ └── referenceSpec.ts ├── typeSpec.ts └── watch │ ├── mock-authentication.ts │ ├── modelMapSpec.ts │ ├── nestedWatchSpec.ts │ └── watchSpec.ts ├── tsconfig.json ├── types └── keypair.d.ts └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/README.md -------------------------------------------------------------------------------- /TemplateFunctions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/TemplateFunctions.md -------------------------------------------------------------------------------- /alternatives.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/alternatives.md -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/contributing.md -------------------------------------------------------------------------------- /mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/mocha.opts -------------------------------------------------------------------------------- /mutability.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/mutability.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/package.json -------------------------------------------------------------------------------- /protocol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/protocol.md -------------------------------------------------------------------------------- /roadmap.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/roadmap.md -------------------------------------------------------------------------------- /security.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/security.md -------------------------------------------------------------------------------- /setup.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/setup.sql -------------------------------------------------------------------------------- /src/authentication.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication.ts -------------------------------------------------------------------------------- /src/authentication/authentication-device.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication-device.ts -------------------------------------------------------------------------------- /src/authentication/authentication-impl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication-impl.ts -------------------------------------------------------------------------------- /src/authentication/authentication-noop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication-noop.ts -------------------------------------------------------------------------------- /src/authentication/authentication-offline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication-offline.ts -------------------------------------------------------------------------------- /src/authentication/authentication-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication-session.ts -------------------------------------------------------------------------------- /src/authentication/authentication-test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication-test.ts -------------------------------------------------------------------------------- /src/authentication/authentication.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authentication/authentication.ts -------------------------------------------------------------------------------- /src/authorization/authorizaation-noop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authorization/authorizaation-noop.ts -------------------------------------------------------------------------------- /src/authorization/authorization-engine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authorization/authorization-engine.ts -------------------------------------------------------------------------------- /src/authorization/authorization-keystore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authorization/authorization-keystore.ts -------------------------------------------------------------------------------- /src/authorization/authorization.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authorization/authorization.ts -------------------------------------------------------------------------------- /src/authorization/authorizationRules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/authorization/authorizationRules.ts -------------------------------------------------------------------------------- /src/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/cache.ts -------------------------------------------------------------------------------- /src/fact/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/fact/hash.ts -------------------------------------------------------------------------------- /src/fact/hydrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/fact/hydrate.ts -------------------------------------------------------------------------------- /src/fact/sorter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/fact/sorter.ts -------------------------------------------------------------------------------- /src/feed/feed-impl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/feed/feed-impl.ts -------------------------------------------------------------------------------- /src/feed/feed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/feed/feed.ts -------------------------------------------------------------------------------- /src/feed/service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/feed/service.ts -------------------------------------------------------------------------------- /src/fork/persistent-fork.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/fork/persistent-fork.ts -------------------------------------------------------------------------------- /src/fork/serialize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/fork/serialize.ts -------------------------------------------------------------------------------- /src/fork/transient-fork.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/fork/transient-fork.ts -------------------------------------------------------------------------------- /src/http/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/http/fetch.ts -------------------------------------------------------------------------------- /src/http/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/http/messages.ts -------------------------------------------------------------------------------- /src/http/node-http.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/http/node-http.ts -------------------------------------------------------------------------------- /src/http/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/http/router.ts -------------------------------------------------------------------------------- /src/http/web-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/http/web-client.ts -------------------------------------------------------------------------------- /src/http/xhr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/http/xhr.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/indexeddb/driver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/indexeddb/driver.ts -------------------------------------------------------------------------------- /src/indexeddb/indexeddb-login-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/indexeddb/indexeddb-login-store.ts -------------------------------------------------------------------------------- /src/indexeddb/indexeddb-queue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/indexeddb/indexeddb-queue.ts -------------------------------------------------------------------------------- /src/indexeddb/indexeddb-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/indexeddb/indexeddb-store.ts -------------------------------------------------------------------------------- /src/jinaga-browser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/jinaga-browser.ts -------------------------------------------------------------------------------- /src/jinaga-server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/jinaga-server.ts -------------------------------------------------------------------------------- /src/jinaga-test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/jinaga-test.ts -------------------------------------------------------------------------------- /src/jinaga.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/jinaga.ts -------------------------------------------------------------------------------- /src/keystore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/keystore.ts -------------------------------------------------------------------------------- /src/memory/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/memory/debug.ts -------------------------------------------------------------------------------- /src/memory/inspector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/memory/inspector.ts -------------------------------------------------------------------------------- /src/memory/memory-keystore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/memory/memory-keystore.ts -------------------------------------------------------------------------------- /src/memory/memory-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/memory/memory-store.ts -------------------------------------------------------------------------------- /src/postgres/connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/postgres/connection.ts -------------------------------------------------------------------------------- /src/postgres/edge-record.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/postgres/edge-record.ts -------------------------------------------------------------------------------- /src/postgres/postgres-keystore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/postgres/postgres-keystore.ts -------------------------------------------------------------------------------- /src/postgres/postgres-store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/postgres/postgres-store.ts -------------------------------------------------------------------------------- /src/postgres/sql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/postgres/sql.ts -------------------------------------------------------------------------------- /src/query/descriptive-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/query/descriptive-string.ts -------------------------------------------------------------------------------- /src/query/inverter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/query/inverter.ts -------------------------------------------------------------------------------- /src/query/query-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/query/query-parser.ts -------------------------------------------------------------------------------- /src/query/query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/query/query.ts -------------------------------------------------------------------------------- /src/query/steps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/query/steps.ts -------------------------------------------------------------------------------- /src/storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/storage.ts -------------------------------------------------------------------------------- /src/util/fn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/util/fn.ts -------------------------------------------------------------------------------- /src/util/obj.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/util/obj.ts -------------------------------------------------------------------------------- /src/util/primise.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/util/primise.ts -------------------------------------------------------------------------------- /src/util/serviceRunner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/util/serviceRunner.ts -------------------------------------------------------------------------------- /src/util/trace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/util/trace.ts -------------------------------------------------------------------------------- /src/watch/model-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/watch/model-map.ts -------------------------------------------------------------------------------- /src/watch/watch-impl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/watch/watch-impl.ts -------------------------------------------------------------------------------- /src/watch/watch-noop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/watch/watch-noop.ts -------------------------------------------------------------------------------- /src/watch/watch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/src/watch/watch.ts -------------------------------------------------------------------------------- /synchronization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/synchronization.md -------------------------------------------------------------------------------- /test/authorization/authorizationExampleSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/authorization/authorizationExampleSpec.ts -------------------------------------------------------------------------------- /test/authorization/authorizationRulesSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/authorization/authorizationRulesSpec.ts -------------------------------------------------------------------------------- /test/authorization/authorizationSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/authorization/authorizationSpec.ts -------------------------------------------------------------------------------- /test/fact/factSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/fact/factSpec.ts -------------------------------------------------------------------------------- /test/fact/sorterSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/fact/sorterSpec.ts -------------------------------------------------------------------------------- /test/memory/memorySpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/memory/memorySpec.ts -------------------------------------------------------------------------------- /test/postgres/postgresSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/postgres/postgresSpec.ts -------------------------------------------------------------------------------- /test/query/inverseSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/query/inverseSpec.ts -------------------------------------------------------------------------------- /test/query/parserSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/query/parserSpec.ts -------------------------------------------------------------------------------- /test/service/serviceRunnerSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/service/serviceRunnerSpec.ts -------------------------------------------------------------------------------- /test/service/serviceSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/service/serviceSpec.ts -------------------------------------------------------------------------------- /test/storage/referenceSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/storage/referenceSpec.ts -------------------------------------------------------------------------------- /test/typeSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/typeSpec.ts -------------------------------------------------------------------------------- /test/watch/mock-authentication.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/watch/mock-authentication.ts -------------------------------------------------------------------------------- /test/watch/modelMapSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/watch/modelMapSpec.ts -------------------------------------------------------------------------------- /test/watch/nestedWatchSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/watch/nestedWatchSpec.ts -------------------------------------------------------------------------------- /test/watch/watchSpec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/test/watch/watchSpec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/keypair.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/types/keypair.d.ts -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaellperry/jinaga/HEAD/webpack.config.js --------------------------------------------------------------------------------