You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewrite the project README as a normal open-source entrypoint:
- explain purpose, use cases, benefits, install options, and requirements
- add quick-start examples for core metadata, RunningHub descriptors, client usage, and key-pool helpers
- clarify what the kit does and does not provide
- link documentation, development commands, harness rules, security, contribution, and license information
Also record the README update and verification result in the daily log.
Reusable TypeScript runtime primitives for AIGC products that need to manage multiple model providers and RunningHub entries without rebuilding the same provider configuration layer for every project.
Framework-neutral TypeScript primitives for AIGC products that need to manage model providers, model parameters, request bodies, RunningHub Apps/Workflows, and provider key concurrency without rebuilding the same runtime layer in every project.
6
8
7
-
This project starts as a small, framework-neutral kit extracted from production lessons:
9
+
This repository is a small runtime kit, not a hosted service. It gives your application typed building blocks; your application keeps ownership of credentials, databases, queues, permissions, billing, and auditing.
8
10
9
-
- Provider protocol and model capability types.
10
-
- Model parameter schema and UI metadata helpers.
11
-
- JSON and multipart request body helpers.
12
-
- RunningHub App / Workflow catalog types.
13
-
- RunningHub execution descriptor generation.
14
-
- RunningHub submit / poll client.
15
-
- RunningHub key-pool concurrency dispatch.
16
-
- Project harness docs and verification contracts for long-term maintenance.
11
+
## Why This Exists
17
12
18
-
## Status
13
+
Most AIGC applications eventually need the same provider infrastructure:
19
14
20
-
`v0.1.0` is a foundation release. APIs are intentionally small and may evolve before a stable `1.0`.
15
+
- A normalized way to describe providers and models.
16
+
- Model parameter schemas that can drive admin forms, canvas nodes, or API payloads.
17
+
- Request body helpers for JSON and multipart provider APIs.
18
+
- A reusable RunningHub App/Workflow catalog model.
19
+
- A safe way to submit, poll, and extract media outputs from RunningHub tasks.
20
+
- Key-pool helpers so multiple API keys can be used without exceeding concurrency limits.
21
+
22
+
`aigc-provider-runtime-kit` packages those common pieces as reusable TypeScript modules.
23
+
24
+
## Features
25
+
26
+
-**Provider contracts**: typed provider, model, capability, and parameter schema definitions.
27
+
-**UI-ready model metadata**: convert schemas into aspect ratio, size, duration, resolution, and reference-input metadata.
28
+
-**Request body helpers**: build multipart `FormData` payloads from scalar fields, remote URLs, or data URLs.
29
+
-**RunningHub catalog helpers**: normalize RunningHub App/Workflow records into reusable host-app entries.
30
+
-**Execution descriptors**: generate submit/poll/output handling metadata for RunningHub tasks.
- A visual canvas node runtime for image, video, audio, or workflow generation.
177
+
- A RunningHub App/Workflow gateway.
178
+
- A worker service that dispatches provider jobs with API key concurrency limits.
179
+
- A shared provider runtime layer reused across multiple products.
180
+
181
+
## What This Kit Does Not Do
182
+
183
+
- It does not store API keys or credentials.
184
+
- It does not provide a hosted API service.
185
+
- It does not include a database schema or migration system.
186
+
- It does not implement user permissions, billing, or quota policies.
187
+
- It does not ship an admin UI.
188
+
- It does not hide RunningHub or provider-specific business rules from your host application.
189
+
190
+
## Recommended Architecture
191
+
192
+
```text
193
+
Your app/admin UI
194
+
-> your database and permission model
195
+
-> your job queue or worker
196
+
-> aigc-provider-runtime-kit
197
+
-> provider APIs such as RunningHub or OpenAI-compatible services
198
+
```
199
+
200
+
Keep secrets and user permissions in your application. Use this package to normalize provider definitions, request contracts, task execution metadata, result extraction, and key-pool coordination.
201
+
202
+
## Documentation
203
+
204
+
-[Getting Started](./docs/getting-started.md)
205
+
-[API Reference](./docs/api-reference.md)
206
+
-[Roadmap](./docs/roadmap.md)
207
+
-[Provider System Notes](./docs/systems/providers/README.md)
208
+
-[RunningHub System Notes](./docs/systems/runninghub/README.md)
Never commit provider API keys, RunningHub keys, `.env` files, server credentials, or real customer configuration. This kit should contain reusable contracts and code only.
255
+
Never commit provider API keys, RunningHub keys, `.env` files, private keys, server credentials, customer data, or real production configuration.
256
+
257
+
Host applications are responsible for:
258
+
259
+
- Secret storage.
260
+
- Permission checks.
261
+
- Provider quotas.
262
+
- Audit logs.
263
+
- Network egress controls.
264
+
- Incident response.
265
+
266
+
See [SECURITY.md](./SECURITY.md) for details.
267
+
268
+
## Contributing
269
+
270
+
Contributions are welcome. Please keep changes small, typed, tested, and framework-neutral. If you change public exports or runtime behavior, update the API reference and relevant system docs.
271
+
272
+
See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full workflow.
0 commit comments