Sapiom Js — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Sapiom Js (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
⚠️ Beta Status: Currently in v0.x (beta). API may change before v1.0.0. Production-ready and actively maintained.
TypeScript SDK for building AI agents and applications with the Sapiom API. Provides seamless payment handling, authorization flows, and framework integrations.
This is a monorepo containing multiple focused packages. Install only what you need:
| Package | Version | Description |
|---|---|---|
| @sapiom/core | v0.1.1 | Core transaction client, handlers, and utilities |
| Package | Version | Description |
|---|---|---|
| @sapiom/axios | v0.1.1 | Axios HTTP client integration |
| @sapiom/fetch | v0.1.1 | Native Fetch API integration |
| @sapiom/node-http | v0.1.2 | Node.js HTTP/HTTPS integration |
| Package | Version | LangChain | Description |
|---|---|---|---|
| @sapiom/langchain | v0.1.1 | v1.x | LangChain v1.x integration (recommended) |
| @sapiom/langchain-classic | v0.1.1 | v0.3+ | LangChain v0.x integration (legacy) |
@sapiom/mastra - Mastra framework integration@sapiom/langgraph - LangGraph integration@sapiom/openai - OpenAI SDK integrationNew to Sapiom? Check out the examples folder for complete setup instructions and working demos.
npm install @sapiom/axios axiosimport axios from 'axios';
import { createSapiomClient } from '@sapiom/axios';
const client = createSapiomClient(axios.create({
baseURL: 'https://api.example.com'
}));
const response = await client.get('/premium-endpoint');npm install @sapiom/fetchimport { createSapiomFetch } from '@sapiom/fetch';
const fetch = createSapiomFetch();
const response = await fetch('https://api.example.com/data');npm install @sapiom/langchain langchainimport { createAgent } from "langchain";
import { createSapiomMiddleware } from "@sapiom/langchain";
const agent = createAgent({
model: "gpt-4",
tools: [getWeather, sendEmail],
middleware: [
createSapiomMiddleware({
apiKey: process.env.SAPIOM_API_KEY,
}),
],
});
const result = await agent.invoke({
messages: [{ role: "user", content: "What's the weather?" }],
});npm install @sapiom/langchain-classicimport { createSapiomReactAgent } from '@sapiom/langchain-classic';
const agent = await createSapiomReactAgent(
{ llm: new ChatOpenAI({ model: "gpt-4" }), tools: [...] },
{ apiKey: process.env.SAPIOM_API_KEY }
);
const response = await agent.invoke({ messages: [...] });If you only need the transaction client without HTTP integrations:
npm install @sapiom/coreimport { SapiomClient } from '@sapiom/core';
const client = new SapiomClient({
apiKey: process.env.SAPIOM_API_KEY
});
const transaction = await client.transactions.create({
service: 'api',
action: 'call',
resource: 'completion'
});@sapiom/core Core transaction API & utilities
↑
├── @sapiom/axios Axios integration
├── @sapiom/fetch Fetch integration
├── @sapiom/node-http Node HTTP integration
└── @sapiom/langchain LangChain integrationAll integration packages depend on @sapiom/core but are independent of each other.
| Package | LangChain Version | Status |
|---|---|---|
@sapiom/langchain | v1.x | ✅ Recommended |
@sapiom/langchain-classic | v0.3+ | ✅ Legacy Support |
@sapiom/langchain with LangChain v1.x@sapiom/langchain-classic (no changes needed)This is a pnpm workspace monorepo.
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Lint and format
pnpm lint
pnpm format# Build specific package
pnpm --filter @sapiom/core build
pnpm --filter @sapiom/axios build
# Test specific package
pnpm --filter @sapiom/langchain test
# Run in watch mode
pnpm --filter @sapiom/core devWe use Changesets for version management:
# Create a changeset
pnpm changeset
# Version packages
pnpm version-packages
# Publish to npm
pnpm releaseContributions welcome! Please read our Contributing Guide first.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT © Sapiom
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.