meridianjs 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Meridian
|
|
2
2
|
|
|
3
|
-
> **⚠️ v2.0.0 establishes the safe-by-default contract. Previous versions (<2.0.0) are deprecated and contain unsafe defaults. Upgrade to >=2.0.0.**
|
|
4
|
-
|
|
5
3
|
A TypeScript SDK that normalizes third-party API interactions through a unified request pipeline, enforcing consistent error handling, rate limiting, and response shapes across providers.
|
|
6
4
|
|
|
7
5
|
## Problem Statement
|
|
@@ -23,7 +21,7 @@ Meridian provides a single abstraction layer that normalizes these differences,
|
|
|
23
21
|
## Installation
|
|
24
22
|
|
|
25
23
|
```bash
|
|
26
|
-
npm install
|
|
24
|
+
npm install meridianjs
|
|
27
25
|
```
|
|
28
26
|
|
|
29
27
|
## Requirements
|
|
@@ -35,7 +33,7 @@ npm install meridian-sdk
|
|
|
35
33
|
**IMPORTANT**: Meridian requires async initialization. Always use `Meridian.create()`:
|
|
36
34
|
|
|
37
35
|
```typescript
|
|
38
|
-
import { Meridian } from "
|
|
36
|
+
import { Meridian } from "meridianjs";
|
|
39
37
|
|
|
40
38
|
// ✅ CORRECT: Async initialization
|
|
41
39
|
const meridian = await Meridian.create({
|
|
@@ -56,7 +54,7 @@ console.log(meta.rateLimit.remaining);
|
|
|
56
54
|
For distributed deployments (serverless, multiple instances), you **must** provide a `StateStorage` implementation:
|
|
57
55
|
|
|
58
56
|
```typescript
|
|
59
|
-
import { Meridian } from "
|
|
57
|
+
import { Meridian } from "meridianjs";
|
|
60
58
|
import { RedisStateStorage } from "./your-redis-storage.js";
|
|
61
59
|
|
|
62
60
|
const meridian = await Meridian.create({
|
|
@@ -119,7 +117,7 @@ Each configured provider exposes a client with:
|
|
|
119
117
|
|
|
120
118
|
## Project Status
|
|
121
119
|
|
|
122
|
-
**
|
|
120
|
+
**v0.1.0** - Early release. Core functionality is stable and tested. Provider support includes Anthropic, OpenAI, Stripe, and GitHub out of the box. API may evolve based on real-world feedback before v1.0.
|
|
123
121
|
|
|
124
122
|
## License
|
|
125
123
|
|
package/package.json
CHANGED