Language support for .inspire schema files — the schema language for Kizaki.
@entity
type Post {
title string @minLength(1) @maxLength(280)
body string
author User
tags string[]
draft boolean @defaults(true)
@grant read(*) to role(member) where resource.draft == false
@grant write(*) to principal where resource.author == principal
}
Features
Syntax Highlighting
Full token coverage for the Inspire schema language:
- Declarations —
type,enum,trigger,effect - Policy keywords —
grant,deny,to,where,via,and,or,not - Actions —
read,write,insert,update,delete - Built-in types —
string,int,boolean,datetime,uuid,file, and more - Decorators —
@entity,@expose,@auth,@payments,@pii,@index,@unique, and 40+ others - Constants —
true,false,principal,resource,role
Language Server (LSP)
Requires the Kizaki CLI installed (~/.kizaki/bin). Provides:
- Go to definition — jump from
@kizaki/schemaor@kizaki/clientimports in TypeScript/JavaScript to the originating.inspiredeclaration - Find references — see every use of a schema entity across your codebase
- Rename — rename an entity and update all TypeScript/JavaScript import sites
- Editor sync — schema changes trigger automatic codegen via
kizaki editor sync
LSP features are disabled in untrusted workspaces. Syntax highlighting works everywhere.
Installation
Via VS Code Marketplace:
Search for Inspire Language in the Extensions panel, or run:
ext install kizaki.inspire-lang
Via Kizaki CLI (recommended — also installs the LSP binary):
kizaki editor install vscode
Requirements
- VS Code 1.75 or later
- For LSP features: Kizaki CLI installed via kizaki.dev
Configuration
| Setting | Default | Description |
|---|---|---|
inspire.lsp.serverPath |
(auto) | Path to the inspire_lsp binary. Leave empty to use the version installed by kizaki editor install vscode. |
License
MIT — see LICENSE.