Repository navigation
v0.3.15
Vectrune 0.3.15 — API Studio, REST & GraphQL auth, and Model Studio
REST & GraphQL authentication, RBAC, and rate limiting
Try Rune API Studio · REST & GraphQL auth guide
- Configure 7 native
@Authenticationschemes:jwt(HS256/RS256/JWKS with optional built-intoken_endpoint),oauth2(RFC 7662 introspection, JWKS, or static tokens),api_key(header or query),basic(includingsha256:password hashes),bearer,hmac(HMAC-SHA256 webhook signature verification), andcookie(HMAC-signed session cookies). - Set
@App default_authfor app-wide protection, override per route withauth = noneor multi-schemeauth = [SchemeA, SchemeB], and enforcerolesandscopes(403 Forbidden) withauth.*(auth.sub,auth.scheme,auth.roles,auth.scopes,auth.claims) injected into every handler. - Apply app-wide or per-route
rate_limit(ip,auth,global, orheader:...buckets emittingX-RateLimit-*andRetry-Afterheaders), declarative@App cors, native@Route/PATCHroutes, and automatic OpenAPI 3.0components.securitySchemesgeneration. @Appwithtype = GraphQLshares the same@Authentication,default_auth,cors,rate_limit, JWTtoken_endpoint, andauth.*context injection, plus per-resolverrolesandscopeson@GraphQL/Queryand@GraphQL/Mutation.
Rune API Studio and browser emulator parity
- Build, test, import, and export REST and GraphQL APIs visually in Rune API Studio (
examples/rune-web/api_studio/api_studio.rune, hosted at/api-studio/), written 100% in pure.rune. - Switch between REST and GraphQL modes, edit endpoints or resolvers, manage auth schemes and
@Schemamodels, inspect live.rune, OpenAPI 3.0, GraphQL SDL, and@Testoutput, and save projects in browser storage. - Run live requests in Try It (REST with editable
{param}path parameters, and GraphQL Console with live argument inputs, variables JSON, and 1-click401/200/403/429demos) powered directly by@vectrune/rune-emulatorviarune.emulate(...)andrune.emulate_reset().
Pixel-3D Model Studio and language upgrades
- Design voxel and primitive 3D models visually in Pixel-3D Model Studio with an interactive 3D orbit viewport,
@Modelimport/export, per-partrender_order, and declarative multi-clip@Animationtimelines. - Expanded Rune-Web and shared expression capabilities with
rune.parse,rune.format,historyundo/redo checkpoints,clipboard.copy,download,fullscreen.toggle,json.try_parse,regex_replace, and wider embedded tool layouts on the teaching site.
Compatibility
@Route/PATCH is now a supported REST method (updating vectrune check method diagnostics accordingly). Browser emulation in Rune API Studio models auth, RBAC, @Memory, and rate limiting locally with example credentials; verify real identity providers, external databases, and production secrets with the native vectrune runtime. Declarative TLS/mTLS transport remains a design proposal (docs/proposals/tls-and-mtls.md).
What's Changed
- Record published v0.3.14 metadata by @davethomas11 in #36
- List Vectrune Crypto v0.2.0 in the artifact catalog by @davethomas11 in #38
- Feat/model studio and language upgrades by @davethomas11 in #37
Full Changelog: v0.3.14...v0.3.15