Skip to content
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

Merged
merged 6 commits into from
Mar 29, 2024
Merged

Open source SpiceDB Playground #1

merged 6 commits into from
Mar 29, 2024

Conversation

samkim
Copy link
Member

@samkim samkim commented Mar 20, 2024

  • node v18 support
  • Vercel deploy support
  • Preserved yarn workspace organization

Copy link

vercel bot commented Mar 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 3:14pm

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)
Copy link
Member

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
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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

@@ -0,0 +1,47 @@
import LoadingView from '@code/playground-ui/src/LoadingView';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@@ -0,0 +1,268 @@
import {
Copy link
Member

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}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

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;
Copy link
Member

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

},
headers: {
'Content-Security-Policy':
"frame-ancestors 'self' docs.authzed.com authzed.com www.authzed.com",
Copy link
Member

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.
Copy link
Member

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
Copy link
Member

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

Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@samkim samkim merged commit 36d030a into main Mar 29, 2024
3 checks passed
@samkim samkim deleted the oss-release branch March 29, 2024 15:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants