Updates
Latest release
Melange v0.11.0
Melange v0.11.0 lets you choose which part of the generated SQL API a database gets, and adds per-relation accessible_* functions for filtering your own queries by access. Paged lists now do the work of one page, generated functions are planned once per session, and depth limits and cycles follow OpenFGA. It also fixes two ways a check or a migration could grant more than the model says.
- Choose which relations and function families the SQL API installs, and filter your own queries with inlinable
accessible_*functions - Paged lists read only the page: a first page of 50 contacts on the SaaS benchmark went from 3.5 s to 6 ms
- Depth limits match OpenFGA, lists raise
M2002instead of truncating, and userset checks stop over-granting
v0.10 4 releases
Melange v0.10.3
FeaturesFixesCLIDocsMelange v0.10.3 is a tooling release. melange doctor gives index advice you can apply as written, melange migrate removes all of a deleted relation’s functions, and paths in melange.yaml work from any directory of your project. Studio gets …
melange doctornames the exact indexes a view’s source tables need, and stops asking for ones they don’t- Studio’s History page shows what each migration changed, with diffs and breaking changes marked
melange migratecleans up every function of a removed relation
Melange v0.10.2
FixesPerformanceGenerated SQLGo runtimeDocsMelange v0.10.2 fixes list_accessible_objects and list_accessible_subjects in two families of models. Where a parent relation allows more than one type, such as parent: [folder, project], list_accessible_objects could miss every object …
- List functions find objects under every parent type, and agree with
check_permissionwhen a relation links to its own type - Code generation is up to 64% faster on large models
- The CLI and Go libraries need Go 1.26 instead of 1.27
- List functions find objects under every parent type, and agree with
Melange v0.10.1
FeaturesFixesCLIDocsMelange v0.10.1 makes melange migrate safe to run on every application startup: concurrent runs are serialized, and an older melange no longer overwrites functions generated by a newer one. The CLI now warns when it, or the functions …
- Concurrent
melange migrateruns are serialized, and downgrades are refused - The CLI warns when it or your deployed functions match a security advisory
- Windows install with Scoop, and every install channel tested on each release
- Concurrent
Melange v0.10.0
FeaturesFixesPerformanceGenerated SQLGo runtimeCLIDocsMelange v0.10.0 compiles nested combinations of and, or and but not exactly. Earlier versions approximated some of them, and several approximations granted access that OpenFGA denies. It also fixes list functions that disagreed with …
- Exact compilation of nested
and/but not, fixing over-grants - List functions up to 2,700x faster on deep and intersection relations
- Undefined relations rejected; coding-agent support in the CLI and docs
- Exact compilation of nested
v0.9 6 releases
Melange v0.9.6
FeaturesCLIMelange v0.9.6 adds melange studio, a local web console for inspecting a melange database. It shows the deployed model, explains and expands checks, tests a grant before you write it, browses the entities behind your tuples, and shows the …
melange studio, a local read-only web console- Explain, Expand, Matrix and Analyze in the browser
- What-if tuples, relation pages and a tuples browser
Melange v0.9.5
FixesGenerated SQLGo runtimeCLIMelange v0.9.5 fixes an exclusion bypass in generated SQL: a user excluded by a but not relation was allowed through any relation that reached it via an alias or union. It also fixes contextual tuples in the Go runtime reading grants from …
- Exclusion bypass through aliases and unions fixed
- Go contextual tuples isolated per schema and session
- Commands exit non-zero after a failed write
Melange v0.9.3
FeaturesCLIMelange v0.9.3 records the authorization model in the database at migrate time. melange_migrations previously stored only a checksum, so a mismatch told you that something differed but not what. With the model stored, melange status reports …
- The deployed model is recorded in the database
melange statusdrift,melange diffandmelange schema pull- Named environment profiles
Melange v0.9.2
FixesGenerated SQLMelange v0.9.2 fixes a correctness bug where ListSubjects could return subjects that Check denies — a but not exclusion was dropped for subjects reached through certain tuple-to-userset paths. It also adds a suite-wide parity test that pins …
ListSubjectsno longer returns subjectsCheckdenies- Parity test pinning list functions to
Check
Melange v0.9.1
FixesCLIMelange v0.9.1 is a build fix: go install github.com/pthm/melange@latest now resolves and builds cleanly. If you install the CLI from source, upgrade past v0.9.0.
go install github.com/pthm/melange@latestbuilds again
Melange v0.9.0
CLIMelange v0.9.0 restructures the repository into a cleaner module layout and, as part of that, changes how the CLI is installed. There are no runtime or generated-SQL changes — your Check and List call sites, and the SQL melange migrate …
- New install path:
go install github.com/pthm/melange@latest - Cleaner module layout
- No runtime or generated SQL changes
- New install path:
v0.8 7 releases
Melange v0.8.6
FixesPerformanceGenerated SQLDocsMelange v0.8.6 fixes six cases where ListObjects and ListSubjects returned the wrong set — over- or under-reporting subjects under exclusions, wildcards, and usersets — and trims another round of redundant SQL out of every generated …
- Six
ListObjectsandListSubjectsfixes for exclusions, wildcards and usersets - Leaner generated SQL
- Performance reference based on real measurements
- Six
Melange v0.8.5
FixesPerformanceGenerated SQLMelange v0.8.5 is a performance and correctness release for list_accessible_objects and list_accessible_subjects. It came out of #67, where a ~90k-tuple workload reported a 30-second list_accessible_objects and runtimes that grew with the …
list_accessible_objectsfrom ~4s to ~12ms on a 90k-tuple workload- Dispatch no longer scales with schema size
- Six list correctness fixes
Melange v0.8.4
FeaturesGenerated SQLGo runtimeTypeScriptCLIMelange v0.8.4 adds two new APIs: Explain, which returns the resolution trace for a single decision, and Expand, which returns an OpenFGA-shaped UsersetTree answering “who has access?”. Both ship as generated SQL functions, Go and …
- Explain: the resolution trace for one decision
- Expand: who has access, as a
UsersetTree melange explainandmelange expandcommands
Melange v0.8.3
FeaturesPerformanceGenerated SQLCLIMelange v0.8.3 lands a performance pass on generated check functions — branches now evaluate cheap-first and recursive callees carry an explicit COST hint — plus a schema-derived index recommender that surfaces the composite indexes your …
- Cheap-first branch ordering and
COSThints - Schema-derived index recommendations in
melange doctor - Opt-in
AS MATERIALIZEDCTE hints
- Cheap-first branch ordering and
Melange v0.8.2
PerformanceGenerated SQLGo runtimeMelange v0.8.2 is a performance release. Permission checks that carry contextual tuples are now 12–20× faster, the recursive list_*_sub codegen takes its cheap fast path on a wider class of parent relations, and the release pipeline is now …
- 12-20x faster checks with contextual tuples
- Wider fast path for recursive
list_*_sub - Automated release pipeline
Melange v0.8.1
FixesGenerated SQLGo runtimeCLIMelange v0.8.1 is a patch release fixing contextual tuples being silently ignored with custom database schemas, along with several other custom schema bug fixes, SQL injection hardening, and expanded test coverage.
- Contextual tuples no longer ignored with custom schemas
check_permission_bulkandmelange doctorfixed for custom schemas- Hardened SQL quoting for schema names
Melange v0.8.0
FeaturesGenerated SQLCLIDocsMelange v0.8.0 adds modular model support (fga.mod / Schema 1.2) for splitting schemas across multiple files, configurable database schema for installing melange objects into a custom PostgreSQL schema, and safe identifier truncation to …
- Modular models (fga.mod, Schema 1.2)
- Install melange into a custom PostgreSQL schema
- Safe truncation of long identifiers
v0.7 5 releases
Melange v0.7.4
FeaturesCLIMelange v0.7.4 adds the melange generate migration command for integrating with external migration frameworks, introduces two-phase skip detection to the built-in migrator, and includes new unit tests and documentation improvements.
melange generate migrationfor external migration frameworks- Two-phase skip detection in the built-in migrator
- Simpler configuration
Melange v0.7.3
FeaturesFixesGenerated SQLCLIMelange v0.7.3 adds the new melange init command for interactive project scaffolding, fixes four bugs where list_objects and list_users returned incorrect results, and adds several improvements to melange doctor including table index …
melange initproject scaffolding- Four list function fixes
melange doctorindex recommendations and orphaned tuple detection
Melange v0.7.2
FeaturesFixesGenerated SQLCLIMelange v0.7.2 adds performance linting to the melange doctor command and fixes two bugs reported by community contributors.
- Performance linting in
melange doctor list_objectsfix for closure userset patterns- Uppercase relation names no longer break re-migration
- Performance linting in
Melange v0.7.1
FixesGenerated SQLTypeScriptMelange v0.7.1 is a patch release fixing two bugs reported by community contributors, along with security dependency upgrades and testing improvements.
list_accessible_subjectsfix for TTU with implied parent relations- TypeScript
listObjectsandlistSubjectspagination fix - TypeScript dev dependency upgrades
Melange v0.7.0
FeaturesFixesGenerated SQLGo runtimeTypeScriptMelange v0.7.0 introduces the Bulk Check API for batching multiple permission checks into a single SQL call, alongside multi-driver testing, module layout improvements, and a bug fix for intersection parsing.
- Bulk Check API: many checks in one SQL call
- Fix for intersections with tuple-to-userset unions
- Multi-driver integration tests
v0.6 1 release
Melange v0.6.4
FeaturesPerformanceTypeScriptDocsThe first project-ready preview of Melange is here, featuring major performance optimizations (2-5x faster list operations), comprehensive testing, and TypeScript support.
- 2-5x faster list operations
- TypeScript client
- Expanded test infrastructure and developer tools
v0.5 1 release
Melange v0.5.1 - Preview
FeaturesFixesGenerated SQLThis is likely the final preview release, featuring a complete SQL generation architecture refactoring and cursor-based pagination.
Read more →
v0.4 1 release
Melange v0.4.3 - Preview
FeaturesTypeScriptCLIRestructuring the project for language-agnostic use and multi-language client support.
Read more →
v0.3 1 release
Melange v0.3.0 - Preview
FeaturesPerformanceGenerated SQLFully generated SQL functions, removing the need for runtime model tables and delivering significant performance improvements.
Read more →
v0.2 1 release
Melange v0.2.0 - Preview
FeaturesPerformanceGenerated SQLMajor feature additions including comprehensive OpenFGA pattern support, performance optimizations, and documentation.
Read more →
v0.1 1 release
Melange v0.1.0 - Preview
FeaturesGenerated SQLGo runtimeThe first pre-release of Melange, an OpenFGA-compatible authorization library that runs entirely in PostgreSQL.
Read more →