The catalog

63 packages, zero dependencies

Every one is isomorphic TypeScript, dual ESM + CJS, and free under the Lacspace Free Licence. Search, filter, switch package manager, and tick the ones you need to build a single install command.

61 shown

Core · 7

Event tracking for Lacspace platforms — batching and an offline queue.

lacspaceanalyticstrackingevents
npm i @lacspace/analytics
1 @lacspace depCorenpm ↗

Privacy-first, cookieless web analytics — page views and custom events sent to your own endpoint. No cookies, no localStorage IDs, no cross-site tracking, no consent banner. Respects Do-Not-Track, auto-tracks SPA navigation, uses sendBeacon. Zero-dependency, isomorphic.

analyticsweb-analyticsprivacycookieless
npm i @lacspace/analytics-lite
0 depsCorenpm ↗

Lightweight, zero-dependency, isomorphic TypeScript HTTP client for Lacspace APIs.

lacspaceapihttp-clientfetch
npm i @lacspace/api
0 depsCorenpm ↗

Authentication flows (login, register, token, refresh) for Lacspace APIs.

lacspaceauthauthenticationlogin
npm i @lacspace/auth
1 @lacspace depCorenpm ↗

Next.js App Router integration for the Lacspace SDK — authenticated server client from cookies, Route Handler & Server Action wrappers, cookie helpers and a middleware auth guard.

nextjsnextapp-routerserver-components
npm i @lacspace/next
1 @lacspace depCorenpm ↗

React hooks and provider for the Lacspace SDK — useAuth, useQuery, useLacspace.

lacspacereacthookssdk
npm i @lacspace/react
1 @lacspace depCorenpm ↗

High-level TypeScript SDK for Lacspace — api, auth, analytics and e-commerce in one client.

lacspacesdkecommerceauth
npm i @lacspace/sdk
3 @lacspace depsCorenpm ↗

Security Kit · 11

Issue & verify API keys the right way — prefixed high-entropy keys, store only the SHA-256 hash, constant-time verify, last-4 display. Isomorphic over Web Crypto.

api-keyapikeytokensecret
npm i @lacspace/apikey
1 @lacspace depSecurity Kitnpm ↗

Safe, boring cryptography over Web Crypto — authenticated AES-256-GCM, PBKDF2 key derivation, SHA-256, HMAC, secure random and constant-time compare. Isomorphic (Node, edge, browser, RN).

cryptoaesaes-256-gcmencryption
npm i @lacspace/crypto
0 depsSecurity Kitnpm ↗

Secure HTTP headers & a typed Content-Security-Policy builder — HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy. Framework-agnostic + Next.js. Zero-dependency, isomorphic.

security-headerscspcontent-security-policyhsts
npm i @lacspace/headers
0 depsSecurity Kitnpm ↗

JSON Web Tokens (HS256/384/512) with strict expiry/issuer/audience checks + secure random & CSRF tokens. Isomorphic over Web Crypto — Node, edge, browser.

jwtjsonwebtokenhs256token
npm i @lacspace/jwt
1 @lacspace depSecurity Kitnpm ↗

Account lockout & brute-force protection (server lock) — N-strikes, exponential backoff, self-resetting window, pluggable store. Zero-dependency, isomorphic.

account-lockoutbrute-forcelogin-securitylockout
npm i @lacspace/lock
0 depsSecurity Kitnpm ↗

Orchestrate multi-factor auth — combine password + TOTP + passkeys into 2FA/3FA step-up flows with NIST assurance levels (AAL). Zero-dependency (bar @lacspace/otp), isomorphic.

mfa2fa3famulti-factor
npm i @lacspace/mfa
2 @lacspace depsSecurity Kitnpm ↗

TOTP & HOTP two-factor auth, Google Authenticator compatible — generate secrets, compute/verify codes and build otpauth:// QR URIs. Built on Web Crypto: runs on Node, edge and browser. Zero-dependency, isomorphic.

otptotphotp2fa
npm i @lacspace/otp
0 depsSecurity Kitnpm ↗

Password hashing & verification — PBKDF2-HMAC-SHA256 (OWASP iterations) with a portable PHC string + a strength estimator. Isomorphic over Web Crypto.

passwordhashpbkdf2password-hashing
npm i @lacspace/password
1 @lacspace depSecurity Kitnpm ↗

Framework-agnostic rate limiting — fixed-window, sliding-window and token-bucket over a pluggable store, with standard RateLimit-* headers. For API routes, middleware and edge. Zero-dependency, isomorphic.

rate-limitrate-limiterthrottletoken-bucket
npm i @lacspace/rate-limit
0 depsSecurity Kitnpm ↗

Redact secrets & PII from strings and objects before logging — masks sensitive keys and patterns (JWTs, API keys, emails, cards, IPs). Safe AWS/Mongo logs. Zero-dependency, isomorphic.

redactmaskpiisecrets
npm i @lacspace/redact
0 depsSecurity Kitnpm ↗

Passkeys / biometric (FaceID, fingerprint, security keys) — browser ceremony helpers + server challenge, options and assertion verification (ES256/RS256) over Web Crypto. Zero-dependency, isomorphic.

webauthnpasskeyfido2biometric
npm i @lacspace/webauthn
0 depsSecurity Kitnpm ↗

SEO Kit · 8

Generate and parse llms.txt and llms-full.txt (the llmstxt.org standard) — a Markdown map of your site for LLMs. Zero-dependency, isomorphic.

llms-txtllms-full-txtllmstxtai-seo
npm i @lacspace/llms-txt
0 depsSEO Kitnpm ↗

Dynamic Open Graph images — a share-card design system you configure once and call per page. Produces a next/og element tree AND a zero-dependency SVG from the same options, with auto-fitting titles, presets, badges and gradients. Zero-dependency, isomorphic.

og-imageopen-graphopengraphsocial-image
npm i @lacspace/og
0 depsSEO Kitnpm ↗

Build and parse robots.txt — typed per-user-agent rules, AI-crawler block presets (GPTBot, ClaudeBot, CCBot, Google-Extended), sitemap refs and Next.js robots.ts output. Zero-dependency, isomorphic.

robots-txtrobotsseocrawler
npm i @lacspace/robots
0 depsSEO Kitnpm ↗

Generate RSS 2.0, Atom 1.0 and JSON Feed 1.1 from one set of items — content syndication for blogs and news. Zero-dependency, isomorphic.

rssatomjson-feedfeed
npm i @lacspace/rss
0 depsSEO Kitnpm ↗

Typed metadata + JSON-LD for modern web apps — schema.org builders (Organization, Article, Product, FAQ, Breadcrumb), a Next.js App Router Metadata helper, the defineSite() SEO Autopilot engine, and an on-page SEO auditor with a CI sitemap crawler that fails the build when SEO regresses (`npx @lacspace/seo audit <url>` / `crawl <site> --min-grade A`). Zero-dependency, isomorphic.

seojson-ldstructured-dataschema-org
npm i @lacspace/seo
0 depsSEO Kitnpm ↗

Search-engine site verification — meta tags, Next.js verification metadata and file tokens for Google Search Console, Bing, Yandex, Baidu, Pinterest, Ahrefs, Facebook & more. Zero-dependency, isomorphic.

site-verificationgoogle-search-consolebing-webmasteryandex
npm i @lacspace/site-verify
0 depsSEO Kitnpm ↗

Generate sitemap.xml, sitemap indexes and Next.js sitemaps — image/video/news extensions, hreflang alternates, auto-split at 50k URLs. Zero-dependency, isomorphic.

sitemapsitemap-xmlsitemap-generatorseo
npm i @lacspace/sitemap
0 depsSEO Kitnpm ↗

Turn any text into a clean, SEO-friendly URL slug — transliterates diacritics, collapses separators, and guarantees uniqueness against an existing set. Zero-dependency, isomorphic.

slugifyslugurl-slugseo
npm i @lacspace/slugify
0 depsSEO Kitnpm ↗

React Kit · 7

Essential, SSR-safe React hooks — useLocalStorage, useDebounce, useMediaQuery, useOnClickOutside, useCopyToClipboard and 20+ more. Zero-dependency, fully typed, isomorphic.

reactreact-hookshooksuselocalstorage
npm i @lacspace/hooks
0 depsReact Kitnpm ↗

Ergonomic keyboard shortcuts for React — combos (mod+k), key sequences (g then d), scopes, and pretty display formatting (⌘K). SSR-safe, respects form fields, zero-dependency, fully typed.

reacthotkeyskeyboard-shortcutsusehotkeys
npm i @lacspace/hotkeys
0 depsReact Kitnpm ↗

Tiny data fetching for React with a shared cache, request de-duplication, stale-while-revalidate, focus/reconnect revalidation, and mutations. useQuery + useMutation in ~2KB. Zero-dependency, SSR-safe, fully typed.

reactdata-fetchingusequeryusemutation
npm i @lacspace/query
0 depsReact Kitnpm ↗

Minimal global state for React in ~1KB — create a store, use selectors, no provider. Built on useSyncExternalStore with a persist middleware and shallow equality. Zero-dependency, SSR-safe, fully typed.

reactstate-managementstoreusesyncexternalstore
npm i @lacspace/store
0 depsReact Kitnpm ↗

SSR-safe dark / light / system theme for React — a tiny ThemeProvider, a useTheme hook, and a no-flash inline script. Persists to storage, follows the OS, toggles a class or data-attribute. Zero-dependency, framework-agnostic, fully typed.

reactthemedark-modelight-mode
npm i @lacspace/theme
0 depsReact Kitnpm ↗

A tiny, dependency-free React kit that makes a page feel alive — scroll reveals, animated counters, gradient text, tilt cards, marquees, a typewriter and a ⌘K command palette. No animation library, no CSS import. Respects prefers-reduced-motion; Tailwind-friendly.

reactreact-componentsanimationscroll-reveal
npm i @lacspace/ui
0 depsReact Kitnpm ↗

Headless list virtualization for React — render only the rows in view, with fixed or dynamically-measured sizes, overscan, and scroll-to-index. useVirtualizer in ~2KB. Zero-dependency, SSR-safe, fully typed.

reactvirtualizationvirtual-listusevirtualizer
npm i @lacspace/virtual
0 depsReact Kitnpm ↗

App & Utils Kit · 12

A tiny in-memory cache — LRU eviction, per-entry TTL and stale-while-revalidate, plus wrap()/memoize() to cache any async function with in-flight de-duplication. Zero-dependency, isomorphic.

cachelrulru-cachettl
npm i @lacspace/cache
0 depsApp & Utils Kitnpm ↗

Convert strings between cases — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case. Handles acronyms & numbers. Zero-dependency, isomorphic.

casecamelcasepascalcasesnakecase
npm i @lacspace/case
0 depsApp & Utils Kitnpm ↗

Parse, convert, manipulate and check colours — hex/rgb/hsl, lighten/darken/mix/alpha, and WCAG contrast for accessible palettes. Zero-dependency, isomorphic.

colorcolourhexrgb
npm i @lacspace/color
0 depsApp & Utils Kitnpm ↗

Typed, validated environment variables — declare a schema, validate process.env at boot, get a typed frozen object or a clear fail-fast error. A zero-dependency t3-env / envalid alternative.

envenvironment-variablesdotenvenv-validation
npm i @lacspace/env
0 depsApp & Utils Kitnpm ↗

Feature flags & A/B experiments with no SaaS and no infrastructure — deterministic bucketing (same user always gets the same result), targeting rules, percentage rollouts and weighted variants. Synchronous, zero-dependency, isomorphic.

feature-flagsfeature-togglefeature-flagab-testing
npm i @lacspace/flags
0 depsApp & Utils Kitnpm ↗

