npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ricardocb/cerebro-blockchain

v3.0.0

Published

CEREBRO — Blockchain com Smart Contracts em JavaScript, NFTs CBRC-721, Tokens CBRC-20, DEX AMM nativo e Staking

Readme

🧠 CEREBRO Blockchain

A blockchain mais acessível do mundo. Smart Contracts em JavaScript. NFTs nativos. DEX AMM. Staking. Tudo grátis.

GitHub Site Versão QuickSwap Polygonscan DexScreener


✨ O que é o CEREBRO?

CEREBRO é uma blockchain proof-of-work construída do zero em Node.js, com:

| Feature | Ethereum | Solana | CEREBRO | |---------|----------|--------|-------------| | Linguagem de contratos | Solidity | Rust | JavaScript ✓ | | Taxa de gas | $5–$100 | $0.0003 | Grátis ✓ | | DEX nativo | ✗ | ✗ | | | NFT nativo | ✗ | Metaplex | | | Staking nativo | ✗ | ✗ | | | Supply máximo | ∞ | ∞ | 21M CBR |


🚀 Começar em 3 comandos

git clone https://github.com/ricardocbernardi-ship-it/cerebro-blockchain
cd cerebro-blockchain
npm install && node no-completo.js

Abra: http://localhost:3001/explorer.html


🔧 SDK JavaScript

const cerebro = require('./cerebro.js');

// Ver estatísticas da rede
const stats = await cerebro.getStats();
console.log(stats.blocos, 'blocos', stats.supplyTotal, 'CBR');

// Gerar carteira
const { privateKey, publicKey } = await cerebro.gerarCarteira();

// Receber CBR grátis
await cerebro.faucet(publicKey);

// Criar token CBRC-20
await cerebro.deployToken('MeuToken', 'MTK', 1000000, 18, privateKey);

// Mintar NFT CBRC-721
await cerebro.mintNFT('Arte #1', 'Minha arte', '', 'MinhaColecao', privateKey);

// Deploy de smart contract em JavaScript
const code = `
  function votar(candidato) {
    state.votos = state.votos || {};
    state.votos[candidato] = (state.votos[candidato] || 0) + 1;
    emit('Voto', { candidato });
    return state.votos;
  }
`;
const { contractAddress } = await cerebro.deployContrato('Votacao', code, privateKey);

// Trocar tokens no DEX
await cerebro.swap('CBR', 'MTK', 100, privateKey);

// Fazer stake
await cerebro.stake(500, privateKey);

📡 API REST (30+ endpoints)

| Método | Endpoint | Descrição | |--------|----------|-----------| | GET | /api/stats | Estatísticas da rede | | GET | /api/balance/:addr | Saldo CBR | | POST | /api/transfer | Enviar CBR | | POST | /api/mine | Minerar bloco | | POST | /api/faucet | Receber CBR grátis | | POST | /api/token/deploy | Criar token CBRC-20 | | POST | /api/nft/mint | Mintar NFT CBRC-721 | | POST | /api/contract/deploy | Deploy de contrato | | POST | /api/contract/call | Chamar contrato | | POST | /api/swap | Swap no DEX | | POST | /api/stake | Fazer staking | | GET | /api/nfts | Listar todos os NFTs | | GET | /api/contracts | Listar contratos | | GET | /api/pools | Listar pools DEX |


🌐 Interfaces Web Incluídas

  • /explorer.html — Explorer: blocos, transações, NFTs, contratos, DEX em tempo real
  • /wallet.html — Carteira completa: envia CBR, tokens, NFTs, swap, staking
  • /marketplace.html — Marketplace de NFTs CBRC-721
  • /whitepaper.html — Whitepaper técnico v3.0
  • /templates.html — 8 smart contracts prontos (DAO, loteria, escrow, multisig...)

⚙️ Variáveis de Ambiente

PORT=3001          # Porta da API (padrão: 3001)
P2P_PORT=6001      # Porta P2P (padrão: 6001)
DISABLE_P2P=true   # Desativar P2P (para Render.com)
PEERS=             # Peers iniciais separados por vírgula

💡 Templates de Smart Contracts

Prontos para usar em http://localhost:3001/templates.html:

  • 🔐 Vault — Cofre com timelock
  • 🗳️ DAO — Votação descentralizada
  • 🎰 Lottery — Loteria on-chain
  • 🤝 Escrow — Pagamento condicional
  • 🔑 Multisig — Carteira multi-assinatura
  • 📜 DocRegistry — Registro de documentos
  • PointsSystem — Programa de fidelidade
  • ⏱️ ChainTimer — Agendamentos on-chain

💱 Token wCBR — Polygon Mainnet

O token wCBR (Wrapped CEREBRO) está disponível na Polygon Mainnet e pode ser comprado por qualquer pessoa no QuickSwap.

| Item | Valor | |------|-------| | Contrato wCBR | 0x208B65B...69C08 | | Par QuickSwap | 0x4eB7B05...56B2 | | Rede | Polygon Mainnet (Chain ID: 137) | | Supply | 21.000.000 wCBR | | DEX | QuickSwap V2 | | DexTools | Ver gráfico | | GeckoTerminal | Ver pool | | DexScreener | Ver gráfico |


📊 Economia do CBR

  • Supply máximo: 21.000.000 CBR (igual ao Bitcoin)
  • Recompensa inicial: 50 CBR/bloco
  • Halving: a cada 210.000 blocos
  • Consenso: Proof of Work SHA-256
  • Criptografia: secp256k1 (mesmo do Bitcoin/Ethereum)

🚀 Deploy Gratuito (Render.com)

O arquivo render.yaml já está configurado. Acesse render.com, conecte o GitHub e faça deploy com 1 clique. URL permanente: cerebro-blockchain.onrender.com


📄 Licença

MIT — Livre para usar, modificar e distribuir.

Criado por: Ricardo C. Bernardi
Site: https://ricardocbernardi-ship-it.github.io/cerebro-blockchain/
GitHub: https://github.com/ricardocbernardi-ship-it/cerebro-blockchain