digital-products
Primitives for defining and building digital products
npm install digital-productsDeclarative API for defining digital products - apps, APIs, content, data, sites, MCP servers, and SDKs.
import { App, Route, State, Auth, API, Endpoint } from 'digital-products'
const myApp = App({
id: 'my-app',
name: 'My App',
version: '1.0.0',
framework: 'react',
routes: [
Route('/', 'Home'),
Route('/dashboard', 'Dashboard'),
],
state: State({ library: 'zustand' }),
auth: Auth({ provider: 'clerk' }),
})
const myAPI = API({
id: 'my-api',
name: 'My API',
style: 'rest',
endpoints: [
Endpoint('GET', '/users', 'List users'),
Endpoint('POST', '/users', 'Create user'),
],
})Core Functions
App()— Interactive applications with routes, state, authAPI()— RESTful, GraphQL, or RPC interfacesContent()— Text/media with schemas and workflowsData()— Structured data with validationDataset()— Curated data collectionsSite()— Websites with SEO and analyticsMCP()— Model Context Protocol serversSDK()— Software development kits
Entity Definitions (Nouns)
Comprehensive semantic entities following the Noun pattern with properties, relationships, actions, and events:
| Category | Entities |
|---|---|
| Products | DigitalProduct, SaaSProduct, App, Platform, Marketplace |
| Interfaces | API, Endpoint, SDK, MCP, Plugin, Integration, Webhook |
| Content | ContentProduct, DataProduct, Dataset, Documentation, Template |
| Web | Site, Component, Widget, Theme |
| AI | AIProduct, Model, Agent, Prompt, Tool |
| Lifecycle | Version, Release, Deployment, Environment, Feature |
import { Nouns, ProductEntities } from 'digital-products'
console.log(Nouns.App.actions) // ['create', 'update', 'deploy', ...]Related
- Product Primitive — Full documentation
- ai-functions — Product capabilities
- services-as-software — Service packaging
- ai-database — Noun pattern
Was this page helpful?