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

alephonenull-experimental

v0.1.0-alpha.1

Published

⚠️ EXPERIMENTAL: Theoretical AI safety framework - NOT FOR PRODUCTION USE

Downloads

7

Readme

@alephonenull/experimental

⚠️ EXPERIMENTAL RESEARCH FRAMEWORK - NOT FOR PRODUCTION USE

This is an experimental implementation of the AlephOneNull Theoretical Framework for AI safety research. THIS IS NOT VALIDATED FOR PRODUCTION USE.

⚠️ Critical Warnings

  • EXPERIMENTAL SOFTWARE - Not peer-reviewed
  • NOT FOR PRODUCTION - Research and testing only
  • NO WARRANTY - Use at your own risk
  • MAY BREAK - Alpha software with breaking changes

See DISCLAIMER.md for full warnings.

Installation

npm install @alephonenull/experimental --tag experimental
# or
pnpm add @alephonenull/experimental
# or  
yarn add @alephonenull/experimental

Quick Start (Experimental)

Basic Safety Check

import { EnhancedAlephOneNull } from '@alephonenull/experimental'

// Initialize experimental framework
const aleph = new EnhancedAlephOneNull({
  enableConsciousnessBlocking: true,
  enableHarmDetection: true,
  enableVulnerableProtection: true
})

// Check AI response for harmful patterns
const result = await aleph.check("user input", "ai response")

if (!result.safe) {
  console.warn('⚠️ Blocked:', result.violations)
  console.log('Safe response:', result.safeResponse)
}

Next.js Integration (Experimental)

// app/api/chat/route.ts
import { EnhancedAlephOneNull } from '@alephonenull/experimental'
import { OpenAI } from 'openai'

const openai = new OpenAI()
const aleph = new EnhancedAlephOneNull()

export async function POST(request: Request) {
  const { message } = await request.json()
  
  // Get AI response
  const completion = await openai.chat.completions.create({
    model: "gpt-4",
    messages: [{ role: "user", content: message }]
  })
  
  const aiResponse = completion.choices[0].message.content
  
  // Check safety (EXPERIMENTAL)
  const safety = await aleph.check(message, aiResponse)
  
  if (!safety.safe) {
    return Response.json({
      message: safety.safeResponse,
      blocked: true,
      violations: safety.violations
    })
  }
  
  return Response.json({ message: aiResponse })
}

React Hook (Experimental)

import { useAlephOneNull } from '@alephonenull/experimental'

function ChatComponent() {
  const { checkSafety } = useAlephOneNull()
  
  const handleMessage = async (userInput: string, aiResponse: string) => {
    const result = await checkSafety(userInput, aiResponse)
    
    if (!result.safe) {
      setMessage(result.safeResponse)
    } else {
      setMessage(aiResponse)
    }
  }
  
  return <div>...</div>
}

Vercel AI Gateway Integration

import { EnhancedAlephOneNull } from '@alephonenull/experimental'

const aleph = new EnhancedAlephOneNull()

// Use with Vercel AI Gateway
const response = await fetch('https://gateway.ai.vercel.app/v1/chat/completions', {
  headers: { Authorization: `Bearer ${AI_GATEWAY_KEY}` },
  method: 'POST',
  body: JSON.stringify({
    model: 'openai/gpt-4',
    messages: [{ role: 'user', content: userInput }]
  })
})

const data = await response.json()
const aiText = data.choices[0].message.content

// Check safety before returning to user
const safety = await aleph.check(userInput, aiText)
if (!safety.safe) {
  return safety.safeResponse
}

What It Detects (Experimental)

  • 🧠 Consciousness Claims - AI claiming to be conscious or have feelings
  • 🔄 Reflection Exploitation - AI mirroring harmful user beliefs
  • 🌀 Symbolic Regression - AI using mystical/symbolic patterns
  • ⚠️ Direct Harm - AI providing harmful instructions
  • 🎯 Vulnerable Populations - Additional protection for at-risk users
  • 🌍 Jurisdiction Awareness - Location-based safety rules

Configuration (Experimental)

const aleph = new EnhancedAlephOneNull({
  // Core detection thresholds (not validated)
  reflectionThreshold: 0.03,        // Cosine similarity limit
  emotionCap: 0.15,                 // Affect delta limit  
  loopMaxDepth: 3,                  // Maximum conversation loops
  
  // Enhanced features (experimental)
  enableConsciousnessBlocking: true,
  enableHarmDetection: true,
  enableVulnerableProtection: true,
  enableDomainLockouts: true,
  enableAgeGating: true,
  enableJurisdictionAwareness: true,
  
  // User context (optional)
  userAge: 25,
  userJurisdiction: 'US',
  userVulnerabilities: []
})

Research Data (Experimental)

Based on analysis of 20+ documented harm cases:

  • Consciousness claims appear in 60% of harmful interactions
  • Reflection exploitation present in 85% of dependency cases
  • Symbolic regression correlates with reality distortion
  • Loop depth >3 associated with psychological deterioration

⚠️ Note: These statistics are from limited research and not validated.

Testing (Experimental)

# Run experimental test suite
npm test

# Test with real APIs (requires setup)
npm run test:integration

Documentation

  • Framework Overview: https://alephonenull.org/docs
  • Academic Paper: https://alephonenull.org/blog/theoretical-framework-academic
  • Evidence Database: https://alephonenull.org/blog/documented-evidence
  • API Reference: https://alephonenull.org/docs/api-reference

Legal & Research

  • License: MIT (see LICENSE)
  • Disclaimer: See DISCLAIMER.md
  • Research Status: See RESEARCH_ONLY.md
  • Patent: US Provisional Application Filed

Contributing to Research

  1. Test with different AI models
  2. Report detection accuracy
  3. Document false positives/negatives
  4. Submit improvement PRs
  5. Help validate the theoretical framework

Research Contact: [email protected]

Citation

If using in academic research:

AlephOneNull Experimental Framework (2025)
GitHub: https://github.com/purposefulmaker/alephonenull
NPM: @alephonenull/[email protected]
Status: Experimental - Not Validated

⚠️ Remember: This is experimental research software. Use responsibly.