Playground: «Try to break it» in the browser with Pyodide

Open
#18 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
html, javascript, python, sql, sqlite

Research direction

Nothing under playground/ exists yet, so the work starts from scratch. Read docs/DESIGN.md and docs/ATTACK_GALLERY.md, and check whether #9 and #10 have landed, since the issue depends on them. Done means a static site that runs sqlguardllm under Pyodide against a sql.js demo database, with the presets, a fragment-encoded share link, and the 5-second load target met.

Written by the indexing model from the issue text.

Description

area:playground help wanted size:l type:feature
Goal

Let anyone try to beat sqlguardllm in their browser, with no install and no server.

Acceptance criteria
  • Static site in playground/ deployed to Cloudflare Pages, with no backend
  • Runs sqlguardllm with Pyodide and executes allowed queries on a demo SQLite database in the browser (sql.js)
  • Presets: the gallery attacks, two roles with different row filters, and an editable policy
  • Shareable link that encodes policy and SQL in the URL fragment, never sent to a server
  • Loads in under 5 s on a typical connection and works on mobile
Relevant files
  • playground/
Size

L (3-5 days)

Notes
Dominant language
Python
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jmmana/sqlguardllm

All issues in jmmana/sqlguardllm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.