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

@horayzen-developers/medoo-js

v1.1.0

Published

A lightweight database library with smart engine inference and robust SQL injection prevention.

Readme

 __  __          _                 _ ____  
|  \/  | ___  __| | ___   ___     | / ___| 
| |\/| |/ _ \/ _` |/ _ \ / _ \ _  | \___ \ 
| |  | |  __/ (_| | (_) | (_) | |_| |___) |
|_|  |_|\___|\__,_|\___/ \___/ \___/|____/

O MedooJS é a forma mais simples, leve e limpa de interagir com bancos de dados em Node.js. Inspirado no aclamado Medoo do PHP, ele elimina a complexidade e o peso dos ORMs tradicionais, permitindo a manipulação de dados usando apenas objetos JavaScript puros.

Desenvolvido para ser agnóstico e seguro por padrão, ele se conecta diretamente ao driver, garantindo proteção total contra SQL Injection sem adicionar peso ao projeto.


Como Funciona?

Esqueça queries gigantescas em formato de texto ou configurações complexas de modelos. O MedooJS reduz o código ao essencial:

import { Medoo } from 'medoojs';
import mysql from 'mysql2/promise';

// Criar uma pool de conexão usando o driver
const pool = mysql.createPool(config)

// Inicialização direta com o tipo do seu banco
const db = new Medoo({ type: 'mysql', exec: pool });

// Buscar um único usuário
const usuario = await db.get('users', '*', { id: 42 });

// Filtrar múltiplos registros com limite
const artigos = await db.select('posts', ['title', 'content'], {
  status: 'published',
  LIMIT: 5
});

// Inserir um novo registro
await db.insert('logs', { acao: 'login', status: 'sucesso' });

// Atualizar dados com segurança
await db.update('products', { preco: 199.90 }, { sku: 'TECL-RGB' });

// Deletar registros de forma direta
await db.delete('sessions', { expirada: 1 });

Suporte para Múltiplos Bancos de Dados

Não importa a infraestrutura. O MedooJS gera a sintaxe exata e segura para o motor escolhido de forma nativa:

  • MySQL e MariaDB
  • PostgreSQL
  • SQLite
  • Microsoft SQL Server (MSSQL)
  • Oracle
  • Sybase

Segurança Transparente

Toda entrada de dados passada pelos objetos é convertida automaticamente em Prepared Statements nativos doq banco. Além disso, os nomes de tabelas e colunas passam por uma camada automática de higienização contra invasores, anulando qualquer tentativa de SQL Injection de forma invisível e sem perda de performance.


Instalação Rápida


npm install @horayzen-developers/medoo-js

Licença

Este projeto está sob a licença MIT.