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

@meeseeks-sdk/core

v0.5.0

Published

LLM quality gate — executes, scores, and retries AI-generated code until it meets your threshold

Readme

@meeseeks-sdk/core

An LLM quality gate that learns. Executes AI-generated code in a sandbox, scores it 0–10, retries until the threshold is met — and remembers what worked.

npm version License: MIT

Install

npm install @meeseeks-sdk/core

Quick Start

import { MeeseeksSDK, BedrockAdapter } from '@meeseeks-sdk/core';

const sdk = new MeeseeksSDK({
  adapter: new BedrockAdapter({ region: 'us-east-1' }),
  storage: '.meeseeks/memory.db',           // SQLite — learns over time
  projectContext: 'TypeScript + Express + PostgreSQL',
});

const result = await sdk.run({
  task: 'Write fetchWithRetry(url) with exponential backoff and cache.',
  mode: 'balanced',  // fast | balanced | quality
});

console.log(result.code);    // code that scored ≥ 8
console.log(result.score);   // final score (0-10)
console.log(result.passed);  // true if score >= minScore

How it works

sdk.run(task)
  ↓
Look up proven strategies from memory (SQLite)
  ↓
LLM generates code — with proven strategies injected as context
  ↓
Sandbox executes it (Node.js child process, isolated)
  ↓
Score 0-10: correctness + efficiency + cache
  ↓
passed? → save to memory → return result
failed? → feed score back to LLM → retry

After each successful run, the strategy is saved to SQLite. Next time a similar task arrives, the SDK injects what worked before — improving the first attempt without extra iterations.

Modes

| Mode | Iterations | When to use | |------|-----------|-------------| | fast | 1 | Known tasks — uses memory to get it right on the first try | | balanced | 3 | Default — good quality/cost balance | | quality | 5 | Critical code — maximum verification |

Avoiding judge bias

By default, the same LLM generates and judges free-mode responses. Pass a judgeAdapter to use a different model:

const sdk = new MeeseeksSDK({
  adapter: new BedrockAdapter({ region: 'us-east-1' }),   // generates
  judgeAdapter: new OpenAIAdapter({ apiKey: '...' }),      // judges
  storage: '.meeseeks/memory.db',
});

For JS harnesses (js-api, js-lrucache, etc.) this is not needed — the sandbox executes and scores objectively.

Supported LLMs

import { ClaudeAdapter, OpenAIAdapter, OllamaAdapter, BedrockAdapter } from '@meeseeks-sdk/core';

new ClaudeAdapter({ apiKey: '...' })
new OpenAIAdapter({ apiKey: '...' })
new OllamaAdapter({ baseUrl: 'http://localhost:11434' })  // 100% local — no data leaves your machine
new BedrockAdapter({ region: 'us-east-1' })

Knowledge Inheritance (Embeddings)

Enable semantic search to find strategies for tasks that don't exactly match previous ones:

import { MeeseeksSDK, BedrockAdapter, BedrockEmbeddingAdapter } from '@meeseeks-sdk/core';

const sdk = new MeeseeksSDK({
  adapter: new BedrockAdapter({ region: 'us-east-1' }),
  embeddingAdapter: new BedrockEmbeddingAdapter({ region: 'us-east-1' }),
  storage: '.meeseeks/memory.db',
});
// Now "write an HTTP client with retry" matches "fetchWithRetry" strategies

Without embeddingAdapter, the SDK falls back to exact pattern matching (still works for known patterns like fetchWithRetry, LRUCache, etc.).

Built-in Harnesses

| id | Task | Scored by | |----|------|-----------| | js-api | fetchWithRetry(url) — retry + cache | Sandbox (objective) | | js-lrucache | LRUCache class | Sandbox (objective) | | js-ratelimiter | rateLimiter(fn, limit, windowMs) | Sandbox (objective) | | js-circuitbreaker | circuitBreaker(fn, threshold, resetMs) | Sandbox (objective) | | js-promisepool | runWithLimit(tasks, concurrency) | Sandbox (objective) | | js-tictactoe | getBestMove(board) — minimax | Sandbox (objective) | | js-maze | findPath(grid, start, end) — BFS | Sandbox (objective) | | js-sudoku | solveSudoku(grid) | Sandbox (objective) | | js-wordle | guessWord(feedback) | Sandbox (objective) | | free | Any task, any language | LLM-as-judge |

The free harness works for Python, Dart/Flutter, SQL, analysis, architecture decisions — anything. The judge evaluates quality using projectContext if provided.

Custom Harness

import { registerPlugin, MeeseeksSDK, BedrockAdapter } from '@meeseeks-sdk/core';

registerPlugin({
  id: 'my-task',
  name: 'My Task',
  description: 'Tests my custom function',
  exampleTask: 'Write myFn(x) that returns x * 2',
  usesEnvironments: false,
  isAlgorithmic: false,
  isFreeMode: false,
  baselineCode: 'module.exports = (x) => x;',
  promptInstructions: 'module.exports = function myFn(x) { ... }',
  buildHarness: (code) => `
    ${code}
    const fn = module.exports;
    const result = fn(21);
    const score = result === 42 ? 10 : 0;
    console.log(JSON.stringify({ score, requests: 0, retries: 0, time_ms: 0, success: score === 10, env: 'test' }));
    process.exit(0);
  `,
});

API

new MeeseeksSDK(config)

| Option | Type | Default | Description | |--------|------|---------|-------------| | adapter | LLMAdapter | required | LLM for generating responses | | judgeAdapter | LLMAdapter | same as adapter | Separate LLM for judging (avoids bias) | | storage | string | '.meeseeks/memory.db' | SQLite path | | embeddingAdapter | EmbeddingAdapter | — | Enables semantic strategy search | | projectContext | string | — | Stack description injected into judge | | minScore | number | 8 | Passing threshold |

sdk.run(opts)

| Option | Type | Default | Description | |--------|------|---------|-------------| | task | string | required | Task description | | mode | 'fast'\|'balanced'\|'quality' | 'balanced' | Iteration count | | harness | string | auto-detected | Plugin id | | minScore | number | from config | Override threshold | | projectContext | string | from config | Override context | | onIteration | function | — | Progress callback |

Returns { code, score, passed, iterations, history }.

Low-level: qualityGate(opts)

The MeeseeksSDK class is built on top of qualityGate(). Use it directly for custom orchestration without memory.

Breaking changes from v0.1.0

  • Plugin js-free renamed to free
  • QualityGateResult now includes passed: boolean
  • QualityGateOptions now accepts mode, judgeAdapter, projectContext, memory

Hive Mode (coming soon)

Connect to a Meeseeks Hive instance for shared team knowledge and pgvector semantic search:

// Coming in v0.3.0
const sdk = new MeeseeksSDK({
  adapter: new BedrockAdapter({ region: 'us-east-1' }),
  hiveUrl: process.env.MEESEEKS_HIVE_URL,
});
// Knowledge shared across all developers on your team

License

MIT