End-to-end form handling for the server — turn FormData into typed, validated data with a honeypot + timing spam guard, and get back your data or per-field errors ready to re-render. Shaped for Next.js Server Actions. Zero-dependency, isomorphic.

formform-handlingform-validationformdata
npm i @lacspace/form
0 depsApp & Utils Kitnpm ↗

Turn machine values into human-readable text — bytes, durations, relative time, ordinals, plurals, compact numbers and grammatical lists. Zero-dependency, isomorphic.

humanizepretty-bytesformat-bytesduration
npm i @lacspace/humanize
0 depsApp & Utils Kitnpm ↗

Unique IDs done right — UUID v4, time-sortable UUID v7, Nano-ID-style and short URL-safe codes. Cryptographically random (Web Crypto), zero-dependency, isomorphic.

uuiduuidv4uuidv7uuid-v7
npm i @lacspace/id
0 depsApp & Utils Kitnpm ↗

A small, safe Markdown → HTML renderer — headings with anchor ids, nested & task lists, fenced code, blockquotes, GFM tables, images and links. HTML in the source is escaped. Includes extractHeadings() for a table of contents. Zero-dependency, isomorphic.

markdownmdmarkdown-to-htmlmarked-alternative
npm i @lacspace/markdown
0 depsApp & Utils Kitnpm ↗

Money done right — integer minor units (no floating-point cent bugs), currency-safe arithmetic, remainder-preserving allocation/split, and localized formatting via Intl. Zero-dependency, isomorphic.

moneycurrencydinero-alternativeminor-units
npm i @lacspace/money
0 depsApp & Utils Kitnpm ↗

Resilience for flaky calls — retry with exponential backoff & jitter, per-call timeouts, and a circuit breaker. Zero-dependency, isomorphic.

retrybackoffexponential-backoffjitter
npm i @lacspace/retry
0 depsApp & Utils Kitnpm ↗

A tiny, typed schema validator — the ergonomics of zod (parse/safeParse, object/array/enum/union, coercion, type inference) in a zero-dependency, isomorphic package. Great for forms, API bodies, env and query strings.

validationschemavalidatorzod-alternative
npm i @lacspace/validate
0 depsApp & Utils Kitnpm ↗

Backend Kit · 4

Make any operation exactly-once with an idempotency key — replay stored results on retries, safe under concurrency, with optional request fingerprinting. Framework-agnostic, pluggable store, zero-dependency, isomorphic.

idempotencyidempotency-keyidempotentexactly-once
npm i @lacspace/idempotency
0 depsBackend Kitnpm ↗

Generate real PDFs — invoices, receipts & documents — with zero dependencies and no headless browser. Accurate text layout, auto page-breaks, batteries-included invoice() & receipt() generators. Isomorphic (Node, edge, browser).

pdfpdf-generatorinvoiceinvoice-pdf
npm i @lacspace/pdf
0 depsBackend Kitnpm ↗

HMAC-signed, expiring URLs & tokens over Web Crypto — secure download links, magic-login links, unsubscribe links and one-time-action tokens. Tamper-proof, timing-safe, zero-config. Isomorphic (Node, edge, browser).

signed-urlsigned-tokenhmacexpiring-url
npm i @lacspace/signed-url
1 @lacspace depBackend Kitnpm ↗

The webhook toolkit for both directions — sign & deliver outgoing webhooks with retries, and verify incoming ones (timing-safe, replay-protected) with Stripe / GitHub / Shopify presets. Plus event ids & idempotency. One internal dependency (@lacspace/crypto), isomorphic.

webhookwebhookswebhook-signatureverify-webhook
npm i @lacspace/webhooks
1 @lacspace depBackend Kitnpm ↗

Mail Kit · 4

Compose bulletproof, responsive, dark-mode-aware HTML emails from simple blocks — buttons, OTP codes, invoices — with ready-made OTP/welcome/alert/invoice templates. Zero-dependency, isomorphic.

