
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Toolset library for ProtoPedia API providing independent store and fetcher components, and high-level repository.
ProtoPedia Resource Organized Management In-memory Data Access Store
A toolset library for ProtoPedia providing independent store and fetcher components, and a high-level repository for easy data management.
初めての方
今すぐ試す:
npm install promidas
export PROTOPEDIA_API_V2_TOKEN="your-token-here"
npx tsx scripts/try-protopedia-repository.ts
This repository provides a modular toolset for managing ProtoPedia data, consisting of independent components and a high-level repository:
lib/types - Compile-time Type Definitions (NormalizedPrototype, StatusCode, etc.)
lib/schemas - Runtime Validation Schemas (normalizedPrototypeSchema)
lib/utils - Utility Functions and Converters
lib/store - Standalone In-memory Store (PrototypeInMemoryStore)
lib/fetcher - API Client Utilities (ProtopediaApiCustomClient)
protopedia-api-v2-clientlib/logger - Logger Interface (Logger)
protopedia-api-v2-clientlevel property for SDK compatibility (level managed by factory functions)lib/repository - Ready-to-use Repository (ProtopediaInMemoryRepository)
lib/store and lib/fetcher into a single easy-to-use packageHigh-Level APIs - Factory Functions and Builder
lib/factory.ts): Pre-configured for common scenarios
createPromidasForLocal() - Optimized for local/development (30min TTL, 90s timeout, verbose logging)createPromidasForServer() - Optimized for server/production (10min TTL, 30s timeout, minimal logging)lib/builder.ts): Step-by-step configuration for advanced use cases
PromidasRepositoryBuilder - Fluent API for complex configurationsimport { createPromidasForLocal, PromidasRepositoryBuilder } from 'promidas'This project extracts and generalizes the data-fetching and in-memory data management capabilities originally implemented in F88/mugen-protopedia, providing them as a standalone, reusable library for various applications.
This library uses ProtoPedia API Ver 2.0. To use the API, you need an Access Token (Bearer Token).
Please refer to the API documentation for details: ProtoPedia API Ver 2.0 · Apiary
This library fully supports protopedia-api-v2-client v3.0.0 and later.
For details on how to integrate with protopedia-api-v2-client and use custom fetchers (e.g. for Next.js), please refer to lib/fetcher/docs/USAGE.md.
Each module can be imported independently using subpath exports:
// Type definitions
import type { NormalizedPrototype, StatusCode } from 'promidas/types';
// Runtime validation schemas
import { normalizedPrototypeSchema } from 'promidas/schemas';
// Utility functions
import {
parseProtoPediaTimestamp,
getPrototypeStatusLabel,
} from 'promidas/utils';
// Logger
import { createConsoleLogger, type Logger } from 'promidas/logger';
// API client and fetcher
import {
ProtopediaApiCustomClient,
normalizePrototype,
} from 'promidas/fetcher';
// In-memory store
import {
PrototypeInMemoryStore,
type NormalizedPrototype,
} from 'promidas/store';
// Repository implementation
import { ProtopediaInMemoryRepositoryImpl } from 'promidas/repository';
// Factory functions and Builder (main module)
import {
createPromidasForLocal,
createPromidasForServer,
PromidasRepositoryBuilder,
} from 'promidas';
Available subpath exports:
promidas — High-level APIs: Factory functions and Builder (recommended)promidas/types — Type definitionspromidas/schemas — Runtime validation schemas (Zod)promidas/utils — Utility functions and converterspromidas/logger — Logger interface and implementationspromidas/fetcher — API client and data fetchingpromidas/store — In-memory storepromidas/repository — Repository implementationDevelopment:
Project History:
FAQs
Toolset library for ProtoPedia API providing independent store and fetcher components, and high-level repository.
The npm package promidas receives a total of 8 weekly downloads. As such, promidas popularity was classified as not popular.
We found that promidas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.