Skip to content

Source Namespace ​

The Source namespace provides elements for enhanced feed metadata, including social media accounts, subscription lists, blogrolls, and source content in various formats like Markdown and OPML outlines.

Namespace URIhttp://source.scripting.com/
Specificationsource.scripting.com
Prefix<source:*>
Available inRSS
PropertysourceNs (due to conflict with RSS's source element)

Types ​

ts
export namespace SourceNs {
  export type Account = {
    service: string
    value?: string
  }

  export type Likes = {
    server: string
  }

  export type Archive = {
    url: string
    startDay: string
    endDay?: string
    filename?: string
  }

  export type SubscriptionList = {
    url: string
    value?: string
  }

  export type InReplyTo = {
    value: string
    isPermaLink?: boolean
  }

  export type Feed = {
    accounts?: Array<Account>
    likes?: Likes
    archive?: Archive
    subscriptionLists?: Array<SubscriptionList>
    cloud?: string
    blogroll?: string
    self?: string
    localTime?: string
  }

  export type Item = {
    markdown?: string
    outlines?: Array<string>
    linkFull?: string
    inReplyTo?: InReplyTo
  }
}