@bridgething/lib 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -0
  3. package/dist/bindings/client.d.ts +1904 -0
  4. package/dist/bindings/client.d.ts.map +1 -0
  5. package/dist/bindings/client.js +2 -0
  6. package/dist/bindings/client.js.map +1 -0
  7. package/dist/bindings/gateway.d.ts +1508 -0
  8. package/dist/bindings/gateway.d.ts.map +1 -0
  9. package/dist/bindings/gateway.js +2 -0
  10. package/dist/bindings/gateway.js.map +1 -0
  11. package/dist/bindings/shared.d.ts +1485 -0
  12. package/dist/bindings/shared.d.ts.map +1 -0
  13. package/dist/bindings/shared.js +3 -0
  14. package/dist/bindings/shared.js.map +1 -0
  15. package/dist/bindings/stock.d.ts +14 -0
  16. package/dist/bindings/stock.d.ts.map +1 -0
  17. package/dist/bindings/stock.js +3 -0
  18. package/dist/bindings/stock.js.map +1 -0
  19. package/dist/bindings/wire.d.ts +47 -0
  20. package/dist/bindings/wire.d.ts.map +1 -0
  21. package/dist/bindings/wire.js +3 -0
  22. package/dist/bindings/wire.js.map +1 -0
  23. package/dist/codec.d.ts +66 -0
  24. package/dist/codec.d.ts.map +1 -0
  25. package/dist/codec.js +180 -0
  26. package/dist/codec.js.map +1 -0
  27. package/dist/framing.d.ts +34 -0
  28. package/dist/framing.d.ts.map +1 -0
  29. package/dist/framing.js +69 -0
  30. package/dist/framing.js.map +1 -0
  31. package/dist/index.d.ts +19 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +20 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/logger.d.ts +21 -0
  36. package/dist/logger.d.ts.map +1 -0
  37. package/dist/logger.js +23 -0
  38. package/dist/logger.js.map +1 -0
  39. package/dist/uuid-fields.generated.d.ts +7 -0
  40. package/dist/uuid-fields.generated.d.ts.map +1 -0
  41. package/dist/uuid-fields.generated.js +15 -0
  42. package/dist/uuid-fields.generated.js.map +1 -0
  43. package/dist/uuid.d.ts +6 -0
  44. package/dist/uuid.d.ts.map +1 -0
  45. package/dist/uuid.js +20 -0
  46. package/dist/uuid.js.map +1 -0
  47. package/dist/version.d.ts +2 -0
  48. package/dist/version.d.ts.map +1 -0
  49. package/dist/version.js +3 -0
  50. package/dist/version.js.map +1 -0
  51. package/package.json +87 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Joey Eamigh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @bridgething/lib
2
+
3
+ The wire-protocol layer for [bridgething](https://github.com/JoeyEamigh/bridgething),
4
+ the community daemon that replaces Spotify's stock app on the Car Thing. This
5
+ package holds the serialized types every peer speaks (companion phone, on-device
6
+ webapp, host tools) plus the codec and framing for the bridge and client links.
7
+
8
+ Most webapp authors want [`@bridgething/client`](https://www.npmjs.com/package/@bridgething/client)
9
+ instead, it's an ergonomic surface facade.
10
+
11
+ Subpath exports:
12
+
13
+ - `@bridgething/lib/client` / `/gateway` / `/stock` - per-protocol message types.
14
+ - `@bridgething/lib/shared` - types used across protocols (`Track`, `Album`, ...).
15
+ - `@bridgething/lib/wire` - the envelope (`MsgMeta`, `WireEvent`, `WireRequest`, ...).
16
+ - `@bridgething/lib/codec` / `/framing` - encode/decode and frame the byte stream.
17
+ - `@bridgething/lib/uuid` - the protocol UUIDs and id helpers.
18
+
19
+ ## Learn more
20
+
21
+ - Full docs: <https://bridgething.com/docs>
22
+ - Scaffold a webapp: `bun create bridgething my-app`
23
+ - Source: <https://github.com/JoeyEamigh/bridgething>