https://github.com/graphform/swim-runtime-js
Frameworks for building massively real-time streaming WARP client applications.
https://github.com/graphform/swim-runtime-js
Last synced: 7 months ago
JSON representation
Frameworks for building massively real-time streaming WARP client applications.
- Host: GitHub
- URL: https://github.com/graphform/swim-runtime-js
- Owner: graphform
- Created: 2019-07-16T17:39:17.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T21:34:51.000Z (over 2 years ago)
- Last Synced: 2025-06-23T03:54:31.559Z (8 months ago)
- Language: TypeScript
- Homepage: https://swimos.org
- Size: 6.77 MB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
The Swim frontend runtime provides foundation frameworks for building massively
real-time streaming applications. The runtime provides applications with:
- **Modern Foundation:** Dependency-free, 100% TypeScript foundation framework
for Node.js and browser apps.
- **Shared States:** Multiplexed streaming API client for continuously
synchronizing real-time shared states with backend Web Agents.
## Documentation
- [API Docs][api-docs]
## Usage
#### npm
```sh
npm install @swim/runtime
```
#### browser
```html
```
## Development
#### Build environment
Install build dependencies:
```sh
npm install
```
#### Build script
The Swim TypeScript stack is compiled using a custom build script.
Before building the stack, first bootstrap the build script.
```sh
npm run bootstrap
```
Use `npx swim-build` to execute build commands:
```sh
npx swim-build help # prints build script usage instructions
npx swim-build pkgs # lists buildable packages
```
#### Compiling sources
The default `swim-build` command will compile, lint, api-extract, and bundle
TypeScript sources. To compile all libraries, of all packages, run:
```sh
npx swim-build
```
To compile a subset of packages, include a `--pkgs` (`-p`) option followed
by a comma-separated list of package names. For example, to build the `core`
package, run:
```sh
npx swim-build -p core
```
#### Running tests
The `test` subcommand reruns unit tests. For example, to compile and test
the `core` package and its dependencies, run:
```sh
npx swim-build test -p core -r
```
#### Continuous development builds
The `watch` subcommand automatically rebuilds packages when dependent files
change. For example, to continuously build the `host` package, run:
```sh
npx swim-build watch -p host
```
#### Generating documentation
The `doc` subcommand generates API documentation:
```sh
npx swim-build doc -p runtime
```
## Contributing
Take a look at the [Contributing Guide][contributing] to learn about our
submission process, coding standards, and more.
[api-docs]: https://docs.swimos.org/js/4.x/modules/_swim_runtime.html
[contributing]: CONTRIBUTING.md