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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ach-auth

v0.1.1

Published

ACH AUTH — Node.js projeleri için hazir Auth mekanizması (setup, migrate, seed, start, test)

Readme

🔐 ACH AUTH

ACH AUTH, Node.js projelerinde tek satır entegrasyon ile kullanılabilen bir Authentication & Authorization çözümüdür.
Kurulum sihirbazı, otomatik DB migration, demo kullanıcı seed, bağımsız AUTH servis başlatma ve test runner özellikleriyle gelir.


🚀 Özellikler

  • Kurulum Sihirbazı.env yoksa seni yönlendirir, varsa otomatik yükler.
  • DB Migration → Verdiğin SQL scriptlerini sırasıyla çalıştırır (AUTH + Log yapıları).
  • Demo SeedUsers tablosuna 10 onaylı demo kullanıcı ekler.
  • AUTH Servisi → Bağımsız porttan çalışan Node.js AUTH app’i (npm start) otomatik çalıştırır.
  • Test Runneraxios ile AUTH servisinin endpointlerini test eder, loglar.
  • Proje Bağımsız → Her Node.js projesinde aynı mekanizma ile yeniden kullanılabilir.

📦 Kurulum

npm i -g ACH-auth

Repo içinde local test için:

git clone https://github.com/PoyrazAlkan65/ACHAUTH.git
cd ACH-auth
npm install

⚙️ Kullanım

0. Setup (Kurulum sihirbazı)

ACH-auth setup

.env dosyası yoksa DB bilgilerini sorar. Varsa mevcut değerleri otomatik okur.

1. Migration (SQL scriptleri çalıştırma)

ACH-auth migrate

sql/ klasöründeki dosyalarını sırayla çalıştırır.

2. Demo Kullanıcı Seed

ACH-auth seed-demo

Users tablosuna 10 onaylı demo kullanıcı ekler.

3. AUTH Servisini Başlat

ACH-auth start-auth

.env içinde tanımlı AUTH_APP_PATH altındaki Node.js AUTH uygulamasını npm start ile başlatır.

4. Test Runner

ACH-auth test-auth

MAIN_PORT değerini .env’den okur. Kendi test runner portunu MAIN_PORT + 1000 olarak açar. axios ile endpointleri test eder, istek/cevap loglarını gösterir.

Tek Komutta Tümü

ACH-auth install-all

Sırasıyla: setup → migrate → seed → start-auth → test-auth

📂 .env Örneği

DB_SERVER=localhost
DB_DATABASE=YourDb
DB_USER=sa
DB_PASSWORD=Password123!
DB_ENCRYPT=false
DB_TRUST_SERVER_CERT=true

AUTH_APP_PATH=../your-auth-app
AUTH_ENV_FILE=.env

MAIN_PORT=3000

SEED_TABLE=Users
SEED_EMAIL_COL=Email
SEED_PASSHASH_COL=PasswordHash
SEED_APPROVED_COL=IsApproved

🛠️ Geliştirme ve Kendime Notlar

  • sql/ klasörüne AUTH ve LOG tablolarını tanımlayan .sql dosyaları eklenecek.
  • İstediğin şemayı CLI otomatik sırayla çalıştırır. Şema keşfi eklenecek
  • seed.js içindeki demo kullanıcı bilgilerini ihtiyacına göre özelleştirilmeli. esnek hale getir.
  • test-auth.js içinde test edilen endpointleri kendi AUTH app’indeki rotalara göre değişiklik göstersin.