@stacksjs/server 0.75.571
Basename is uppercase README.mdDeclares prepublishOnly or postversion key
SHA-2566746b16f7fa788a65925545a89ac86bc337d237b9db8107f3bf258f618885abe
Evidence
1# Stacks Server
2
3## ☘️ Features
4
5- easily access the server's configuration
6
7## 🤖 Usage
8
9```bash
10bun install -d @stacksjs/server
11```
12
13Now, you can use it in your project:
14
15```js
16import { server } from '@stacksjs/server'
17
18console.log('server config is', server)
19```
20
21Learn more in the docs.
22
23## 🧪 Testing
24
25```bash
26bun test
27```
28
29## 📈 Changelog
30
31Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
32
33## 🚜 Contributing
34
35Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
36
37## 🏝 Community
38
39For help, discussion about best practices, or any other conversation that would benefit from being searchable:
40
41[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
42
43For casual chit-chat with others using this package:
44
45[Join the Stacks Discord Server](https://stacksjs.com/discord)
46
47## 📄 License
48
1export async function browserAutoImportSurface(){try{const[runtime,demand,caching]=await Promise.all([import("@stacksjs/stx/runtime-globals"),import("@stacksjs/stx/unresolved-identifiers"),import("@stacksjs/stx/caching")]);const source=await caching.getCachedSignalsRuntime(false);const aliases=[...source.matchAll(/window\.([A-Za-z_$][\w$]*)\s*=/g)].map((match)=>match[1]).filter((name)=>!name.startsWith("__")&&!name.startsWith("$"));return{runtime:[...new Set([...runtime.STX_RUNTIME_GLOBALS,...aliases])],macros:runtime.COMPILE_TIME_ONLY_GLOBALS,demand:demand.SERVER_ONLY_COMPOSABLES}}catch{return}}funct …
1:1979… licitly.","","## STX client scripts","","These names belong to `<script client>` and component client scripts. A TypeScript","module imported by a client script declares its own imports; template bind …
1:2443… ser){const macros=new Set(browser.macros);const runtime=new Set(browser.runtime);lines.push("### Runtime and compiler bindings","",names(browser.runtime.filter((name)=>!macros.has(name))),"","### Compiler macros","",names(browser.macros),"","### Demand-delivered calls","","The installed …
1/**
2 * Production server config - minimal, no runtime file loading
3 * This config is inlined at build time for compiled binaries
4 * @defaultValue `{ server: { host: '0.0.0.0' } }`
5 */
6export declare const config: {
⋯16 lines
Showing the top 5 files — 6 more files (32 regions) not shown.
No evidence locations were recorded for this file. Raw result