This package has been archived, and as such it is read-only.
@rivet-gg/actor-core@24.6.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
rivet-gg/rivet⚫ Core low-level types for working with the Rivet Actor runtime.
This package works with Deno
JSR Score
70%
Published
3 months ago (24.6.2)
Rivet Actor Core
Core low-level types for working with the Rivet Actor runtime.
This package is for advanced low-level usage of Rivet. If getting started, please use the Actor SDK.
Getting Started
Example
import { Hono } from "hono"; import { upgradeWebSocket } from "hono/deno"; import { assertExists } from "@std/assert"; // Start server export default { async start(ctx) { // Start basic HTTP server const app = new Hono(); app.get("/kv-test", (c) => { // Access the KV API await ctx.kv.put("foo", "bar"); return c.text("done"); }); // Find port const portEnv = Deno.env.get("PORT_HTTP"); assertExists(portEnv, "missing PORT_HTTP"); const port = Number.parseInt(portEnv); // Start server console.log(`Listening on port ${port}`); const server = Deno.serve({ port }, app.fetch); await server.finished; }, };
Related Packages
Community & Support
- Join our Discord
- Follow us on X
- Follow us on Bluesky
- File bug reports in GitHub Issues
- Post questions & ideas in GitHub Discussions
License
Apache 2.0
Built and signed on
GitHub Actions
Add Package
deno add jsr:@rivet-gg/actor-core
Import symbol
import * as actor_core from "@rivet-gg/actor-core";
Import directly with a jsr specifier
import * as actor_core from "jsr:@rivet-gg/actor-core";