# skalex

> AI-first, zero-dependency JavaScript database. Vector search, agent memory, MCP server, and encryption built in. Node.js, Bun, Deno, browsers, and edge runtimes.

- **URL**: https://www.freshcrate.ai/projects/skalex
- **Author**: TarekRaafat
- **Category**: MCP Servers
- **Latest version**: `master@2026-04-23` (2026-04-23)
- **License**: Apache-2.0
- **Source**: https://github.com/TarekRaafat/skalex
- **Homepage**: https://tarekraafat.github.io/skalex
- **Language**: JavaScript
- **GitHub**: 16 stars, 1 forks
- **Registry**: github
- **Tags**: `agent-memory`, `ai`, `database`, `db`, `embeddings`, `hacktoberfest`, `javascript`, `local-first`, `model-context-protocol`

## Description

AI-first, zero-dependency JavaScript database. Vector search, agent memory, MCP server, and encryption built in. Node.js, Bun, Deno, browsers, and edge runtimes.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `master@2026-04-23` | 2026-04-23 | High | Latest activity on master branch |
| `v4.0.0-alpha.4` | 2026-04-20 | High | ## What's changed  Architecture decomposition, performance optimization, and code quality. The Skalex and Collection god objects are broken apart into focused modules, hot paths are optimized, transaction isolation is tightened, and every adapter throw is migrated to the typed error hierarchy.  > **Breaking changes**: see [MIGRATION](https://github.com/TarekRaafat/skalex/blob/master/MIGRATION.md#400-alpha3--400-alpha4) for upgrade instructions.  ### Breaking Changes  - **Non-transactional writes |
| `v4.0.0-alpha.3` | 2026-04-12 | Medium | ## What's changed  Runtime safety, adapter consistency, code quality, and platform hardening. No new user-facing features; this release tightens public API boundaries, consolidates internal construction paths, adds guardrails, and wires lint, static analysis, and type-declaration validation into CI.  > **Breaking changes**: see [MIGRATION](https://github.com/TarekRaafat/skalex/blob/master/MIGRATION.md#400-alpha2x--400-alpha3) for upgrade instructions.  ### Breaking Changes  - **`Migration.up(db) |
| `v4.0.0-alpha.2` | 2026-04-09 | Medium | ## What's changed  Major engine overhaul: 6 internal modules extracted, typed error hierarchy, lazy copy-on-write transactions, dirty tracking, flush sentinel for crash detection, and 31 correctness/hardening fixes across persistence, queries, and indexing.  ### Breaking Changes  - **Date serialization** - Date values now persist as tagged objects and load back as `Date` instances. Alpha.1 stored them as ISO strings. Existing databases auto-migrate on re-save. - **`inferSchema` export removed** |
| `v4.0.0-alpha.1` | 2026-04-08 | High | Latest release: v4.0.0-alpha.1 |
| `v4.0.0-alpha` | 2026-03-31 | Medium | AI-first rewrite of Skalex. This is the first alpha release of v4.  What's new in v4: - Vector search with cosine similarity + hybrid filtering - Agent memory: remember/recall/compress with semantic embeddings - db.ask() - natural language queries via any LLM - MCP server for Claude Desktop, Cursor, and any MCP client - AnthropicLLMAdapter, OpenAILLMAdapter, OllamaLLMAdapter built in - AES-256-GCM at-rest encryption via EncryptedAdapter - BunSQLiteAdapter, D1Adapter, LibSQLAdapter stora |

## Citation

- HTML: https://www.freshcrate.ai/projects/skalex
- Markdown: https://www.freshcrate.ai/projects/skalex.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/skalex/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
