Home / npm packages / svelte

svelte source code

Every file of svelte@5.57.1 as published on npm: 387 files, 2.9 MB. Search them by exact text or regex, in milliseconds.

It uses: fetch(), crypto.

What svelte uses

APIIn svelte
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 4 files
e.g. src/index-client.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. src/internal/server/crypto.js
See the lines
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
compiler/index.js873 KB
types/index.d.ts127 KB
elements.d.ts88 KB
src/compiler/errors.js68 KB
src/compiler/migrate/index.js64 KB
src/compiler/phases/2-analyze/index.js42 KB
src/compiler/phases/1-parse/utils/entities.js41 KB
src/compiler/phases/scope.js40 KB
src/internal/client/reactivity/batch.js39 KB
src/compiler/phases/2-analyze/css/css-prune.js36 KB
src/compiler/warnings.js36 KB
src/internal/server/renderer.js29 KB
src/compiler/print/index.js29 KB
src/compiler/phases/2-analyze/visitors/shared/a11y/index.js28 KB
src/compiler/phases/1-parse/state/element.js27 KB
src/compiler/phases/3-transform/client/visitors/RegularElement.js27 KB
src/internal/client/runtime.js24 KB
src/compiler/phases/3-transform/client/transform-client.js21 KB
src/internal/client/dom/elements/attributes.js21 KB
src/compiler/phases/1-parse/state/tag.js20 KB
src/internal/client/dom/blocks/each.js19 KB
src/internal/client/reactivity/effects.js18 KB
src/compiler/utils/ast.js18 KB
src/compiler/phases/3-transform/server/visitors/shared/element.js18 KB
src/compiler/legacy.js17 KB
src/compiler/utils/builders.js17 KB
src/compiler/phases/3-transform/client/visitors/shared/component.js16 KB
src/compiler/phases/1-parse/read/style.js16 KB
src/internal/client/errors.js16 KB
src/compiler/phases/3-transform/client/visitors/shared/utils.js16 KB

Questions

How many files are in svelte?

Version 5.57.1 of svelte publishes 387 files of source, 2.9 MB in all, not counting images, fonts and source maps.

Does svelte use eval?

No: svelte doesn't call eval() anywhere in its published files.

Does svelte start other programs?

No: svelte doesn't use child_process anywhere in its published files.

Does svelte run an install script?

No: svelte has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine