open-index/open-npm huggingface dataset:
npm package: @lookscanned/how-to
Description: This is a repository for the how-to-use documentation used in the Look Scanned project, built with [VitePress](https://vitepress.dev/).
Author: lookscanned
Latest version: 2.0.2

# Look Scanned How To

This is a repository for the how-to-use documentation used in the Look Scanned project, built with [VitePress](https://vitepress.dev/).

[![CI](https://github.com/lookscanned/how-to/actions/workflows/ci.yml/badge.svg)](https://github.com/lookscanned/how-to/actions/workflows/ci.yml)

[how-to.lookscanned.io](https://how-to.lookscanned.io)

## Development

```bash
# Install dependencies
pnpm install

# Start dev server
pnpm dev

# Generate PDFs
pnpm run build:pdfs

# Build
pnpm build
```

## How to Add a New Language

1. Add a new markdown file to `docs/how-to-use/{lang-code}.md`
2. Add the language link to `docs/index.md`
3. If the language is RTL (Right-to-Left), add it to the `rtlLangs` array in `.vitepress/theme/Layout.vue`

## License

MIT License
npm package: @looksrare/contracts-exchange-v1
Description: LooksRare exchange smart contracts (v1)
Author: LooksRare
Latest version: 1.4.1

# @looksrare/contracts-exchange-v1

## Description

This project contains all smart contracts used for the current LooksRare exchange ("v1"). This includes:

- core exchange contract
- libraries
- currency manager contract
- execution manager and strategy contracts
- royalty-related contracts
- transfer managers and selector contracts

It also contains a peripheral contract (`OrderValidatorV1`) that is used to verify the validity of (maker) orders.

## Installation

```shell
# Yarn
yarn add @looksrare/contracts-exchange-v1

# NPM
npm install @looksrare/contracts-exchange-v1
```

## NPM package

The NPM package contains the following:

- Solidity smart contracts (_".sol"_)
- ABI files (_".json"_)

## Documentation

The documentation for the exchange smart contracts is available [here](https://docs.looksrare.org/developers/category/exchange-contracts).

## About this repo

### Structure

It is a hybrid [Hardhat](https://hardhat.org/) repo that also requires [Foundry](https://book.getfoundry.sh/index.html) to run Solidity tests powered by the [ds-test library](https://github.com/dapphub/ds-test/).

> To install Foundry, please follow the instructions [here](https://book.getfoundry.sh/getting-started/installation.html).

### Run tests

- TypeScript tests are included in the `test` folder at the root of this repo.
- Solidity tests are included in the `test` folder in the `contracts` folder.

### Example of Foundry/Forge commands

```shell
forge build
forge test
forge test -vv
forge tree
```

### Example of Hardhat commands

```shell
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix
```

## Release

- Create a [Personal access token](https://github.com/settings/tokens/new?scopes=repo&description=release-it) (Don't change the default scope)
- Create an `.env` (copy `.env.template`) and set your GitHub personal access token.
- `yarn release` will run all the checks, build, and publish the package, and publish the GitHub release note.
npm package: @looksrare/contracts-token-staking
Description: LooksRare staking and other token-related smart contracts
Author: LooksRare
Latest version: 1.1.1

# @looksrare/contracts-token-staking

## Description

This project contains all smart contracts used for staking and other token-related contracts (excluding the airdrop contract!).

## Installation

```shell
# Yarn
yarn add @looksrare/contracts-token-staking

# NPM
npm install @looksrare/contracts-token-staking
```

## NPM package

The NPM package contains the following:

- Solidity smart contracts (_".sol"_)
- ABI files (_".json"_)

## Documentation

The documentation for token & staking smart contracts is available [here](https://docs.looksrare.org/developers/category/rewards-contracts).

## About this repo

### Structure

It is a hybrid [Hardhat](https://hardhat.org/) repo that also requires [Foundry](https://book.getfoundry.sh/index.html) to run Solidity tests powered by the [ds-test library](https://github.com/dapphub/ds-test/).

> To install Foundry, please follow the instructions [here](https://book.getfoundry.sh/getting-started/installation.html).

### Run tests

- TypeScript tests are included in the `test` folder at the root of this repo.
- Solidity tests are included in the `test` folder in the `contracts` folder.

### Example of Foundry/Forge commands

```shell
forge build
forge test
forge test -vv
forge tree
```

### Example of Hardhat commands

```shell
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix
```

## Release

- Create a [Personal access token](https://github.com/settings/tokens/new?scopes=repo&description=release-it) (Don't change the default scope)
- Create an `.env` (copy `.env.template`) and set you GitHub personal access token.
- `yarn release` will run all the checks, build, and release the package, and publish the GitHub release note.
npm package: @looksrare/contracts-transfer-manager
Description: LooksRare transfer manager smart contract
Author: LooksRare
Latest version: 0.0.6

# @looksrare/contracts-transfer-manager

[![Tests](https://github.com/LooksRare/contracts-transfer-manager/actions/workflows/tests.yaml/badge.svg)](https://github.com/LooksRare/contracts-transfer-manager/actions/workflows/tests.yaml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## Description

This project contains the smart contracts used for LooksRare's transfer manager. The transfer manager is used to managed ERC-20/ERC-721/ERC-1155 token approvals for LooksRare products such that users do not have to grant token approvals multiple times. They only need to grant approvals to new operators.

## Deployments

| Network          | TransferManager                                                                                                               |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Mainnet          | [0x00000000000ea4af05656C17b90f4d64AdD29e1d](https://etherscan.io/address/0x00000000000ea4af05656C17b90f4d64AdD29e1d)         |
| Arbitrum         | [0x0000000000a3573e1cafe02fe1c3ac48473c9332](https://arbiscan.io/address/0x0000000000a3573e1cafe02fe1c3ac48473c9332)          |
| Base             | [0x0000000000a3573e1cafe02fe1c3ac48473c9332](https://basescan.org/address/0x0000000000a3573e1cafe02fe1c3ac48473c9332)         |
| Arbitrum Sepolia | [0x21D44Cd218895d08bB57E2161A5c8De1CE898165](https://sepolia.arbiscan.io/address/0x21D44Cd218895d08bB57E2161A5c8De1CE898165)  |
| Goerli           | [0xb737687983D6CcB4003A727318B5454864Ecba9d](https://goerli.etherscan.io/address/0xb737687983D6CcB4003A727318B5454864Ecba9d)  |
| Sepolia          | [0x8B43b6C4601FaCF70Fe17D057b3912Bde0206CFB](https://sepolia.etherscan.io/address/0x8B43b6C4601FaCF70Fe17D057b3912Bde0206CFB) |
npm package: @looksrare/sdk
Description: ![GitHub package.json version](https://img.shields.io/github/package-json/v/LooksRare/looksrare-sdk) ![GitHub](https://img.shields.io/github/license/LooksRare/looksrare-sdk) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/L
Latest version: 0.12.1

# @looksrare/sdk

![GitHub package.json version](https://img.shields.io/github/package-json/v/LooksRare/looksrare-sdk) ![GitHub](https://img.shields.io/github/license/LooksRare/looksrare-sdk) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/LooksRare/looksrare-sdk/build.yml?branch=master)

This SDK is a collection of tools used to interact with the LooksRare API and smart contracts.

## Usage

### Install

This package has a peer dependency on [etherjs](https://docs.ethers.io/v5/).

Install with

```bash
yarn add @looksrare/sdk ethers
```

or

```bash
npm install @looksrare/sdk ethers --save
```

### Documentation

Read the [complete documentation](./doc/index.md)

## Dev

### Setup

Install dependencies with `yarn`

- **Dev**: `yarn dev`
- **Build**: `yarn build`

### Release

- Create a [Personal access token](https://github.com/settings/tokens/new?scopes=repo&description=release-it) (Don't change the default scope)
- Create an `.env` (copy `.env.template`) and set you github personal access token.
- `yarn release` will run all the checks, build, and publish the package, and publish the github release note.
npm package: @looksrare/sdk-aggregator
Description: LooksRare aggregator aggregates listings from multiple sources and users can buy these NFTs in one transaction. The aggregator SDK is a JavaScript library to interact with LooksRare's aggregator contract.
Latest version: 1.1.1

# @looksrare/sdk-aggregator

LooksRare aggregator aggregates listings from multiple sources and users can buy these NFTs in one transaction. The aggregator SDK is a JavaScript library to interact with LooksRare's aggregator contract.

## Usage

### Install

This package has a peer dependency on [@looksrare/sdk](https://github.com/LooksRare/looksrare-sdk), [@opensea/seaport-js](https://github.com/ProjectOpenSea/seaport-js), and [ethers](https://github.com/ethers-io/ethers.js/).

`yarn add @looksrare/sdk-aggregator @looksrare/sdk @opensea/seaport-js ethers`

or

`npm install @looksrare/sdk-aggregator @looksrare/sdk @opensea/seaport-js ethers`

### Documentation

Read the [complete documentation](https://github.com/LooksRare/sdk-aggregator/blob/master/doc/index.md)

## Dev

### Setup

Install dependencies with `yarn`

Dev: `yarn dev`
Build: `yarn build`

### Release
Create a personal access token (Don't change the default scope)
Create an `.env` (copy `.env.template`) and set you GitHub personal access token.
`yarn release` will run all the checks, build, and publish the package, and publish the GitHub release note.
npm package: @looksy/next
Description: Autenticação modular para aplicações Next.js com suporte a:
Author: Victor Freire
Latest version: 1.2.7

# @looksy/next

Autenticação modular para aplicações Next.js com suporte a:

- ✅ Contexto React (client side)
- ✅ Server Actions (server side)
- ✅ Rota API dinâmica para callback de autenticação (`/api/auth/[...looksy]/route.ts`)

---

## 📦 Instalação

```bash
npm install @looksy/next
# ou
pnpm add @looksy/next
```

---

## 🧠 Uso do Provider (`LooksyProvider`)

### Envolva o app com o provider

```tsx
// app/layout.tsx

import { LooksyProvider } from "@looksy/next";

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <LooksyProvider>{children}</LooksyProvider>
      </body>
    </html>
  );
}
```

## 🧠 Uso no Client (`@looksy/next` ou `@looksy/next/client`)

### Use `useSession()` nos componentes

```tsx
'use client';

import { useSession } from '@looksy/next' ou import { useSession } from '@looksy/next/client';

export default function Dashboard() {
  const { user, tenant, isLoading, login, signOut } = useSession();

  return (
    <div>
      {isLoading ? 'Carregando...' : `Olá, ${user?.name ?? 'Visitante'}`}
      <button onClick={login}>Entrar</button>
      <button onClick={signOut}>Sair</button>
    </div>
  );
}
```

---

## 🔐 Uso no Server (`@looksy/next/server`)

### Use `useSession()` nos server components:

```ts
"use server";

import { useSession } from "@looksy/next/server";

export default async function Dashboard() {
  const { user, tenant, isLoading, login, signOut } = useSession();

  return (
    <div>
      {isLoading ? "Carregando..." : `Olá, ${user?.name ?? "Visitante"}`}
      <button onClick={login}>Entrar</button>
      <button onClick={signOut}>Sair</button>
    </div>
  );
}
```

---

## 🌐 Rota de Callback (`/api/[...looksy]/route.ts`)

Essa rota trata automaticamente o retorno de autenticação do Looksy Auth:

```ts
// app/api/auth/[...looksy]/route.ts
export * from "@looksy/next/api/handlers";
```

Ela cuida de:

- Coleta do `code` de autorização
- Troca por token
- Armazenamento do token em cookie

---

## ✨ Features

- 🔐 Login, cadastro e logout
- 🍪 Tokens salvos em cookie seguro
- 🚀 Server Actions prontas
- 🧠 Context API com sessão e tenants

---

## 📁 Importações disponíveis

```ts
// Client Side
import { LooksyProvider, useSession } from '@looksy/next' ou '@looksy/next/client';

// Server Side
import { useServerSession, handler } from '@looksy/next/server';

// API callback handler
export * from '@looksy/next/api/handlers';
```

---

## 📝 Licença

MIT © 2025 Victor Freire