Skip to content
lacspacePublic

About

200+ zero-dependency, isomorphic TypeScript packages & CLIs — dual ESM+CJS, types included, keyless, published with npm provenance. Payments, auth, SEO, AI & RAG, global data, dates, testing, a newsroom & creative toolkit, a Nepal toolkit, no-AI logo/image generators, the Lacspace brand kit and lacspace-mcp.

Topics

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

293 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Lacspace mark, crafting itself

Lacspace Packages

Small, sharp, open-source TypeScript packages & CLIs — zero-dependency, isomorphic, keyless.

Think · Innovate · Execute

packages types zero deps ESM + CJS licence

Catalog · Handbook · Live tools · Contribute · Brand kit

One monorepo, 224 published packages and CLIs (195 libraries + 29 tools). Most are zero-dependency, isomorphic (the same code runs on Node, edge runtimes and browsers), ship dual ESM + CJS builds with TypeScript types included, and — wherever money is involved — use integer minor units (paisa/cents) so you never lose a penny to floating point. Nothing here needs an API key or phones home.

  • 🧩 Tiny & focused — one job per package, no framework lock-in
  • 🔒 Correct by default — real crypto over the Web Crypto API (never hand-rolled), injection-safe outputs, exhaustive tests
  • 🌍 Isomorphic — Node 18+ (20+ for the Web-Crypto packages), edge, browsers, React Native
  • 📦 Dual build — import and require both work, types bundled
  • 🆓 Free — every package here ships under the Lacspace Free Licence (permissive; use in personal & commercial work)

🌐 The Developer Platform

🚀 30-second example

npm install @lacspace/sdk
import { createClient } from "@lacspace/sdk";

const lac = createClient({ baseUrl: "https://api.lacspace.com" });

// auth + api + analytics + e-commerce, one typed client
await lac.auth.login({ email, password });
const products = await lac.ecommerce.getProducts();
lac.analytics.track("viewed_products", { count: products.length });

More, in a few lines each

Build a checkout — cart → shipping → tax → order, all in integer paisa:

import { createCart, addItem, cartTotals } from "@lacspace/cart";
import { cheapestQuote } from "@lacspace/shipping";
import { createOrder } from "@lacspace/order";

let cart = addItem(createCart("NPR"), { sku: "NP-1", name: "Dhaka Topi", unitPrice: 120000, qty: 2 });
const totals = cartTotals(cart);                 // exact, integer minor units
const order = createOrder({ currency: "NPR", lines: cart.items, shipping: 10000 });

Ship SEO for a page — metadata + JSON-LD in one call:

import { defineSite } from "@lacspace/seo";

const site = defineSite({ name: "Acme", url: "https://acme.com" });
export const metadata = site.page({ title: "Pricing", path: "/pricing" }).metadata;

Lock down an endpoint — hashed API keys + rate limiting:

import { verifyKey } from "@lacspace/apikey";
import { rateLimit } from "@lacspace/rate-limit";

const ok = await rateLimit(req, { limit: 60, window: "1m" });
const key = await verifyKey(req.headers.get("x-api-key"), store);

📦 Packages

Every package links to its own README with a full, explained example. Version badges are live from npm.

Core & Platform SDK

Package Version What it does
@lacspace/sdk v High-level TypeScript SDK for Lacspace
@lacspace/api v Lightweight, zero-dependency, isomorphic TypeScript HTTP client for Lacspace APIs
@lacspace/auth v Authentication flows (login, register, token, refresh) for Lacspace APIs
@lacspace/analytics v Event tracking for Lacspace platforms

React Kit

Package Version What it does
@lacspace/react v React hooks and provider for the Lacspace SDK
@lacspace/hooks v Essential, SSR-safe React hooks
@lacspace/store v Minimal global state for React in ~1KB
@lacspace/query v Tiny data fetching for React with a shared cache & request de-duplication
@lacspace/theme v SSR-safe dark / light / system theme for React
@lacspace/hotkeys v Ergonomic keyboard shortcuts for React
@lacspace/virtual v Headless list virtualization for React
@lacspace/ui v A tiny, dependency-free React kit that makes a page feel alive

Web Kit

Package Version What it does
@lacspace/env v Typed, validated environment variables
@lacspace/next v Next.js App Router integration for the Lacspace SDK
@lacspace/headers v Secure HTTP headers & a typed Content-Security-Policy builder
@lacspace/rate-limit v Framework-agnostic rate limiting
@lacspace/flags v Feature flags & A/B experiments with no SaaS and no infrastructure
@lacspace/idempotency v Make any operation exactly-once with an idempotency key
@lacspace/signed-url v HMAC-signed, expiring URLs & tokens over Web Crypto
@lacspace/webhooks v The webhook toolkit for both directions (sign & verify)

SEO Kit

Package Version What it does
@lacspace/seo v Typed metadata + JSON-LD for modern web apps
@lacspace/sitemap v Generate sitemap.xml, sitemap indexes and Next.js sitemaps
@lacspace/robots v Build and parse robots.txt
@lacspace/llms-txt v Generate and parse llms.txt / llms-full.txt (the llmstxt.org standard)
@lacspace/site-verify v Search-engine site verification
@lacspace/rss v Generate RSS 2.0, Atom 1.0 and JSON Feed 1.1 from one set of items
@lacspace/slugify v Turn any text into a clean, SEO-friendly URL slug
@lacspace/og v Dynamic Open Graph images

Security Kit

