@sveltesentio/core weekly downloads statistics
By sveltesentio · npm · Vite plugins
Vite plugin, env schema, error types, id/clock utils — sveltesentio core
@sveltesentio/core has 6,891 recorded weekly downloads on npm, ranking #1264 of 2,819 tracked listings.
About @sveltesentio/core
@sveltesentio/core
Core utilities — rune helpers, type-safe fetch, CSP hooks, error boundaries
Part of the sveltesentio composable SvelteKit framework.
Status
✅ v0.1.0 — every entry point below has shipped. The table is the single list;
it is checked against package.json by the Docs drift CI job, so a second
enumeration here would only drift away from it.
Requirements
Zod v4 only. @sveltesentio/core schemas require zod@^4
(ADR-0001); v3 is unsupported — a v3 schema
breaks createEnv error reporting (z.treeifyError) and the @sveltesentio/forms
zod4 adapter. Downstream apps on zod@^3 must upgrade first; follow the
Zod v3 → v4 migration guide.
Installation
pnpm add @sveltesentio/core
Entry points
Most of these are also re-exported from the package root, so ./clock, ./csp,
./env, ./id, ./problem and ./vite can be imported either way. Three are
not interchangeable:
./httpis reachable only through the subpath —problemMiddlewareis not re-exported from the root../sentiois an ambient declaration, not a value../eslintis re-exported from the root only as thesentioEslintplugin object and thenoDirectTimerule; reach the other two rules through the plugin, or import the subpath.
| Subpath | Provides |
|---|---|
. | The re-export surface for everything below. |
./clock | Clock, useClock, getClock, setClock, withClock, createHydrationClock, systemClock — the injected time seam. |
./csp | createNonce, nonceSource, hashSource, STRICT_DYNAMIC, SELF and the CspDirectives types. |
./env | createEnv, requireEnv, EnvValidationError — Zod-validated environment access. |
./eslint | The flat-config ESLint plugin. See below. |
./http | problemMiddleware — turns a thrown error into an RFC 9457 response. |
./id | newId (UUIDv7), newIdV4, isId, isIdV4, brandId, idToTimestamp. |
./problem | ProblemError, parseProblem, problemFromDocument, problemFromResponse — RFC 9457 Problem Details. |
./sentio | Ambient declaration for the $sentio virtual module sentioPlugin emits. Add "@sveltesentio/core/sentio" to compilerOptions.types. |
./vite | sentioPlugin and checkBundleBudget — per-chunk size budgets that fail the build. |
./eslint
A flat-config plugin bundling the three invariants that hold across packages. Adopters enable them by rule name, so the names are the API:
| Rule | Reports |
|---|---|
@sveltesentio/no-direct-time | Date.now(), zero-argument new Date() and performance.now(). Time flows through the injected Clock so it stays deterministic and testable (ADR-0052). |
@sveltesentio/chart-a11y-wrapper | A layerchart / uplot visual with no <ChartFigure> ancestor, so the WCAG 2.2 SC 1.1.1 text alternative cannot be skipped (ADR-0013). |
@sveltesentio/no-unsanitised-html | Assignment to innerHTML, outerHTML or insertAdjacentHTML unless the value came from sanitizeHtml(...) or a .sanitize(...) call. Svelte's {@html} is covered by svelte/no-at-html-tags; this is the TypeScript side. |
// eslint.config.js
import sentio from '@sveltesentio/core/eslint';
export default [
{
files: ['src/**/*.ts'],
plugins: { '@sveltesentio': sentio },
rules: {
'@sveltesentio/no-direct-time': 'error',
'@sveltesentio/no-unsanitised-html': 'error',
},
},
{
files: ['src/**/*.svelte'],
plugins: { '@sveltesentio': sentio },
rules: { '@sveltesentio/chart-a11y-wrapper': 'error' },
},
];
Files that legitimately read ambient time — a clock implementation, a token TTL
stamp, an audit timestamp — belong in the config's ignores rather than
carrying an inline disable, so the exemption is reviewable in one place.
See the monorepo README and docs/ for design principles and usage.
License
EUPL-1.2 © lusoris. Releases up to and including 0.3.0 are MIT.
Description from the npm listing.
- sveltesentio
- sveltekit
- vite-plugin
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 (1)Similar npm Vite plugins plugins
All 20 @sveltesentio/core 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/@sveltesentio/core. First seen Nov 4, 2026; last successful collection Nov 4, 2026. See the methodology.