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

scyllinx

v1.0.9

Published

A modern TypeScript ORM for ScyllaDB and SQL databases with Laravel-inspired syntax

Readme

🚀 Quick Start📖 Documentation🤝 Contributing

✨ Overview

ScyllinX is a modern Object-Relational Mapper (ORM) written in TypeScript, designed to provide a simple, expressive, and fluent API for working with databases. Inspired by Laravel Eloquent, it brings familiar Active Record patterns to Node.js while offering compatibility with both ScyllaDB (Cassandra-compatible) and traditional SQL databases.

🔥 Key Features

  • Active Record Syntax – Define models and interact with them directly
  • ScyllaDB-first design with SQL compatibility (SQLite, PostgreSQL, MySQL)
  • 🔗 Rich relationship systemhasOne, hasMany, belongsTo, belongsToMany, and more
  • 🔍 Type-safe Query Builder with full IntelliSense support
  • 🧠 Model lifecycle hooks, casting, and validation
  • 📄 Automatic API Documentation using JSDoc + VitePress
  • 💡 Composable schema definitions and decorators for cleaner models
  • 🧪 Built-in testing support with Jest

📦 Installation

pnpm add scyllinx
# or
npm install scyllinx
# or
yarn add scyllinx

🧪 Supported Databases

| Database | Status | Driver | | ------------------ | ------ | ----------------- | | ScyllaDB/Cassandra| 🧪 Beta | cassandra-driver | | SQLite | 🧪 Beta | better-sqlite3 | | PostgreSQL | 🧪 Beta | pg | | MySQL | 🧪 Beta | mysql2 | | MongoDB | 🧪 Beta | mongodb |

🚀 Quick Start

1. Configure Database Connection

import { ConnectionManager } from 'scyllinx';
import { databaseConfig } from './config/database';

const connectionManager = ConnectionManager.getInstance();
await connectionManager.initialize(databaseConfig);

connectionManager.getConnection().connect();

2. Define Models

import { Model, HasMany } from 'scyllinx';
import { Post } from './models/Post'

interface UserAttributes {
  id: string;
  name: string;
  email: string;
  created_at?: Date;
  updated_at?: Date;
  // Relationships attributes
  posts?: Post[]
}

class User extends Model<UserAttributes> {
  protected static table = 'users';
  protected static primaryKey = 'id';
  protected static fillable = ['name', 'email'];
  protected static timestamps = true;

  // Define relationships
  postsRelation(): HasMany<User, Post> {
    return this.hasMany(Post, 'user_id');
  }
}

// Declaration Merging IMPORTANT
interface User extends UserAttributes {}

export { User, UserAttributes }

3. Create and Query Models

// Create a new user
const user = await User.create({
  name: 'John Doe',
  email: '[email protected]'
});

// Find a user
const foundUser = await User.find('user-id');

// Query with conditions
const activeUsers = await User.query()
  .where('active', true)
  .orderBy('created_at', 'desc')
  .limit(10)
  .get();

// Update a user
await user.update({ name: 'Jane Doe' });

// Delete a user
await user.delete();

📄 Documentation

📘 Full documentation is available at: https://selori.github.io/scyllinx

👨‍💻 Contributing

We welcome contributions of all kinds!

🧷 Guidelines:

  1. Fork and clone the repository
  2. Use pnpm to install dependencies
  3. Use conventional commits (e.g., feat:, fix:)
  4. Run pnpm lint && pnpm test before submitting a PR
  5. Update documentation if applicable

Please see our Contributing Guide for details.

📜 License

MIT © ScyllinX Team – 2025 See LICENSE for full license text.

Developed with ❤️ for modern TypeScript applications