Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Dynamically load articles, ideally incl. over http #46

@elmarsto

Description

@elmarsto

So one of the core tenets of sbstr8 is that articles are code, which is why the graphql endpoint returns metadata about articles, but not the articles proper, which are currently statically linked against.

It would make sense if the graphql endpoint returned paths which were then used with import()

For bonus coolness, it would be awesome if it could accept arbitrary URLs as well.

There's an obvious security problem if these are loaded as modules, so let's not do that, but the convention could be something like iframes?

'local paths get treated as paths to give to import(), remote URLs get treated as content to present in an iframe'.

I think that makes sense.

Down the road if we implemented signing somehow, we could run remote code that is signed somehow, but this seems like way too much vuln to countenance at any nearby-adjacent level of complexity for sbstr8. Wait till we're older, if we get there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions