-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open source SpiceDB Playground #1
Conversation
samkim
commented
Mar 20, 2024
- node v18 support
- Vercel deploy support
- Preserved yarn workspace organization
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
README.md
Outdated
|
||
As of 2021, broken access control became the #1 threat to the web. With SpiceDB, developers finally have the solution to stopping this threat the same way as the hyperscalers. | ||
|
||
Learn more about [SpiceDB ↗](https://authzed.com/spicedb) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the ↗
?
README.md
Outdated
- Visual relationship editor with support for defining caveat context data | ||
- Developer system that detects and presents schema and data errors | ||
- Real-time check requests against a full SpiceDB instance running client side via WASM | ||
- Fully functional zed CLI instance running client side via WASM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link this to the zed repo
README.md
Outdated
|
||
## Updating wasm dependencies | ||
|
||
The project contains prebuilt WASM files for versions of both SpiceDB and zed. To update the versions, edit the following files with the appropriate tag/commit hash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit which files?
README.md
Outdated
|
||
## Developing your own schema | ||
|
||
You can try both SpiceDB and zed entirely in your browser on a SpiceDB Playground deployment thanks to the power of WebAssembly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link [SpiceDB] and [zed]
README.md
Outdated
|
||
## Developing your own schema | ||
|
||
You can try both SpiceDB and zed entirely in your browser on a SpiceDB Playground deployment thanks to the power of WebAssembly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link [WebAssembly] to my blog post
playground-ui/src/components.tsx
Outdated
@@ -0,0 +1,47 @@ | |||
import LoadingView from '@code/playground-ui/src/LoadingView'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
playground-ui/src/hooks.ts
Outdated
@@ -0,0 +1,268 @@ | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
AUTHZED_FRONTEND_ENDPOINT: "${PLAYGROUND_AUTHZED_FRONTEND_ENDPOINT}", | ||
AUTHZED_FRONTEND_API_ENDPOINT: "${PLAYGROUND_AUTHZED_FRONTEND_API_ENDPOINT}", | ||
GOOGLE_ANALYTICS_MEASUREMENT_ID: "${PLAYGROUND_GOOGLE_ANALYTICS_MEASUREMENT_ID}", | ||
AUTH0_CLIENT_ID: "${PLAYGROUND_AUTH0_CLIENT_ID}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
playground/contrib/nginx.conf.tmpl
Outdated
etag on; | ||
location / { | ||
try_files $uri $uri/ /index.html; | ||
add_header Content-Security-Policy "frame-ancestors 'self' docs.authzed.com authzed.com www.authzed.com;" always; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably remove these allowed domains
playground/craco.config.js
Outdated
}, | ||
headers: { | ||
'Content-Security-Policy': | ||
"frame-ancestors 'self' docs.authzed.com authzed.com www.authzed.com", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
- Remove unused graphql utilities - Clean up auth config options - Clean up header values - Add links to READMEs
README.md
Outdated
@@ -0,0 +1,115 @@ | |||
# SpiceDB Playground | |||
|
|||
The SpiceDB Playground is an interactive app for building a SpiceDB schema, interacting with test relationships, and quickly iterating with test assertions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link this to [SpiceDB]
README.md
Outdated
@@ -0,0 +1,115 @@ | |||
# SpiceDB Playground |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should put the SpiceDB logo here, like we do in the SpiceDB repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!