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

atmosphere.ts

v0.1.0

Published

Uma lib para bots de Discord em TypeScript, feita pra ser simples de ler e escrever sem perder poder. Criada por Mth Soft.

Readme

🌤️ atmosphere.ts

Uma lib pra criar bots de Discord em TypeScript — do mesmo jeito que discord.js e discord.py fazem, só que escrita do zero, pensada pra ser fácil de ler e de escrever sem perder poder. Feita por Mth Soft.

import { Client, EmbedBuilder } from "atmosphere.ts";

const client = new Client({ intents: ["Guilds", "GuildMessages"] });

client.on("ready", () => console.log(`conectado como ${client.user?.tag}`));

client.on("messageCreate", (message) => {
  if (message.content === "!oi") {
    const embed = new EmbedBuilder().setTitle("Oi! 👋").setColor("Azul");
    message.reply({ embeds: [embed] });
  }
});

client.login(process.env.DISCORD_TOKEN!);

Por quê

Porque é sua. atmosphere.ts existe pra ser a base de bots seus, escrita com as suas mãos, do jeito que você gosta de programar — não uma cópia de outra lib, mas algo que você entende de ponta a ponta porque construiu.

O que ela suporta

  • Gateway (WebSocket) com heartbeat, reconexão e resume automáticos
  • REST com fila de rate limit por rota e retry automático em 429
  • Comandos slash completos: opções, subcomandos, grupos, choices, autocomplete, permissões padrão
  • Embeds (EmbedBuilder)
  • Componentes clássicos: botões, todos os tipos de select menu, modais/text inputs
  • Components V2: Container, Section, TextDisplay, Thumbnail, MediaGallery, File, Separator
  • Interações: reply/deferReply/editReply/followUp, respostas efêmeras, update/deferUpdate em componentes
  • Cache com managers: Guild, Channel, User, GuildMember, Role, Message — com get/fetch consistentes em todo lugar
  • Permissões e Intents como bitfields tipados (bigint por baixo)
  • Coletores de mensagem e de interação
  • Carregador de comandos por pasta (loadCommandFiles)

Instalação

npm install atmosphere.ts

(Enquanto não estiver publicada no NPM, veja o capítulo 13 da documentação — ou instale local com npm install file:../caminho/pra/atmosphere.ts.)

Documentação completa

Tem uma aula inteira sobre a lib em docs/ — do zero até publicar seu próprio pacote no NPM:

  1. Introdução
  2. Primeiros passos
  3. Seu primeiro bot
  4. Eventos
  5. Comandos slash
  6. Embeds
  7. Componentes clássicos
  8. Components V2
  9. Interações a fundo
  10. Cache e managers
  11. Permissões e Intents
  12. Coletores
  13. Publicando no NPM
  14. Referência rápida

Exemplos prontos

Desenvolvendo a lib em si

npm install     # instala ws, typescript e as @types
npm run build   # compila src/ -> dist/
npm run watch   # compila em modo watch

Estrutura

src/
├── client/       Client — o maestro
├── gateway/       conexão WebSocket
├── rest/           chamadas HTTP + rate limit
├── structures/      User, Guild, Message, Channel, interações...
├── managers/          cache de cada estrutura
├── builders/            Embed, Button, SlashCommand, Components V2...
├── handlers/               loader de comandos, coletores
├── util/                    BitField, Collection, Constants, Colors
└── types/                    tipos crus da API do Discord

Licença

MIT — veja LICENSE.


Esse é o começo da jornada de bots do Mth Soft. 🌤️