npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lokascript/domains

v2.11.1

Published

The LokaScript multilingual domain-DSL family in one package — SQL, flow, BDD, JSX, LLM, todo, voice, learn and more, each multilingual from day one. Subpath exports per domain; the root entry wires the full registry.

Readme

@lokascript/domains

The LokaScript multilingual domain-DSL family, published as one package with per-domain subpath exports. Each domain is a content pack — command schemas + per-language vocabulary — behind the DomainDescriptor contract from @lokascript/framework.

npm install @lokascript/domains
// One domain — loads nothing else:
import { createSQLDSL } from '@lokascript/domains/sql';
createSQLDSL().compile('select name from users', 'en'); // → "SELECT name FROM users"
createSQLDSL().compile('usuarios から nombre を 選択', 'ja');

// The wired registry (what MCP servers use) — domains lazy-load on dispatch:
import { createDomainRegistry, registerAllDomains, DOMAIN_PRIORITY } from '@lokascript/domains';
const registry = createDomainRegistry();
await registry.handleToolCall('parse_sql', { query: 'select name from users', language: 'en' });

registerAllDomains(registry) registers the same nine domains into an existing DomainRegistry and resolves once the async schema-attachment pass completes — await it when getSchemas/generatePrompt must be populated.

Domains

Registry-wired (in DOMAIN_PRIORITY, dispatched by createDomainRegistry):

| Subpath | DSL | Languages | | --- | --- | --- | | /sql | Natural-language SQL | 11 | | /flow | Reactive data flow (fetch, poll, stream, submit) | 11 | | /bdd | BDD/Gherkin → Playwright | 8 | | /behaviorspec | Interaction-testing specs | 8 | | /jsx | JSX/React description | 11 | | /llm | LLM prompt specs | 11 | | /todo | Todo management | 11 | | /voice | Voice/accessibility commands | 11 | | /learn | Language-learning drills with morphology | 10 |

Strays — earlier experiments absorbed for continuity. They build, parse, and carry per-domain suites, but have seen far less production hardening and are not registered in DOMAIN_PRIORITY; treat them as preview-quality:

| Subpath | DSL | | --- | --- | | /animation | Declarative animations | | /control | Control flow | | /events | Domain events | | /html | HTML structure | | /hypermedia | Hypermedia interactions | | /sprites | Sprite/game scripting |

Migrating from @lokascript/domain-*

The individual packages (@lokascript/domain-sql … and the wiring package @lokascript/domain-config) are deprecated at their final version, 2.10.0. The move is mechanical:

  • deps: replace every @lokascript/domain-X entry with one @lokascript/domains
  • imports: @lokascript/domain-X@lokascript/domains/X
  • @lokascript/domain-config → the root @lokascript/domains entry

This package is ESM-only. Extending the system with your own domain needs no access to this package at all — publish your own content pack against @lokascript/framework's DomainDescriptor contract.