open-index/open-npm huggingface dataset:
npm package: @stateloom/server
Description: Memory-bounded server scope management for StateLoom. Prevents memory leaks from per-request scopes with LRU eviction and TTL-based expiration.
Latest version: 1.0.0-alpha.0

# @stateloom/server

Memory-bounded server scope management for StateLoom. Prevents memory leaks from per-request scopes with LRU eviction and TTL-based expiration.

## Install

```bash
pnpm add @stateloom/server
```

## Quick Start

```typescript
import { createServerScope } from '@stateloom/server';

const scopes = createServerScope({
  maxEntries: 10_000,
  ttl: 30 * 60 * 1000, // 30 minutes
  onEvict: (id, scope) => scope.dispose(),
});

// Per-request handler
function handleRequest(sessionId: string) {
  const scope = scopes.get(sessionId);
  // Use scope for isolated state...
}
```

## Exports

| Export                       | Description                                           |
| ---------------------------- | ----------------------------------------------------- |
| `createServerScope(options)` | Create a server scope manager with LRU + TTL eviction |

## Documentation

Full documentation with API reference, lifecycle management, and framework integration:
**[docs/api/server](../../docs/api/server/README.md)**

## License

MIT
npm package: @stateloom/solid
Description: Solid.js adapter for StateLoom -- bridges `Subscribable<T>` to Solid's fine-grained reactivity via `createSignal` with dual-subscription strategy.
Latest version: 1.0.0-alpha.0

# @stateloom/solid

Solid.js adapter for StateLoom -- bridges `Subscribable<T>` to Solid's fine-grained reactivity via `createSignal` with dual-subscription strategy.

## Install

```bash
pnpm add @stateloom/solid @stateloom/core
```

## Quick Start

```tsx
import { signal, computed } from '@stateloom/core';
import { useSignal } from '@stateloom/solid';

const count = signal(0);
const doubled = computed(() => count.get() * 2);

function Counter() {
  const value = useSignal(count);
  const double = useSignal(doubled);
  return (
    <div>
      {value()} x 2 = {double()}
    </div>
  );
}
```

## API

| Export                                | Purpose                                               |
| ------------------------------------- | ----------------------------------------------------- |
| `useSignal(subscribable)`             | Bridge any `Subscribable<T>` to a Solid `Accessor<T>` |
| `useStore(store, selector?, equals?)` | Store integration with selector optimization          |
| `ScopeProvider` / `useScope()`        | SSR scope isolation via Solid context                 |
| `ScopeContext`                        | Raw context object for advanced usage                 |

## Requirements

- Solid.js 1+
- `@stateloom/core` (required peer dependency)
- `@stateloom/store` (optional peer dependency)

## Documentation

Full documentation with examples, API reference, patterns, and migration guides: [docs/api/solid](../../docs/api/solid/)

## License

MIT