# Farcaster- Hubble node **Published by:** [GLCstaked](https://paragraph.com/@glcstaked/) **Published on:** 2023-03-08 **URL:** https://paragraph.com/@glcstaked/farcaster-hubble-node ## Content Run a hubble client for Farcaster protocolFarcasterA sufficiently decentralized social networkFarcasterFarcaster is a decentralized social network, as an open protocol that can support many clients, just like email. Users will always have the freedom to move their social identity between applications, and developers will always have the freedom to build applications with new features on the network. What is a Hub: A Hub is a node in the Farcaster network that synchronizes the delta graph. It's similar to a blockchain node but with a different consensus mechanism. Hubs get deltas from clients broadcast them to other hubs over a peer-to-peer protocol. They listen to updates from the Ethereum blockchain and update the identity state of the delta graph as needed. Hubble is a Typescript implementation of a Farcaster Hub.GitHub - farcasterxyz/hub-monorepo: Implementation of the Farcaster Hub specification and supporting libraries for building applications on FarcasterImplementation of the Farcaster Hub specification and supporting libraries for building applications on Farcaster - farcasterxyz/hub-monorepohttps://github.comHardware Requirements 2 vCPUs, 8GB RAM, 15GB SSD storage (1TB+ for local eth node). OS: Ubuntu 20.04 (focal)1. Setup - Install dependenciesUpdate Systemsudo apt update && sudo apt upgrade -y Install Gitsudo apt install curl git -y Install NodeInstall NVM (node version manager) NVM or Node version manager, is an open-source manager for node.js and makes it easy to switch between versions of node and NPM. node version 18+ is required for hubble. Install Node version managercurl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.bashrc Use NVM to install Node.jsInstall a specific version of node and use that versionnvm install 18.7.0 nvm use 18.7.0 Install YarnImport the repository’s GPG key and add the Yarn APT repository to your systemcurl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list update the package list, and install Yarn.sudo apt update sudo apt install --no-install-recommends yarn the flag --no-install-recommends skips node.js install Confirm Installation with yarn --versionInstall FlatbuffersFlatbuffers is a cross platform serialization library for a variety of programming languages Install via Apt (compatible with 20.04 focal)sudo apt update sudo apt install -y flatbuffers-compiler Alternative methods can be found here.2. Get an Ethereum EndpointFarcaster is currently on Goerli Ethereum testnet before migrating to Ethereum mainnet. The hub requires a connection to an Ethereum endpoint, this is a node running software that can verify blocks and transaction data on the Ethereum blockchain.Method 1: Use a third party serviceYou can use a trusted service such as the following, these are hosted services Infura / AlchemyMethod 2: Run your own NodeConfigure Manually: Step by Step instructions here on how to set up and Ethereum node with nethermind and nimbus clients https://mirror.xyz/0xf3bF9DDbA413825E5DdF92D15b09C2AbD8d190dd/vBUNwP0gBiNFq5S_qKNaa_a3rqET5h6FebbM9M-KR0w The RPC port will need to be exposed, you might need to port forward on your router and open 8545 on ufw firewall settings, sudo ufw allow 8545 To connect to the node locally http://:8545 To connect to the node running on the same device as hubble, https://localhost:8545 Easy Setup: some options for easy one click Ethereum node deploymentsStereum | Ethereum Node Setup & ManagementStereum makes Ethereum validator and node setup easy, secure, and fast. Manage your Ethereum infrastructure with one tool.https://stereum.netGitHub - NethermindEth/sedge: A one-click setup tool for PoS network/chain validators and nodes.A one-click setup tool for PoS network/chain validators and nodes. - NethermindEth/sedgehttps://github.com3. Run HubbleClone Hubble repositorygit clone https://github.com/farcasterxyz/hubble.git Build Hubblecd hubble && yarn install && yarn build Successful build should look like thisCreate a network identity for your Hub Move to Directorycd app/hubble yarn identity create Start the Hub to boot up the Hub, where eth-rpc-url points to the Goerli node's RPCyarn start -e <eth-rpc-url> ## Publication Information - [GLCstaked](https://paragraph.com/@glcstaked/): Publication homepage - [All Posts](https://paragraph.com/@glcstaked/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@glcstaked): Subscribe to updates