dddddddddzzzz / openstories Goto Github PK
View Code? Open in Web Editor NEWThe Open Stories format.
Home Page: https://openstories.fyi
The Open Stories format.
Home Page: https://openstories.fyi
The JSON Feed spec states:
feed_url
(optional but strongly recommended, string) is the URL of the feed, and serves as the unique identifier for the feed. As with home_page_url, this should be considered required for feeds on the public web.
We should just strongly require feed_url
and call it a day, this gives every feed a guaranteed unique identifier to key by.
This should serve as a stable ID of authors across multiple feeds.
Verifying the association between this URL and the feed is tbd.
I'm inclined to only accept #75ABFF
as a format for now, as supporting the whole web color spec seems a little bit much for clients?
Per the JSON feed spec:
date_published
(optional, string) specifies the date in RFC 3339 format. (Example:2010-02-07T14:04:00-05:00
.)
They are common across Image and Video.
Not a breaking change in the spec actually, just poorly worded.
Good and bad ones.
I'm attempting to load the <open-stories>
custom element with Next.js and I seem to be running into a few issues, primarily this is the error I'm getting that is preventing the element from displaying:
TypeError: Cannot set property src of #<OpenStoriesElement> which has only a getter
I'm loading the component client-side like so within a wrapper React component;
'use client'
export default function Stories() {
return <open-stories src="/api/screenshots"></open-stories>
}
The endpoint resolves to a valid schema, when requested in the browser you get the following:
{"version":"https://jsonfeed.org/version/1.1","title":"Screenshots","_open_stories":{"version":"0.0.9"},"items":[{"id":"2605764403","content_text":"","authors":[{"name":"James","url":"https://jives.dev"}],"_open_stories":{"mime_type":"image/jpg","url":"https://steamuserimages-a.akamaihd.net/ugc/1635359675946958706/E517E16CA053E10ED3EED88E0083F157EBF860E6/","alt":""}}]}
I'm unsure if this error is directly related to Next.js or not. When I exclude the src property from the web component it loads correctly, and you can see the Shadow DOM mount. ๐ค
Any help would be super appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.