Expand description
§systemprompt-content
Markdown content management, ingestion, search, and link analytics for the systemprompt.io AI governance dashboards. The crate provides:
- Models — typed
Content,ContentMetadata,IngestionOptions,IngestionReport,SearchRequest, and link-tracking types. - Repositories —
ContentRepository,SearchRepository,LinkAnalyticsRepositorybacked by Postgres +sqlxmacros. - Services —
IngestionService,SearchService,LinkGenerationService,LinkAnalyticsService, plus aDefaultContentProviderfor downstream consumers. - Default providers —
DefaultBrandingProvider,DefaultHomepagePrerenderer, andDefaultListBrandingProviderfor site-generation scaffolding. - Job entrypoint —
execute_content_ingestionruns a single ingestion pass against the active profile.
§Feature flags
| Feature | Default | Effect |
|---|---|---|
| none | n/a | The crate exposes a single feature surface; all modules are compiled unconditionally. The [package.metadata.docs.rs] all-features = true setting is retained so future feature additions automatically appear in published docs. |
§Layering
systemprompt-content is a domain crate. It depends downward on
systemprompt-database, systemprompt-cloud, systemprompt-extension,
systemprompt-models, systemprompt-traits,
systemprompt-provider-contracts, systemprompt-logging, and
systemprompt-identifiers.
Re-exports§
pub use error::ContentError;pub use error::ContentResult;pub use services::validate_content_metadata;pub use models::CategoryIdUpdate;pub use models::Content;pub use models::ContentMetadata;pub use models::IngestionOptions;pub use models::IngestionReport;pub use models::IngestionSource;pub use models::SearchFilters;pub use models::SearchRequest;pub use models::SearchResponse;pub use models::SearchResult;pub use models::UpdateContentParams;pub use repository::ContentRepository;pub use repository::LinkAnalyticsRepository;pub use repository::SearchRepository;pub use services::DefaultContentProvider;pub use services::GenerateLinkParams;pub use services::IngestionService;pub use services::LinkAnalyticsService;pub use services::LinkGenerationService;pub use services::SearchService;pub use models::LinkType;pub use models::TrackClickParams;pub use models::UtmParams;
Modules§
- error
- Typed error surface for the content crate.
- models
- repository
- services
Structs§
- Content
Config Validated - Content
Extension - Content
Ready - Content
Source Config Validated - Default
Branding Provider - Default
Homepage Prerenderer - Default
List Branding Provider - List
Items Card Renderer - Load
Stats - Parsed
Content
Functions§
- default_
branding_ provider - default_
homepage_ prerenderer - default_
list_ branding_ provider - default_
list_ items_ renderer - execute_
content_ ingestion