MCPcopy Create free account
hub / github.com/Gin-Quin/gravity

github.com/Gin-Quin/gravity @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
291 symbols 750 edges 276 files ⚖ GPL-3.0 3 documented · 1% ● updated 34d ago★ 1754 open issues

Browse by type

⨍ Functions 218◇ Types & classes 73
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Gravity

Gravity is a full-stack RPC framework that provides end-to-end typesafe APIs and reactive client stores.

👉 Read the documentation

👉 Get started

Development

Use Bun 1.4.4 or newer for the runtime, workspaces, package management, type checking, JavaScript builds, tests, and publishing. Workspace dependencies resolve directly from TypeScript sources, so a clean checkout can be checked before anything is built.

bun install --frozen-lockfile
bun run check
bun run test
bun run build

bun run build checks types before generating artifacts. The shared TypeScript build script uses native bun build to preserve public modules and emits .d.ts files with the TypeScript compiler API running under Bun. Generated files live in each package's package/ directory. See AGENTS.md for the project structure and contribution conventions.

Publishing

Check every package without credentials or publishing:

bun run deploy --dry-run

The dry run uses bun pm pack --dry-run to validate packages locally. It does not require registry credentials.

Publishing is manual from your machine. Sign in to your npm account locally; Bun reads credentials from your user-level .npmrc or NPM_CONFIG_TOKEN. Do not commit credentials. Run these commands from the repository root and complete any browser or OTP prompts Bun presents:

bun pm whoami
bun run deploy

The release script checks, builds, validates, and publishes the ten compiled packages in dependency order. It verifies each publication against the registry. If a release fails partway through, fix the error and rerun bun run deploy: versions already published are skipped. Expired local credentials require signing in again, but there is no per-package trusted publisher setup.

For a subsequent patch release, use bun run deploy --bump. This updates the root and all workspace versions and refreshes bun.lock. Retry a partial release without --bump to keep the same version. Review and commit release changes (for example, 📌 Version 0.9.70), then push them yourself. GitHub Actions does not run checks or publish packages; run the local checks before each release.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 166
Class 71
Method 52
Interface 2

Languages

TypeScript100%

Modules by API surface

packages/gravity-prisma/source/prismaProxy.ts13 symbols
packages/gravity/test/guard.ts11 symbols
packages/gravity/source/cli/commands.ts8 symbols
packages/gravity/test/server/services/foo.ts7 symbols
packages/gravity/source/types/GravityStream.ts7 symbols
packages/gravity/test/server/services/math.ts5 symbols
packages/gravity/source/logs/logger.ts5 symbols
packages/gravity/source/cookie/parseCookies.ts5 symbols
packages/gravity-svelte-kit/test/src/gravity/services/cat.ts5 symbols
packages/gravity-prisma/test/index.ts5 symbols
packages/gravity-nuxt/test/server/services/math.ts5 symbols
packages/gravity-next/test/server/services/math.ts5 symbols

For agents

$ claude mcp add gravity \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page