rooklang weekly downloads statistics
By QWERN-9876r · npm · Webpack plugins
A language with JavaScript semantics, Go-style syntax, goroutines on real threads and static types that compiles to readable JavaScript
rooklang has 366 recorded weekly downloads on npm, a decrease of 40.4% over the past 30 days, ranking #2332 of 3,247 tracked listings.
About rooklang
Rook
English · Русский
A language with the semantics of JavaScript, Go-style syntax, goroutines on real threads and static types. It compiles to readable JavaScript with a small runtime library for channels, goroutines and markup (WebAssembly is planned).
async func square(jobs <-chan number, results chan<- number) {
for n in jobs {
results <- n * n
}
}
const jobs = chan<number>(10)
const results = chan<number>()
go square(jobs, results) // another thread, at once with the rest
go square(jobs, results)
for let n = 1; n <= 4; n++ {
jobs <- n
}
close(jobs)
for let i = 0; i < 4; i++ {
console.log(<-results)
}
close(results)
-
Goroutines and channels.
go f(x)runs a function as a goroutine, on another processor, and channels,select,after,tickandcancelwork as in Go, and signals andAbortSignalare channels too,signal("SIGTERM")anddone(request.signal);go for i, v in pixels { ... }splits an array among the processors. The compiler checks that what goes to another thread can be copied there, and warns of a channel that is never closed; an instance of adata classgoes with its class and methods. -
Shared structures. Pass a named
structtogoand goroutines update the same typed data. The caller sees changes through its original reference. UserwMutexto keep related writes and reads consistent. Try the import progress demo. -
Topics between tabs.
topic<CartEvent>("cart")passes values between the tabs of a site over aBroadcastChannel:cart <- esends and waits for nobody,for e in cartreceives what the other tabs send.ChannelandTopichave what channels and topics compile to, by name, and their closed zero values,Channel.EMPTYandTopic.EMPTY. -
Go syntax.
func, the type after the name, several results, errors as a second value (try JSON.parse(text)makes what JS throws one),defer, a singleforloop:func divide(a, b number) (number, error) { if b == 0 { return 0, error("division by zero") } return a / b, null } -
Static types with null safety. A
?Usercannot be used without a check,decode<User>(body)checks JSON from outside against the type when the program runs, andmake(User)is the value of the type, which the compiler computes: no type is left in the JS. -
JavaScript inside. The same values, classes and modules, any JS library; markup creates real DOM elements, and components are compiled away.
The guide with examples and a playground: https://rooklang.tech/. Language reference. Specification: docs/spec.md, design of components: docs/components.md, structures and shared memory, and a sample program. Where Rook stands and the road to 1.0: docs/roadmap.md; what changed in each version: CHANGELOG.md.
See the 1.x compatibility contract and how to upgrade from 0.8.0.
Installation
Rook needs Node.js ≥ 24 or Bun.
npm install rooklang
npx rook init my-app # scaffold a Vite, Vitest and VS Code project
npx rook fmt src # format Rook sources
npx rook fmt --check src # check formatting in CI
npx rook build app.rk # app.js next to the source
npx rook build src --out-dir dist # every module of a folder
npx rook check src # check a directory and its imports for CI
npx rook run app.rk # compile and run
npx rook run --watch app.rk # and again when a file of it changes
To start in an empty directory, run npx --package rooklang rook init there. When using
npm run rook -- init from a subdirectory of this repository, the target is that subdirectory.
In the generated project, run npm install, then npm run dev or npm run build for a Vite
production build in dist/.
Prettier can format .rk files with the Rook parser. Install Prettier in the project:
npm install --save-dev prettier
Then add the plugin to its config:
{ "plugins": ["rooklang/prettier"] }
Then run npx prettier --write "src/**/*.rk". The plugin follows the package's markup setting and
Prettier's indentation and quote options.
The compiled code imports what channels, goroutines and markup need from rooklang/runtime, so
the package is a dependency of the project, not only of its build.
The compiler uses TypeScript's declarations for the standard library and DOM by default.
From code, the compiler is import { compile } from 'rooklang'. The package also has the
Vite plugin, rooklang/vite, the Bun plugin, rooklang/bun, and
rooklang/browser, the compiler without the
TypeScript compiler for running in a browser, as in the site's playground: there imports are not
type checked.
Development
Node.js ≥ 24 (nvm use). The compiler is written in TypeScript, and Node runs the .ts files
directly, so development needs no build step: the commands below run the compiler from src/.
dist/ is built only for the npm package.
npm install also installs a pre-commit hook that formats the staged files: ESLint adds the blank
lines between statements that Prettier keeps but never adds, then Prettier formats. Only the
staged version is formatted, so edits that are not staged stay out of the commit.
Commands…
Description from the npm listing.
- rooklang
- programming-language
- compiler
- javascript
- static-typing
- go
- goroutines
- channels
- concurrency
- web-workers
- vite-plugin
- webpack-plugin
- web-components
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm Webpack plugins plugins
All 20 rooklang alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/rooklang. First seen Dec 4, 2026; last successful collection Dec 6, 2026. See the methodology.