Skip to content

Latest commit

 

History

History
516 lines (484 loc) · 21.5 KB

README.md

File metadata and controls

516 lines (484 loc) · 21.5 KB


NameKit

Easily integrate rich ENS user journeys into your wallet, app, or game.

MIT License TypeScript Build Status Python Build Status status: alpha

Project Status

🏗️ NameKit is currently an alpha preview under active development. Expect APIs and interfaces to experience breaking changes.

Project Directory

The NameKit monorepo contains multiple packages and apps.

NameKit Packages

             Source Code Summary Deployment        
TypeScript namekit-core
coming soon
Core logic and data types for NameKit. Simplify and enhance your integration with ENS. -
React namekit-react React UI components for building on NameKit. NPM Version
TypeScript ens-utils
deprecated
A collection of utilities for working with ENS. NPM Version
Solidity namekit-contracts Earn revenue for helping ENS grow. Ethereum Mainnet
Ethereum Sepolia

NameGuard Packages

             Source Code Summary Deployment        
TypeScript nameguard-sdk A lightweight JavaScript client for the NameGuard API. NPM Version
TypeScript nameguard-js A JavaScript implementation of NameGuard. Currently implements securePrimaryName with more coming soon. NPM Version
React nameguard-react React UI components for building on NameGuard. NPM Version
CSS ens-webfont A webfont to improve rendering of graphemes that might appear in normalizable ENS names on the web. NPM Version
Python ens-normalize-python Python implementation of ENSIP-15 (ENS Normalize). PyPI Version
Python ens-font-data Metadata for graphemes that may appear in ENS names. -
Python ens-label-inspector Detailed inspection of labels in ENS names. PyPI Version
Python nameguard Identify and prevent malicious use of ENS names. PyPI Version

Apps

             Source Code Summary ✨ Try it out! ✨
TypeScript ens-node
coming soon
Backend for NameKit. Simplify and enhance your integration with ENS. -
Next.js nameguard.io Official website for NameGuard. Preview                 
AWS Lambda api.nameguard.io AWS Lambda deployment of the NameGuard API Preview
Next.js examples.nameguard.io Examples for using nameguard-sdk, nameguard-js, and nameguard-react. Preview
Storybook storybook.namekit.io Explore UI components included in namekit-react, nameguard-react, and ens-webfont. Preview
Mintlify docs.nameguard.io Documentation for all NameGuard packages. Preview
Next.js namehashlabs.org Official website for NameHash Labs. Preview

Local Development

Prerequisites

  • Git
  • Node.js
    • It's recommended you install Node.js through nvm (see link for installation instructions).
    • To ensure you're running the expected version of Node.js run nvm install in the root of the repository (after you clone it).
    • Node.js will automatically install corepack. You should also ensure Corepack is enabled by running corepack enable.
  • pnpm
    • Run npm install -g pnpm or see other installation options.
    • To ensure you're running the expected version of pnpm run corepack use pnpm in the root of the repository (after you clone it).

Getting started

Use git to clone this respository, and install the dependencies using pnpm to run NameKit locally:

  1. git clone https://github.com/namehash/namekit.git
  2. cd namekit
  3. pnpm i
  4. pnpm dev

It's recommended you run pnpm dev in the root of the repository to start all apps, packages, and internal resources to support local development.

Testing

Tests are automatically ran when a new Pull Request is opened. You can run them locally using pnpm test.

If you're developing locally, you can watch changes and run tests automatically using pnpm test:watch.

Continuous Deployment

We use changesets to manage our releases.

Note

If you're making changes to any of the packages/*, you should create a changeset.

  1. Run pnpm changeset
  2. Choose the packages you want to release
  3. Add a summary of the changes
  4. Commit the file
  5. Open a Pull Request
  6. Once the PR is merged, a new or existing Version Packages PR will open.
  7. Merge the Version Packages PR when you're ready to release a new version (of all packages) to NPM, or wait to merge in other changesets first.

Storybook

We use Storybook to preview components across our core packages:

  • @namehash/namekit-react
  • @namehash/nameguard-react
  • @namehash/ens-webfont
  • @namehash/ui
    • These components are mostly internal and not intended for public use, but they are used across our packages.