NIAOJoin Beta

Standard Library

Ecosystem

15 modules ship with Niao: web frameworks, database drivers, ML tools, and the usual stdlib pieces. Each module page includes a full API reference synced from the standard library docs. Language reference →

ahiru

available

HTTP • WebSocket • Migrations • Auth

HTTP and WebSocket backend framework. You write route handlers in Niao; the server runs on Tokio/Axum underneath.

  • Bytecode route handlers
  • Project scaffolding CLI
  • SQL migrations
  • /health and /ready probes
Read more

ML & Data

Train models, work with tables, and plot results.

available

nml

Niao Machine Learning

Machine learning in Niao: tensors, training loops, classic algorithms, and graph models. Heavy math runs in Rust (SIMD on CPU, CUDA optional).

  • Tensors & autograd
  • Training loops
  • k-means & trees
  • GCN / GraphSAGE
Read more
available

ncl

Niao Column Library

Columnar data like pandas: typed columns, DataFrames, groupby, merges, and CSV I/O. Kernels are vectorized in Rust.

  • Series & DataFrame
  • Vectorized ops
  • groupby & merge
  • SQLite bridge
Read more
available

nvis

Niao Visualization

Charts for training runs and quick data checks. Save SVG or print ASCII in the terminal, no browser needed.

  • Line & scatter
  • Histograms & heatmaps
  • SVG export
  • Training loss plots
Read more

Databases

Drivers for MongoDB, PostgreSQL, and SQLite with pooling and migrations.

available

nmongo

MongoDB Integration

MongoDB driver with pooling, CRUD, aggregations, indexes, transactions, GridFS, and change streams.

  • Connection pooling
  • BSON CRUD
  • Aggregation pipelines
  • Change streams
Read more
available

npg

PostgreSQL Integration

PostgreSQL driver with connection pooling, migrations, prepared statements, LISTEN/NOTIFY, and COPY bulk load.

  • r2d2 pool
  • Schema migrations
  • Prepared statements
  • LISTEN/NOTIFY
Read more
available

nsqlite

SQLite Integration

Embedded SQLite: file-based databases, migrations, prepared statements, transactions, and batch inserts. WAL on by default.

  • WAL mode
  • Schema migrations
  • Prepared statements
  • Batch inserts
Read more

Core Standard Library

JSON, files, time, regex, data structures, threads, and config.

available

json

JSON Parse & Manipulate

Parse, build, and edit JSON. Backed by serde_json in Rust, nested get/set, merge, and pretty-print included.

  • parse & stringify
  • Dot-path access
  • Deep merge
  • Pretty-print
Read more
available

io

File & Path I/O

Read and write files, stream large inputs, and work with paths. Blocking I/O can run on background threads.

  • Whole-file read/write
  • Streaming handles
  • Background I/O
  • Path helpers
Read more
available

time

Wall-Clock & Time Zones

Timestamps, formatting, parsing, and time zones. Built on chrono and chrono-tz, DST handled correctly.

  • IANA time zones
  • strftime formats
  • Datetime values
  • Date math
Read more
available

re

Regular Expressions

Regular expressions via Rust's regex crate. Match, split, replace, and compile patterns once for hot loops.

  • Capture groups
  • Search & replace
  • Compiled patterns
  • Unicode-aware
Read more
available

dsa

Data Structures & Algorithms

Classic data structures and graph algorithms in Rust, lists, maps, heaps, BFS/DFS/Dijkstra, and array helpers.

  • Lists & deques
  • Hash maps & sets
  • Graphs & heaps
  • Fast native paths
Read more
available

parallel

Threading & Concurrency

Threads, mutexes, channels, and worker pools. Background jobs integrate with the VM scheduler via poll helpers.

  • Threads & mutexes
  • Channels
  • Worker pools
  • VM poll helpers
Read more
available

nenv

Environment Variables

Read environment variables and .env files. Typed getters, schema validation, and isolated stores for tests.

  • .env loading
  • Typed getters
  • Schema validation
  • Test isolation
Read more

Networking

HTTP, sockets, TLS, DNS, WebSocket, and mail/file clients.

available

net

HTTP • Sockets • TLS • WebSocket

HTTP client and small server, TCP/UDP sockets, TLS, DNS, WebSocket, plus SMTP and FTP clients.

  • HTTP client & server
  • TCP/UDP/TLS
  • WebSocket
  • Typed net errors
Read more

Coverage

HTTPWebSocketMongoDBPostgreSQLSQLiteMLDataFramesJSONConcurrencyRegexChartsMigrationsAuth