email-templatehtml-emailresponsive-emailtransactional-email
npm i @lacspace/email-templates
0 depsMail Kitnpm ↗

Smart email validation — syntax, disposable/temp-mail detection, role & free-provider flags, Gmail normalization and 'did you mean?' typo suggestions. Zero-dependency, isomorphic.

email-validationemail-validatordisposable-emailtemp-mail
npm i @lacspace/email-validate
0 depsMail Kitnpm ↗

Best-effort email deliverability checks for Node — syntax + disposable, MX record lookup and an optional SMTP RCPT probe (no mail sent). Zero npm dependencies.

email-verificationemail-verifymx-lookupsmtp-check
npm i @lacspace/email-verify
1 @lacspace depMail Kitnpm ↗

A tiny zero-dependency SMTP client for Node backends — send email over raw net/tls with STARTTLS, AUTH, attachments and provider presets (Hostinger, Gmail, Outlook, Zoho…). One-line setup.

smtpemailmailersend-email
npm i @lacspace/mailer
0 depsMail Kitnpm ↗

StockKit · 4

Streaming technical indicators (RSI, MACD, EMA, Bollinger, ATR, Supertrend, ADX, VWAP) with O(1) incremental updates for live price feeds. Zero-dependency.

technical-indicatorstradingstock-marketrsi
npm i @lacspace/indicators
0 depsStockKitnpm ↗

Stock-market money math — P&L, returns, CAGR, XIRR, tick-size rounding, circuit limits, position sizing and an Indian brokerage & charges calculator (STT, GST, SEBI, stamp). Zero-dependency.

stock-markettradingbrokerage-calculatorstt
npm i @lacspace/market
0 depsStockKitnpm ↗

Holiday-aware, timezone-correct trading clock — is NSE/BSE open now, next open/close, pre-open, holidays. Bring your own exchange spec. Zero-dependency.

market-hourstrading-hoursstock-marketnse
npm i @lacspace/market-clock
0 depsStockKitnpm ↗

Headless paper-trading engine — virtual wallet, market/limit/stop orders that fill against live prices, positions, holdings and live P&L. The simulator core behind StockYatra. Zero-dependency.

paper-tradingtrading-simulatorstock-marketvirtual-trading
npm i @lacspace/paper-trade
0 depsStockKitnpm ↗

Data Kit · 2

Correct, RFC 4180 CSV parsing & stringifying — quoted fields, escaped quotes, newlines in cells, CRLF, custom delimiters and typed row objects. Zero-dependency, isomorphic.

csvcsv-parsercsv-parsecsv-stringify
npm i @lacspace/csv
0 depsData Kitnpm ↗

Write real Excel (.xlsx) files with zero dependencies and no headless browser — objects or arrays to a workbook, correct types (string/number/boolean/Date), bold headers, column widths, multiple sheets. Isomorphic (Node, edge, browser).

xlsxexcelexcel-exportxlsx-writer
npm i @lacspace/xlsx
0 depsData Kitnpm ↗

Nepal Toolkit · 2

Bikram Sambat (BS) ↔ Gregorian (AD) date conversion — zero-dependency, isomorphic, with Nepali formatting.

nepali-datebikram-sambatbs-datenepali-calendar
npm i @lacspace/nepali-date
0 depsNepal Toolkitnpm ↗

Everyday Nepal helpers — NPR currency formatting, Devanagari numerals, amount-in-words, validators, provinces. Zero-dependency.

nepalnepalinprcurrency
npm i @lacspace/nepali-utils
0 depsNepal Toolkitnpm ↗

CLIs · 2

Scaffold a finished Next.js app from one of 8 templates in ~0.15s — now with --theme.

npm create lacspace-app@latest

Drop a complete SEO setup into an existing Next.js App Router app.

npm create lacspace-app@latest
Prefer a guided tour?

Read the handbook

Install, use, integrate and upgrade — with real code for the packages you'll reach for most.