Package Version What it does
@lacspace/crypto v Safe, boring cryptography over Web Crypto (AES-256-GCM, KDF, hashing)
@lacspace/password v Password hashing & verification
@lacspace/jwt v JSON Web Tokens (HS256/384/512) with strict expiry/issuer/audience checks
@lacspace/apikey v Issue & verify API keys the right way
@lacspace/otp v TOTP & HOTP two-factor auth, Google Authenticator compatible
@lacspace/webauthn v Passkeys / biometric (FaceID, fingerprint, security keys)
@lacspace/mfa v Orchestrate multi-factor auth
@lacspace/lock v Account lockout & brute-force protection
@lacspace/redact v Redact secrets & PII from strings and objects before logging
@lacspace/oauth v OAuth 2.1 / OIDC social login — Google, GitHub, Microsoft, Apple + 9 more and any OIDC issuer; PKCE, nonce, ID tokens over JWKS
@lacspace/session v Encrypted cookie sessions (AES-256-GCM, rotation, rolling/absolute expiry, __Host-), OAuth state store, CSRF

Commerce & Ledger

Package Version What it does
@lacspace/cart v Headless, framework-agnostic shopping-cart engine
@lacspace/inventory v Stock-tracking engine that prevents overselling
@lacspace/order v Headless order-lifecycle engine (state machine + price snapshots)
@lacspace/refund v Returns / RMA workflow and refund-calculation engine
@lacspace/shipping v Checkout-time shipping-rate calculator
@lacspace/invoice v Invoice model, numbering and tax-rollup engine
@lacspace/commission v Commission & payout calculation engine
@lacspace/settlement v Settlement, netting & reconciliation for multi-party payouts
@lacspace/coupon v Discount & coupon engine
@lacspace/tax v VAT & sales-tax done right (inclusive/exclusive, integer minor units)
@lacspace/ledger v A tiny double-entry ledger & wallet
@lacspace/audit-log v Structured audit trail + tamper-evident SHA-256 hash chain
@lacspace/courier v Courier / last-mile delivery toolkit (Pathao adapter + webhooks)

Nepal Payments

Package Version What it does
@lacspace/esewa v eSewa ePay v2 (Nepal) payment gateway toolkit over Web Crypto
@lacspace/khalti v Khalti KPG-2 (ePayment API v2, Nepal) client
@lacspace/connectips v Connect IPS (Nepal) merchant integration over Web Crypto
@lacspace/fonepay v Fonepay (Nepal) merchant redirect / Request-To-Pay over Web Crypto

Mail Kit

