MCPcopy
hub / github.com/slymnoyann/hey-1

github.com/slymnoyann/hey-1 @main sqlite

repository ↗ · DeepWiki ↗
1,542 symbols 3,590 edges 494 files 0 documented · 0%
README

Hey Monorepo

Requirements

To start working with the Hey monorepo, ensure the following tools are installed:

  • Node.js (v22 or higher) - the JavaScript runtime used in this project.
  • pnpm - the package manager used throughout this repository.
  • Postgres App - the Postgres database used in development.

Installation

This repository uses pnpm workspaces to manage multiple packages within a monorepo structure.

Clone the Repository

git clone git@github.com:bigint/hey.git

Install NVM and pnpm

On macOS, you can install both with Homebrew:

brew install nvm pnpm

Install Node.js

Use nvm to install the required Node.js version:

nvm install

Install Dependencies

From the repository root, install dependencies with pnpm:

pnpm install

Set up Environment Variables

Copy the .env.example file to .env for each package or application that requires configuration:

cp .env.example .env

Repeat this process for all relevant packages and applications in the monorepo.

Environment Variables

The example environment files define the following variables:

API (apps/api/.env.example)

  • PRIVATE_KEY - Private key used to sign Lens requests.
  • SHARED_SECRET - Token for internal API authorization.

Start the Development Server

To run the application in development mode:

pnpm dev

Build

Build the application

Compile the application:

pnpm build

Type-check the project

Validate the codebase with the TypeScript type checker:

pnpm typecheck

Lint and Format Code

Check code quality and formatting with Biome:

pnpm biome:check

Automatically fix linting and formatting issues:

pnpm biome:fix

Maintenance Scripts

Convenient Node.js helpers are in the script directory:

  • node script/clean.mjs removes all node_modules, .next directories, pnpm-lock.yaml, and tsconfig.tsbuildinfo files.
  • node script/update-dependencies.mjs updates packages across the monorepo, removes old installs and commits the changes in a new branch.
  • node script/sort-package-json.mjs sorts all package.json files in the repository.

License

This project is released under the GNU AGPL-3.0 license. See the LICENSE file for details

🌸

Extension points exported contracts — how you extend this code

PossibleTypesResultData (Interface)
(no doc)
possible-types.ts
NewAttachment (Interface)
(no doc)
src/types/misc.d.ts
BookmarksFeedProps (Interface)
(no doc)
src/components/Bookmarks/BookmarksFeed.tsx
PrepareAccountMetadataInput (Interface)
(no doc)
src/helpers/prepareAccountMetadata.ts
TrackedStore (Interface)
(no doc)
src/store/createTrackedStore.ts
PossibleTypesResultData (Interface)
(no doc)
src/indexer/possible-types.ts
ThemeContextValue (Interface)
(no doc)
src/hooks/useTheme.tsx
Emoji (Interface)
(no doc)
src/types/misc.d.ts

Core symbols most depended-on inside this repo

cn
called by 130
src/helpers/cn.ts
errorToast
called by 46
src/helpers/errorToast.ts
getAccount
called by 35
src/helpers/getAccount.ts
handleTransactionLifecycle
called by 35
src/hooks/useTransactionLifecycle.tsx
useTransactionLifecycle
called by 30
src/hooks/useTransactionLifecycle.tsx
createCursorFieldPolicy
called by 26
src/indexer/apollo/cache/createCursorFieldPolicy.ts
stopEventPropagation
called by 24
src/helpers/stopEventPropagation.ts
getAvatar
called by 23
src/helpers/getAvatar.ts

Shape

Function 1,046
Interface 319
Enum 169
Class 4
Method 4

Languages

TypeScript100%

Modules by API surface

src/indexer/generated.ts263 symbols
generated.ts248 symbols
src/helpers/prosekit/rehypeJoinParagraph.ts9 symbols
src/components/Group/Requests/Requests.tsx8 symbols
src/components/Composer/Editor/EditorHandle.tsx8 symbols
src/components/Composer/ChooseThumbnail.tsx8 symbols
src/components/Composer/Actions/CollectSettings/SplitConfig.tsx8 symbols
src/components/Shared/TipMenu.tsx7 symbols
src/components/Shared/Account/TopUp/Transfer.tsx7 symbols
src/components/Group/Members/Actions/Ban.tsx7 symbols
src/components/Composer/NewPublication.tsx7 symbols
src/components/Common/ErrorBoundary.tsx7 symbols

Dependencies from manifests, versioned

@apollo/client3.14.0 · 1×
@biomejs/biome2.3.10 · 1×
@graphql-codegen/cli6.3.1 · 1×
@graphql-codegen/fragment-matcher6.0.1 · 1×
@graphql-codegen/typescript5.0.10 · 1×
@graphql-codegen/typescript-operations5.1.0 · 1×
@graphql-codegen/typescript-react-apollo4.4.2 · 1×
@headlessui/react2.2.9 · 1×
@heroicons/react2.2.0 · 1×
@hookform/resolvers5.2.2 · 1×
@lens-chain/sdk1.0.3 · 1×
@lens-chain/storage-client1.0.6 · 1×

For agents

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

⬇ download graph artifact