rstore-monospace
Installation
SKILL.md
Rstore Monospace
Use @rstore/monospace as the shared Monospace adapter layer for OpenAPI-generated rstore collections and REST-backed runtime CRUD behavior.
Core APIs
| Area | API |
|---|---|
| Runtime client | createMonospaceRestClient({ url, project, apiKey?, fetch? }) |
| Runtime plugin | createMonospaceRstorePlugin({ url?, project?, apiKey?, client?, scopeId? }) |
| Query mapping | createMonospaceQuery(findOptions, overrides?) |
| Query serialization | serializeMonospaceQuery(query) |
| Mutation payloads | stripPrimaryKeys(item, primaryKeys) |
| Collection metadata | DEFAULT_MONOSPACE_SCOPE_ID, getMonospacePrimaryKeys, getMonospaceCollectionName |
| Schema loading | loadMonospaceCollections({ url?, project?, schemaApiKey?, input?, metadataInput?, primaryKeys?, scopeId? }) |
| Schema building | buildMonospaceCollections({ document, metadata, primaryKeys?, scopeId }) |
| Code generation | generateCollectionsTemplate, generateItemsTemplate, generateTypedCollectionsTemplate, generateConfigTemplate, generateViteDeclarations |