Package Version What it does
@lacspace/mailer v A tiny zero-dependency SMTP client for Node backends
@lacspace/imap v Zero-dep IMAP4rev1 client — TLS/STARTTLS, PLAIN/XOAUTH2, special-use folders, streaming fetch, MOVE/UIDPLUS, IDLE, quota (Node)
@lacspace/mime v Isomorphic MIME parser + builder — encoded words, RFC 2231, nested multipart, charsets, IMAP BODYSTRUCTURE → lazy text/attachment fetch
@lacspace/mail-sanitize v Email-HTML sanitizer for webmail — allowlist, scoped CSS, remote-image blocking with "load images", tracker removal, htmlToText
@lacspace/dkim v DKIM sign + verify (RFC 6376, RSA-SHA256 + Ed25519), key generation and DNS record helper — RFC 8463 vectors pass
@lacspace/mail-dns v Generate + verify a domain's MX/SPF/DKIM/DMARC/MTA-STS/TLS-RPT records with a score and plain-English fixes; provider presets
@lacspace/mail-auth v Authentication-Results parsing (trusted authserv-id) + phishing heuristics: lookalike/homoglyph/punycode domains, impersonation, payment-scam wording
@lacspace/unsubscribe v RFC 2369 List-* parsing + RFC 8058 one-click unsubscribe with an SSRF guard; picks the safest method
@lacspace/ics v iCalendar parse/build (RFC 5545/5546): invites, RSVP replies, cancels, Windows TZIDs, 75-octet folding
@lacspace/bounce v Classify bounces (RFC 3464 DSN + Gmail/Outlook/Hostinger/Zoho/Postfix/Exim text), ARF spam complaints and auto-replies → hard / soft / complaint with plain-English reasons
@lacspace/mail-merge v CSV/rows + {{var|fallback}} / filters / {{#if}} templates → one personalised message per recipient, with a pre-send report (invalid, duplicate, suppressed, missing variables)
@lacspace/sequence v Pure state machine for follow-up sequences: delays, business days, recipient-timezone send windows, holidays, stop on reply/bounce/unsubscribe, per-mailbox hourly/daily caps
@lacspace/email-lint v Pre-send email check: Gmail clipping, image/text ratio, risky links and attachments, hidden text, Outlook CSS, spam phrases (EN + NE), Gmail/Yahoo bulk-sender rules → 0-100 score with fixes
@lacspace/email-builder v Block JSON + brand → bulletproof table-based responsive email HTML (MSO wrapper, VML buttons, ghost columns, dark mode, contrast checks) with a prop schema and 9 starter templates
@lacspace/track v HMAC-signed open/click tokens (no open redirect, hashed recipients), safe link rewriting that skips unsubscribe/mailto/{{vars}}, human vs Apple-MPP vs proxy vs bot open/click classification
@lacspace/booking v Free meeting slots from busy times (IANA tz, DST, buffers, notice, holidays, Nepal Sun–Fri), "Tue 13 Oct, 10:00–10:30 (NPT)" proposal text, RFC 5545 REQUEST invites
@lacspace/mail-extract v Structured data from email bodies: schema.org JSON-LD/microdata plus heuristics for orders, invoices, receipts (NPR/₹/$), shipments, flights and OTPs (English + Nepali), ignoring quoted replies
@lacspace/mail-classify v Pure inbox classifier: 10 categories (people, notifications, social, promotions, updates, calendar…) + priority with reasons, header-aware (List-Id, Auto-Submitted), overridable patterns
@lacspace/mail-search v Gmail-style search parser (from:, has:attachment, is:, before:/after:, newer_than:, larger:, OR, -negation, "phrases") → neutral AST, round-trip toQueryString and in-memory matcher
@lacspace/mail-providers v MX → mail provider detection and IMAP/SMTP presets (Hostinger, Titan, GoDaddy, Gmail, Microsoft 365, Zoho, Yahoo, iCloud), ordered server candidates; send limits honestly "unknown"
@lacspace/match v Generic all/any condition evaluator over any record (dotted paths, arrays, 18 ops incl. between/in/exists) with ReDoS-guarded regex, explain() and validation
@lacspace/email-templates v Compose bulletproof, responsive, dark-mode-aware HTML emails
@lacspace/email-validate v Smart email validation
@lacspace/email-verify v Best-effort email deliverability checks for Node

Stock Kit

Package Version What it does
@lacspace/indicators v Streaming technical indicators (RSI, MACD, EMA, Bollinger, ATR, ADX, VWAP…)
@lacspace/market v Stock-market money math
@lacspace/market-clock v Holiday-aware, timezone-correct trading clock
@lacspace/paper-trade v Headless paper-trading engine
@lacspace/nepse-ipo v Pure Nepal IPO helpers: NPT (UTC+5:45) wall-clock dates, open IPO/mutual-fund issues (eligibility, dates, extensions) from a public listing JSON, the latest SEBON IPO-pipeline PDF, archive checks. Hermes-safe
@lacspace/marketwrap v Deterministic daily market wrap in English and Nepali from index close, breadth, turnover, sectors and movers — no AI
@lacspace/patterns v Rule-based chart patterns on OHLCV: ATR swings, harmonic XABCD with reversal zones, Elliott impulse, classic patterns
@lacspace/portfolio v Portfolio analytics from holdings + closes: P/L vs WACC, weights, HHI concentration, sector mix, volatility
@lacspace/rules v Trading rules as safe JSON data — indicators, crosses, all/any groups — evaluated and backtested deterministically

Data Kit

Package Version What it does
@lacspace/csv v Correct, RFC 4180 CSV parsing & stringifying
@lacspace/xlsx v Read & write real Excel (.xlsx) with zero deps, no headless browser
@lacspace/money v Money done right (integer minor units, allocation, Intl formatting)
@lacspace/markdown v A small, safe Markdown → HTML renderer
@lacspace/cache v A tiny in-memory cache (LRU + TTL + stale-while-revalidate)

Forms & PDF

Package Version What it does
@lacspace/validate v A tiny, typed schema validator
@lacspace/form v End-to-end form handling for the server
@lacspace/pdf v Generate real PDFs with zero dependencies

DX & Utilities

Package Version What it does
@lacspace/humanize v Turn machine values into human-readable text (bytes, durations, relative time…)
@lacspace/color v Parse, convert, manipulate and check colours
@lacspace/id v Unique IDs done right (UUID, nanoid-style, sortable)
@lacspace/retry v Resilience for flaky calls (backoff, timeout, circuit breaker)
@lacspace/case v Convert strings between cases
@lacspace/analytics-lite v Privacy-first, cookieless web analytics

Nepal toolkit

Package Version What it does
@lacspace/nepali-date v Bikram Sambat (BS) ↔ Gregorian (AD) date conversion
@lacspace/nepali-utils v Everyday Nepal helpers (NPR words, phone, PAN/VAT, provinces…)
@lacspace/translit v Nepali⇄English name transliteration + cross-script fuzzy name matching (Poudel/पौडेल), honorifics, script-ratio/language-mix analysis
@lacspace/nepal-holidays v Official Nepal public holidays by BS year from the Home Ministry gazette — BS+AD dates, en/ne names, scope (national/regional/women/community), Dashain/Tihar ranges
@lacspace/preeti v Preeti ⇄ Unicode for Nepali legacy-font text, both directions, plus detection of pasted Preeti
@lacspace/nepali-typing v Romanised Nepali → Devanagari typing with per-word candidates (namaste → नमस्ते), case endings, learns picks — React Native safe
@lacspace/nepali-match v Nepali/English whole-word matching: spelling-variant folding, postpositions allowed (झापाको → Jhapa, पर्वतारोही ≠ Parbat), exact-case acronyms, near() in-sentence, all 77 districts

AI Kit

Zero-dependency, provider-agnostic, keyless building blocks for LLM apps — bring your own key.

Package Version What it does
@lacspace/ai v One chat()/stream() API over OpenAI, Anthropic, Gemini & any OpenAI-compatible endpoint
@lacspace/prompt v Typed prompt templates — variable names inferred from the string, so .render() is type-checked
@lacspace/tokenizer v Token estimator, LLM cost calculator & context-budget manager (no 3 MB wasm)
@lacspace/json-repair v Extract & repair JSON from messy LLM output (fences, trailing commas, truncation)
@lacspace/chunk v RAG text splitter — recursive/markdown/code/sentence with a token-aware lengthFn
@lacspace/stream v SSE + streaming-LLM parser → async iterator, normalized across OpenAI & Anthropic
@lacspace/ai-tools v Define function-calling tools once → any provider spec + validated runtime dispatch

Testing Kit

Zero-dependency, isomorphic, runner-agnostic testing primitives — work in vitest/jest/node:test or standalone.

Package Version What it does
@lacspace/expect v Fluent assertions — deep-equal, async, asymmetric & expect.extend custom matchers
@lacspace/spy v Spies, stubs, spyOn & deterministic fake timers
@lacspace/fixtures v Typed, seeded test-data factories — sequences, traits, associations
@lacspace/snapshot v Stable serializer + inline & file (.snap) snapshot matchers

Dates & Time Kit

Date math, durations, timezones and time ranges — a tiny date toolkit that complements @lacspace/humanize (display) and @lacspace/nepali-date (BS↔AD).

Package Version What it does
@lacspace/datetime v Immutable date math, token format/parse, diff & comparisons — a tiny date-fns
@lacspace/duration v ISO-8601 duration type — parse, normalize & arithmetic, calendar-honest
@lacspace/timezone v IANA offsets & zoned↔UTC conversion via Intl, DST-aware, no bundled tz data
@lacspace/interval v Time ranges, merge/free-busy, date iteration & business-day math

🌍 Global Data Kit

Reference data and validators for building for the whole world — countries, currencies, bank accounts, tax ids, phone numbers and postal codes. Cross-checked against ICU and ISO, self-verifying via real check digits.

Package Version What it does
@lacspace/country v ISO 3166-1 countries — alpha-2/3/numeric, names + aliases, calling codes, currencies, TLDs, regions, flags
@lacspace/currency v ISO 4217 currencies — codes, minor units, symbols, names, fund codes, Intl-free formatting
@lacspace/iban v IBAN validate/parse/format for every registry country (MOD 97-10) + BIC/SWIFT + ISIN
@lacspace/tax-id v EU VAT (27 + GB/XI), GSTIN/PAN, ABN/ACN/TFN, EIN, CPF/CNPJ, UEN and more — real checksums
@lacspace/phone v Parse, validate and format international phone numbers — E.164, national, country detection
@lacspace/postal-code v Validate and normalise postal codes for 130 countries — ZIP, postcode, PIN, CEP

🧩 Components Kit

A dependency-free React UI kit — every colour, radius and shadow is a --lac-* CSS variable, light + dark themes included, server-render safe. Browse the gallery.

Package Version What it does
@lacspace/components v 60+ accessible React components — buttons, inputs, selects, modals, tabs, toasts, badges…
@lacspace/charts v Real-SVG React charts — line, area, bar, donut, sparkline, gauge, heatmap, radar, candlestick
@lacspace/table v React data table — sort, filter, search, paginate, select, resize, pin, group, CSV export
@lacspace/date v React date & time pickers — calendar, range, month/year, time, date-time, scheduler grid

🔔 Web Engagement Kit

Keep users engaged with no vendor and no keys — push, PWA, toasts, CAPTCHA, realtime and consent.

Package Version What it does
@lacspace/web-push v Web Push with pure Web Crypto (VAPID + RFC 8291) — no Firebase, no FCM account
@lacspace/pwa v Generate a production service worker + web manifest, register it, drive the install prompt
@lacspace/notify v In-app toast notifications — store, vanilla renderer and React <Toaster/> + useToast
@lacspace/captcha v Keyless proof-of-work CAPTCHA (ALTCHA-style) — HMAC-signed challenges, drop-in widget
@lacspace/sse v Server-Sent Events hub — channels/rooms, Web-standard + Node handlers, browser client, useSSE
@lacspace/consent v GDPR cookie consent — store, banner, React binding, cookie-backed so the server can gate too

📰 Newsroom Kit

Deterministic building blocks for an AI newsroom — do the grounding, extraction and fitting the model doesn't need to.

Package Version What it does
@lacspace/factcheck-lite v Verify every number, amount, %, date (AD + Bikram Sambat) and named entity in a draft appears in the sources — catches fabricated figures without an LLM rewrite
@lacspace/trend-detect v Burst/trending detection over your own items — z-score vs a rolling baseline, per category, en+ne; rank the writer queue by what's rising
@lacspace/feed-reader v Read side of @lacspace/rss — parse fetched RSS/Atom/RDF/JSON Feed into one shape, autodiscover a page's feeds, and score each source's health (staleness, duplicate/poisoned, spikes, error rate) so a big source list prunes itself
@lacspace/datecheck v Article date extraction incl. Bikram Sambat — fresh / stale / upcoming verdicts, chrome-aware
@lacspace/extractive v TextRank briefs, key facts, headline candidates, Devanagari-aware sentence splitting and an outlet-name scrubber
@lacspace/triage v Pre-write triage: rank story candidates by freshness, independent sources, trend and novelty before spending AI tokens
@lacspace/sensitivity v Zero-AI first pass for the sensitive-story gate (courts, deaths, elections, minors, allegations) in en+ne, with a certainty level
@lacspace/packfix v Repair a failed fact-pack without a model rewrite — unbacked names, copied sentences, tone words
@lacspace/datanews v Bilingual stories straight from data: gold/silver, NRB forex, NEPSE close, DHM weather, fuel prices — every number from your input
@lacspace/datacards v Official data (NRB rates, gold, fuel, DHM, AQI, NEPSE) → bilingual card content
@lacspace/hookwriter v Platform-fitted hooks, captions and hashtags per network; BREAKING only when it is
@lacspace/commentguard v Comment moderation for news sites — abuse, threats, personal data, spam and floods in English, Nepali and romanised Nepali
@lacspace/sourcewatch v Re-verify that official pages and PDFs still back your facts — streamed fetch, pure-JS PDF text, whole-number matching, placeholder and TLS-chain detection, change hashes
@lacspace/gov-notices v Nepali government & university notice boards (PSC, NEB, SEE, TSC, CTEVT, NEC…) → dated items with attachments, BS→AD dates, newSince() and results-out tags
@lacspace/trends v Official trending topics and hashtags, with relevance scoring against a story
@lacspace/quizpoll v Quizzes, polls and did-you-know cards from an article — typed, same-kind distractors, no LLM
@lacspace/explainer v Explainer and Q&A structures from an article, grounded in its own sentences
@lacspace/postbandit v Thompson-sampling bandit to learn which post variants perform
@lacspace/postplan v Pick video / image / carousel / text per story and platform so a feed gets a natural mix

⚡ LLM Efficiency Kit

Do the expensive model's cheap work with zero-dep tools, so a free-tier key goes far further — feed the model less, and only when it's actually needed.

Package Version What it does
@lacspace/condense v Extractive multi-source condenser — BM25 ranking, dedupe, keep numbers/quotes/entities, token budget, Devanagari-aware; cuts LLM input ~50% on overlapping sources
@lacspace/screen v Cheap lexical content screener / LLM admission gate — weighted multi-language lexicons, negation, gazetteer, clear/review/block; skips the model on clearly-clean or clearly-flagged text
@lacspace/keyphrase v Extractive tags/hashtags/entities/category-votes (RAKE+TF-IDF), en+ne stopwords, Devanagari-aware — stop generating tags with the LLM
@lacspace/llm-cache v Content-hash cache for LLM calls (model family + prompt version + input); pluggable store, TTL, wrap(), stale-if-error — retries after a 429 never pay twice
@lacspace/keypool v Provider-agnostic key rotation + RPM/RPD/TPM/TPD accounting (per model), 429 cooldown, invalid-key quarantine, shared state — N free keys act as one quota
@lacspace/conductor v One interface over every describe()-capable package: token-light command catalogue for an LLM, plan validation, safe execution

🎬 Creative Kit

Turn a story into posts and short video without a design or video team — deterministic, local, free assets only.

Package Version What it does
@lacspace/stockmedia v Free stock photo / video finder (Pexels, Pixabay) with licence-safe metadata
@lacspace/montage v ffmpeg video timelines — cuts, Ken Burns, overlays, multi-cut plans
@lacspace/audiomix v Music + voice mixing with ducking and loudness targets; free-music finder
@lacspace/newscard v Branded image posts and table cards rendered to PNG
@lacspace/thumbgen v Five video thumbnail layouts from a headline and image
@lacspace/motiongfx v Lower thirds, stingers, tickers and auto-shorts motion graphics
@lacspace/captionsync v Word-timed karaoke captions (ASS) synced to speech
@lacspace/speakable v Text → spoken form for TTS (numbers, dates, units) with timing alignment
@lacspace/tts v Text-to-speech runner (edge-tts / piper) that maps audio timings back to the original text

🧠 AI App Kit

Composable, keyless building blocks for RAG, agents, evals and safety — every model, store and splitter is an injectable duck-typed interface. Pairs with the AI Kit above.

Package Version What it does
@lacspace/embeddings v Provider-agnostic embeddings client + pure vector math (cosine, dot, top-k, mean-pool)
@lacspace/vector v In-memory vector store — k-NN with cosine/dot/euclidean, metadata filters, JSON persistence
@lacspace/rag v Index documents, retrieve and assemble prompt context from an injected embedder + store + splitter
@lacspace/rerank v BM25, TF-IDF, keyword overlap, Reciprocal Rank Fusion, hybrid blending and MMR diversity
@lacspace/agent v Tool-calling / ReAct agent loop with an observable trace, maxSteps guard and error recovery
@lacspace/memory v Conversation memory inside a token/message budget — sliding window + optional summariser
@lacspace/eval v Evaluate LLM outputs — deterministic scorers, injectable LLM-as-judge, batch runs, pass rates
@lacspace/moderation v Content safety — PII detection/redaction, toxicity flags, prompt-injection checks, guardrails
@lacspace/providers v Keyless connection presets for Ollama, Groq, OpenRouter, Together, Google, Cohere, Mistral…

📗 Sheets Kit

The engine behind LUMIFORM, Lacspace's in-house spreadsheet grid — with @lacspace/xlsx and @lacspace/csv from the Data Kit.

Package Version What it does
@lacspace/formula v Safe Excel-style formula engine — 100+ functions, no eval, per-function reference metadata
@lacspace/convert v Convert JSON, NDJSON, CSV, TSV, XLSX, YAML, TOML, Markdown, HTML and SQL in one call

🧰 Core Runtime Kit

The primitives every app reaches for — logging, typed errors, events, concurrency, scheduling and state.

Package Version What it does
@lacspace/logger v Structured leveled JSON logging — child loggers, redaction, pluggable transports
@lacspace/result v Result<T,E> and Option<T> — errors as values, tree-shakeable tagged unions
@lacspace/events v Fully type-safe event emitter / pub-sub — once, waitFor, wildcards, isolated errors
@lacspace/queue v Async task queue with a concurrency limit — priority, pause/resume, abort, drain
@lacspace/scheduler v In-process job scheduler — interval, cron and one-shot, overlap protection, jitter
@lacspace/machine v Tiny type-safe finite state machine — guarded transitions, actions, typed context

🎨 Media Kit

Generate real logos and images without AI — and use the official Lacspace brand. Curated JSON "brains" + deterministic geometry, not a diffusion model. Try the Studio · Brand Center.

Package Version What it does
@lacspace/logo v No-AI logo generator — name + keywords → on-brand SVG (5 engines, brand-kit, animate)
@lacspace/image v No-AI image engine — gradients/patterns/mesh, PNG/JPEG/WebP with an exact size budget
@lacspace/brand v The official Lacspace mark, colours & animations — installable favicon/PWA icon, React
@lacspace/og v Open Graph / social card generator for next/og and the edge

🛠️ CLIs & tools

29 standalone CLIs live in this repo alongside the libraries — every one keyless, local and free. Browse the live tools → · Use them from an AI agent with lacspace-mcp →

Package Version What it does
lacspace-mcp v MCP server — gives Claude Code, Claude Desktop, Cursor, VS Code and Windsurf the Lacspace tools: fetch/scrape/crawl, extract documents, audit SEO, enrich domains, check uptime/TLS, validate emails, find leads. One command, no API keys
create-lacspace-app v Scaffold a beautiful, production-ready Next.js app — 9 templates, --fullstack, 18 add-ons — also a library
create-lacspace-seo v Scaffold a complete SEO setup into a Next.js App Router app in seconds
lacspace-scraper v Website scraper — CSS selectors or auto-extract, crawl (robots-aware), real-browser rendering, JSON/CSV/Excel
lacspace-leads v Local-business lead finder (Google Maps → JSON/CSV/Excel). --target 500 sweeps past Google's ~120-per-search ceiling
lacspace-monitor v Change, uptime & SSL monitor — pages, selectors, JSON fields, feeds; Slack/Discord/Telegram/e-mail alerts
lacspace-enrich v Company + contact enrichment from a domain, URL or email — logo, socials, tech stack, DNS/SPF/DMARC, RDAP
lacspace-extract v Text, tables and metadata out of PDF, DOCX, PPTX, EPUB, HTML and spreadsheets — JSON/CSV/Excel/Markdown
lacspace-inspect v One-command website audit graded A–F — SEO, meta, OG, structured data, security headers; CI budgets
lacspace-rag v Local-first RAG in one CLI — index a folder, ask grounded questions; Ollama by default
lacspace-sql v Run SQL over CSV, JSON, NDJSON and Excel files — no database
lacspace-json v The friendly jq — query, convert (JSON/YAML/TOML/CSV/NDJSON), validate, diff, patch, merge
lacspace-schema v Infer JSON Schema from data; generate TypeScript and Zod; validate; OpenAPI components
lacspace-fake v Deterministic fake / seed data — schema-driven rows to JSON, CSV or SQL with relations
lacspace-mock v Local mock REST + GraphQL server from a JSON db or OpenAPI spec — stateful CRUD, chaos, record/replay
lacspace-http v Terminal API client and .http/.rest runner — chain tokens, assert responses as a CI suite
lacspace-webhook v Local webhook receiver, inspector and replayer — signature checks (GitHub/Stripe/Shopify/Slack/Svix)
lacspace-har v Read .har exports offline — waterfalls, diffs, performance budgets, web-vitals estimates
lacspace-size v Bundle size as raw/gzip/brotli — budgets, baselines, treemap, PR comment table
lacspace-deps v Dependency & licence auditor — licences, install size, duplicates, unused/missing, CI gate
lacspace-license v SPDX LICENSE generator, per-file headers, THIRD-PARTY-NOTICES, CI gate
lacspace-changelog v Conventional Commits → grouped CHANGELOG.md, next semver bump, release notes
lacspace-dotenv v Lint, diff, sync, type, run, encrypt and protect .env files; pre-commit hook
lacspace-cron v Explain, validate and preview cron expressions with the next N runs in any timezone
lacspace-i18n v Locale-file linter — missing/unused/untranslated keys, ICU validation, JSON/YAML/.po conversion
lacspace-icon v Complete favicon, PWA and Apple-touch icon set + manifest + OG image from one PNG
lacspace-qr v Spec-correct QR codes to terminal, SVG or PNG — URL, WiFi, vCard, email, SMS, geo presets
lacspace-svg v Optimise SVGs, convert to React/Vue/Svelte/Solid components, sprite sheets
lacspace-excel v JSON/CSV ⇄ .xlsx plus ready-to-fill business templates with live formulas

✨ Conventions

Every @lacspace/* package follows the same rules, so once you've learned one you've learned them all:

  • Zero runtime dependencies for every @lacspace/* library. The lacspace-* tools reuse each other's engines, and the browser-driving ones (lacspace-leads, lacspace-scraper, lacspace-mcp) need Playwright — those are the deliberate exceptions.
  • Isomorphic — Node, edge and browsers. Crypto is always the Web Crypto API, never hand-rolled. Web-Crypto packages require Node 20+; the rest support Node 18+.
  • Dual build — dist/index.js (ESM) + dist/index.cjs (CJS) + dist/index.d.ts types, from tsup.
  • Money is integer minor units — paisa, cents, satoshi — never a float.
  • Immutable & serializable where it makes sense — pure functions return new objects you can JSON.stringify and persist.
  • Published with provenance — every release is built and published by GitHub Actions with npm provenance (SLSA attestations), never from a laptop. Verify any install with npm audit signatures.

🛠️ Local development

git clone https://github.com/lacspace/packages.git
cd npm-packages
npm install            # links the workspace packages
npm test               # vitest across every package
npm run typecheck      # tsc over the whole monorepo

Each package lives in its own folder with a package.json, src/, tsup.config.ts and tsconfig.json extending tsconfig.base.json. Build one with npm run build -w <name>.

Note: the lacspace-* tools live in this repo but are not workspace members (several need Playwright), so they are excluded from the root workspaces, tests and typecheck, and build/test independently from their own folders.

Publishing is CI-only: bump a package.json version, push to main, and .github/workflows/publish.yml runs scripts/publish-pending.mjs, which diffs every package against the registry and publishes what changed, dependencies first, with provenance.

❓ Frequently asked questions

More answers — and rich, searchable versions — at developer.lacspace.com/faq.

Getting started

What is the Lacspace developer platform? A free ecosystem for JavaScript and TypeScript developers: a library of 170+ @lacspace packages (most zero-dependency), a set of standalone command-line tools, and create-lacspace-app — a CLI that scaffolds a finished Next.js app. Everything is documented at developer.lacspace.com and published openly to npm.

Are the Lacspace packages and tools really free? Yes. Every open package and tool is published under the permissive Lacspace Free Licence v1.0 — free to use, ship, modify and use commercially, with no fees, seats or usage metering.

Do I need an API key, account or sign-up? No. There are no API keys, tokens, accounts or dashboards. Install a package or run a tool with npx and it works offline.

What's the difference between the packages, the tools and create-lacspace-app? The @lacspace/* packages are libraries you import into your code. The tools are standalone programs you run from your terminal. create-lacspace-app scaffolds a complete Next.js project pre-wired with the best of both.

Which runtimes are supported? The @lacspace libraries are isomorphic — Node.js, the browser, edge runtimes and serverless. The command-line tools and CLIs need Node.js 20+.

Are the packages written in TypeScript and fully typed? Yes — strict TypeScript with hand-checked type declarations, so you get autocomplete and type safety whether you write TS or JS.

Do the packages add dependencies or bloat my bundle? The @lacspace libraries are zero-dependency and tree-shakeable. The tools keep dependencies minimal too — most are zero-dependency; a few build on the shared scraper engine, and only lacspace-leads drives a real browser.

ESM or CommonJS? Both — every library ships a dual ESM + CommonJS build with correct exports maps.

The @lacspace packages

How many packages are there and what do they cover? 224 packages and CLIs (195 libraries + 29 tools), grouped into kits: Core & Platform SDK, Core Runtime, Security, SEO, React, Components, Web, Web Engagement, App & Utils, Backend, Data, Sheets, Global Data, Commerce & Ledger, Stock, Mail, the AI Kit, the AI App Kit, the Testing Kit, the Dates & Time Kit, the Media Kit, the Newsroom, LLM Efficiency and Creative kits, the Nepal toolkit and regional payments — covering auth, JWTs, crypto, validation, forms, SEO, sitemaps, OG images, money, dates, CSV/Excel, countries/currencies/IBAN/VAT/phone, caching, rate-limiting, LLM chat & streaming, RAG, agents, evals and more.

How do I install a package? npm i @lacspace/seo (or pnpm add / yarn add). Each package page on the site shows the exact command, API and examples.

Which package should I use for a given job? The handbook and per-package reference at developer.lacspace.com/docs include a "which package for what" guide.

Are the packages production-ready? Yes — semver-versioned, tested, and already powering Lacspace's own products and this platform (which dogfoods the SEO, OG, sitemap, robots and RSS packages).

Do they work with Next.js, React and other frameworks? Yes — framework-agnostic and isomorphic, so they work with Next.js, Remix, Astro, SvelteKit, Express, plain Node and the browser. The React Kit adds React hooks/components; a dedicated Next.js helper exists too.

Is there documentation for each package? Yes — a reference page per package, a full handbook with runnable recipes, a downloadable PDF handbook, and a live in-browser playground, all at developer.lacspace.com/docs.

How do they compare to popular alternatives? Many are focused, zero-dependency takes on well-known libraries (a Zod-style validator, a Dinero-style money package, an SWR-style data hook, a jsonwebtoken-style JWT package). The /compare page lines them up side by side.

The developer tools

What developer tools does Lacspace offer? 29 free, keyless CLIs — lacspace-mcp (the tools as an MCP server for Claude, Cursor and VS Code), lacspace-scraper, lacspace-leads, lacspace-monitor, lacspace-enrich, lacspace-extract, lacspace-inspect, lacspace-rag, lacspace-sql, lacspace-json, lacspace-schema, lacspace-fake, lacspace-mock, lacspace-http, lacspace-webhook, lacspace-har, lacspace-size, lacspace-deps, lacspace-license, lacspace-changelog, lacspace-dotenv, lacspace-cron, lacspace-i18n, lacspace-icon, lacspace-qr, lacspace-svg, lacspace-excel, plus create-lacspace-app and create-lacspace-seo.

Can an AI agent use the tools? Yes — npx lacspace-mcp exposes them as an MCP server (stdio) for Claude Code, Claude Desktop, Cursor, VS Code and Windsurf: fetch, scrape, crawl, extract documents, audit SEO, enrich domains, check uptime/TLS, validate emails and find leads, with path sandboxing and SSRF guards built in.

How do I run a tool without installing it? Use npx, e.g. npx lacspace-inspect example.com. Each tool's page lists its commands; you can also npm i -g <tool>.

Are the tools a CLI or a library? Both — a command-line program and a fully-typed library sharing the same engine.

Which formats can they export? JSON, NDJSON, CSV and Excel, with a built-in converter between all four. Several also emit Markdown, HTML reports, .ics calendars or images.

Can I try a tool without installing anything? Yes — most tools have a hosted /try playground on developer.lacspace.com/tools that runs the same engine in your browser.

Do the tools send my data anywhere? No — they run on your machine, use only the open web and open data, and have no telemetry or accounts.

Why is lacspace-leads local-only? It drives a real browser over Google Maps, so it runs on your own machine — hosting it publicly would breach Google's Terms and can't run in a serverless function.

Is scraping and lead-finding done responsibly? The tools are robots.txt-aware where it matters and support polite delays, jitter, rate-limits, retries and a custom User-Agent. You're responsible for using them within each site's terms and applicable law.

Can I use the tools in CI/CD? Yes — lacspace-inspect has --min-grade/--budget, lacspace-har has budgets, lacspace-monitor has --fail-on-change, and lacspace-dotenv has a check gate and pre-commit hook, all exiting non-zero on failure.

create-lacspace-app

What is create-lacspace-app? A scaffolding CLI that writes a complete, production-ready Next.js 15 + Tailwind app in seconds — pre-wired with Lacspace SEO, security headers, robots.txt, a sitemap, a contact form, a ⌘K palette, dynamic OG images and a CI workflow.

How do I scaffold a new app? npx create-lacspace-app, or pass a name and template: npx create-lacspace-app my-site --template saas.

What templates are included? Personal, business, ecommerce, SaaS, blog (a real Markdown blog), docs (a real Markdown docs site) and marketplace — each a complete, deployable Next.js app.

What comes pre-wired? SEO metadata + JSON-LD (@lacspace/seo), a dynamic OG endpoint (@lacspace/og), security headers, robots.txt and sitemap, a typed contact form with honeypot, a ⌘K palette, and a GitHub Actions workflow that gates on an SEO crawl grade.

Do I need to know the Lacspace packages to use it? No — the app works out of the box; the packages are wired in where they help and you can lean on them as much or as little as you like.

Licensing & usage

What licence are the packages and tools under? The Lacspace Free Licence v1.0 — short, permissive and own-branded. Full text: developer.lacspace.com/licenses/lacspace-free-1.0.

Can I use them in commercial and closed-source projects? Yes — commercial, private, closed-source, modification and redistribution are all permitted, royalty-free. Just keep the licence notice.

How does it compare to MIT? Permissive in the same spirit as MIT and BSD — use, modify and ship freely, including commercially — but it's Lacspace's own branded licence. In practice it imposes no more restrictions than a typical permissive open-source licence.

Will Lacspace start charging later? No — the open packages and tools are free, and a published version stays under the licence it shipped with.

Support & staying updated

Where are the docs and source code? Docs at developer.lacspace.com/docs (plus a PDF handbook); source at github.com/lacspace/packages.

How do I report a bug or request a feature? Open an issue at github.com/lacspace/packages/issues with the package/tool name, version and a minimal reproduction.

How do I keep up with new packages and versions? Watch the GitHub repo, follow the @lacspace org on npm, and check the developer platform.

Can I contribute or suggest a new package or tool? Yes — ideas and contributions are welcome via GitHub issues and pull requests.

🤝 Contributing

New contributors are genuinely welcome — and some of the highest-impact contributions are also the easiest.

  • Grow the Media Kit's JSON "brain". The @lacspace/logo generator gets smarter the more curated data it has. Adding a palette, an icon (a 24-grid line SVG with keyword tags) or a font pairing is a small, self-contained PR — no engine changes needed. See CONTRIBUTING.md.
  • Fix a bug or sharpen the docs. Every package has tests; a failing-test-first PR is the fastest path to a merge.
  • Propose a package. Open an issue describing the one job it does. Tiny, focused, zero-dependency wins.
git clone https://github.com/lacspace/packages && cd npm-packages
npm install            # workspaces link automatically
npm test               # vitest across the monorepo

Every package is zero-dependency by default, isomorphic, dual ESM + CJS, fully typed, and ships under the Lacspace Free Licence — keep new work in that spirit and it'll feel right at home. Read CONTRIBUTING.md for conventions.

🌐 Links

Licence

The packages in this repository are free, published under the Lacspace Free Licence v1.0 — permissive freedoms for personal and commercial use. See each package's LICENSE file.

Lacspace also ships Client-specific and Private (proprietary) packages under separate terms — those are not in this repository.


If these save you time, a ⭐ helps other developers find them.

zero-dependency · isomorphic · TypeScript · ESM + CJS · keyless · no-AI logo & image generation · Web Crypto · Node · edge · browser · React · payments · auth · SEO · AI · developer tools

Built by Lacspace · developer.lacspace.com

About

200+ zero-dependency, isomorphic TypeScript packages & CLIs — dual ESM+CJS, types included, keyless, published with npm provenance. Payments, auth, SEO, AI & RAG, global data, dates, testing, a newsroom & creative toolkit, a Nepal toolkit, no-AI logo/image generators, the Lacspace brand kit and lacspace-mcp.

Topics

Resources

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages