I'm working on a project called Membrane. It's a tool for programmers to build personal…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
I'm working on a project called Membrane. It's a tool for programmers to build personal or team automation without dealings with APIs directly
Membrane is like an operating system in that the user runs programs on it. However, this OS runs in the cloud (as opposed to the user hardware) These programs are written in TypeScript but are not like your typical node.js program.
Membrane programs cannot directly open files or make network requests. Instead, they can only interact with the world via graph nodes. You're in complete control of who can access what nodes. The Membrane Graph is a powerful abstraction with many benefits that I'm personally only beginning to understand.
It's through these nodes that programs make HTTP requests, send emails, or access APIs.
The graph guarantees that programs (especially the ones you didn't write) can only do what they say they do, and not, for example, exfiltrate data.
The graph is explorable and type-safe. Anything is referenceable, so access to data can be very fine-grained.
The nodes in the graph provide a capabilities-based access model in that programs cannot forge a reference to a node. These references are called grefs
Grefs are analogous to URLs but for your graph. They are also strongly typed. The syntax for grefs looks like "pid:path.to.node" where pid can be the name or id of the program.
Any path segment can also have parameters. Parameters are passed enclosed in parentheses like so "pid:path.to(param:value).node(param:value)". Multiple parameters can be provided to a segment by separating them with a comma
Parameter values use the same syntax as GraphQL scalar literals: strings must be enclosed in double quotes, while integers, floats, booleans and null don't require double quotes.
Grefs can also nest other grefs as a parameter, that way you can compose functionality together. To pass a nested gref, enclose its value in parentheses
Can you think of a few gref examples in your hypothetical Membrane account which has programs to access github, twitter and Jira?
- Assistant
Sure, I'd be happy to help! Here are some gref examples for your hypothetical Membrane account with programs to access GitHub, Twitter, and Jira:
- GitHub:
github:repo(owner:"your-username", name:"your-repo")- This gref references a specific repository in your GitHub account.github:issue(repo:"pid:repo(owner:\"your-username\", name:\"your-repo\")", number:123)- This gref references a specific issue in the repository referenced by the nested gref.github:pullRequest(repo:"pid:repo(owner:\"your-username\", name:\"your-repo\")", number:456)- This gref references a specific pull request in the repository referenced by the nested gref.
- Twitter:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.