title
stringlengths
1
544
โŒ€
parent
stringlengths
0
57
โŒ€
created
stringlengths
11
12
โŒ€
editor
stringclasses
1 value
creator
stringclasses
4 values
edited
stringlengths
11
12
โŒ€
refs
stringlengths
0
536
โŒ€
text
stringlengths
1
26k
id
stringlengths
32
32
Three js PointLight
Three js Lights
Jun 7, 2021
null
null
null
ํ•œ ์ ์—์„œ ๋ฌดํ•œํžˆ ๋ป—์–ด๋‚˜๊ฐ€๋Š” ๊ด‘์›
d8fecfe4902049c3ab09ac9b2449534a
Three js SpotLight
Three js Lights
Jun 7, 2021
null
null
null
์›๋ฟ” ์•ˆ์˜ PointLight
886956daed07412791638db8ddc09137
Three js TextureLoader
Three js Loaders
Mar 12, 2021
null
null
null
null
[Three js skybox](https://texonom.com/three-js-skybox-da08aab24acd4d57a802ce15274a055c)
875fb1a7ec174fcfbff6e0594da270e2
Three.js GLTFLoader
Three js Loaders
Aug 18, 2020
null
null
null
null
8f056ff6f9e14d508e90a7ed4c880a80
wwobjLoader2
Three js Loaders
Jun 21, 2021
null
null
null
null
### OBJLoader2 OBJLoader2Parallel for three.js > [wwobjloader2](https://www.npmjs.com/package/wwobjloader2)
e369d28c0285481a8491cca2d43d9df0
Three js skybox
Three js TextureLoader
null
null
null
null
null
```typeconst urls = [ '/assets/skybox/right.png', '/assets/skybox/left.png', '/assets/skybox/top.png', '/assets/skybox/bottom.png', '/assets/skybox/front.png', '/assets/skybox/back.png',];const materials = urls.map((url) => { const texture = new THREE.TextureLoader().load(url); return new THREE.MeshBasicMaterial({ map: texture, side: THREE.BackSide, fog: false, depthWrite: false, });});const skybox = new THREE.Mesh( new THREE.BoxBufferGeometry(10000, 10000, 10000), materials );scene.add(skybox);skybox.rotation.y = Math.PI / 2;``` > [CubeTexture orientation ยท Issue #16328 ยท mrdoob/three.js](https://github.com/mrdoob/three.js/issues/16328) > [Skybox rotation : three.js](https://woodenraft.games/demos/skybox-rotation-threejs.html)
da08aab24acd4d57a802ce15274a055c
Three js Material opacity
Three js Material
null
null
null
null
null
### opacity ```typematerial.transparent = truematerial.opacity = 0.5```
587f1bba9ccd4ce5b271391d54a9a6f8
Three js ShaderMaterial
Three js Material
null
null
null
null
null
### shader line example > [three.js](https://threejs.org/examples/?q=webgl_custom_attributes_lines#webgl_custom_attributes_lines) > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/webgl_custom_attributes_lines.html) ### shader examples > [three.js](https://threejs.org/examples/?q=oc#webgl_postprocessing_dof) > [three.js](https://threejs.org/examples/?q=bloom#webgl_postprocessing_unreal_bloom_selective) > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/webgl_interactive_points.html)
d2c3fec2e63b4edc95160ad71e20f1b2
Three js ShaderMaterial Gradient
Three js ShaderMaterial Examples
Jun 7, 2021
Alan Jo
Alan Jo
Jun 7, 2021
```typeaddSkyGradient(scene) { // LIGHTS const hemiLight = new HemisphereLight(0xffffff, 0xffffff, 0.6) hemiLight.color.setHSL(0.6, 1, 0.6) hemiLight.groundColor.setHSL(0.095, 1, 0.75) hemiLight.position.set(0, 50, 0) scene.add(hemiLight) // SKYDOME const vertexShader = `varying vec3 vWorldPosition; void main() { vec4 worldPosition = modelMatrix * vec4( position, 1.0 ); vWorldPosition = worldPosition.xyz; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }` const fragmentShader = ` uniform vec3 topColor; uniform vec3 bottomColor; uniform float offset; uniform float exponent; varying vec3 vWorldPosition; void main() { float h = normalize( vWorldPosition + offset ).y; gl_FragColor = vec4( mix( bottomColor, topColor, max( pow( max( h , 0.0), exponent ), 0.0 ) ), 1.0 ); }` const uniforms = { topColor: { value: new Color(0x0077ff) }, bottomColor: { value: new Color(0xffffff) }, offset: { value: 33 }, exponent: { value: 0.6 } } uniforms['topColor'].value.copy(hemiLight.color) scene.fog.color.copy(uniforms['bottomColor'].value) const skyGeo = new SphereGeometry(4000, 32, 15) const skyMat = new ShaderMaterial({ uniforms, vertexShader, fragmentShader, side: BackSide }) const sky = new Mesh(skyGeo, skyMat) scene.add(sky) }``` > [Apply color gradient to material on mesh - three.js](https://stackoverflow.com/questions/52614371/apply-color-gradient-to-material-on-mesh-three-js) > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/webgl_lights_hemisphere.html)
9ac4396379a44e90b4094ac22c2496d1
Three js Capsule
Three js Math Modules
May 24, 2021
null
null
null
null
```typeimport { Capsule } from './jsm/math/Capsule.js';const playerCollider = new Capsule( new THREE.Vector3( 0, 0.35, 0 ), new THREE.Vector3( 0, 1, 0 ), 0.35 );``` > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/games_fps.html)
d96073c00010494494b0915195186ef0
Three js Octree
Three js Math Modules
May 24, 2021
null
null
null
null
```typeimport { Octree } from './jsm/math/Octree.js'const worldOctree = new Octree()const result = worldOctree.sphereIntersect( sphere.collider )worldOctree.fromGraphNode( gltf.scene )``` > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/games_fps.html)
eb91dd708e7a4791944bfa592e0274a2
Three js Matrix3
Three js Matrixs
Aug 23, 2021
null
null
null
null
04391c02e95e45019a19fd8450be659b
Three js Matrix4
Three js Matrixs
Aug 23, 2021
null
null
null
null
52a7b79cd2514e069c58047ffe8b89ab
Three js Object3D frustumCulledย 
Three js Object3D Property
May 3, 2021
Alan Jo
Alan Jo
May 3, 2021
### .frustumCulledย :ย Boolean rotate, translate ํ• ๋•Œ normalize ํ•˜๊ณ  ํ•ด์•ผํ•จ ํ–‰๋ ฌ์— input vector normalize filter๊ฐ€ ์—†์–ด์„œ ๊ทธ๋ƒฅ๋„ฃ์œผ๋ฉด ๋ฐฐ์ˆ˜๋กœ ์ปค์ง€๊ฑฐ๋‚˜ ๋ฐฐ์ˆ˜๋กœ rotate ๋˜๋Š” ๊ธฐํ˜„์ƒ์ด ์ƒ๊ธด๋‹ค position, rotation, scale ์ค‘์š”ํ•œ property When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object. If set to `false` the object gets rendered every frame even if it is not in the frustum of the camera. Default is `true`.
1ce01091769846b2b79106c82ec9e1c8
Three js Object3D rotation
Three js Object3D Property
May 3, 2021
Alan Jo
Alan Jo
May 3, 2021
```typeobject.rotation.set(0,0,0.1, 'XYZ')```
3114782661d341d294c9d0640295a1fa
Three js Object3D up
Three js Object3D Property
May 3, 2021
Alan Jo
Alan Jo
May 3, 2021
```typeobject.up.set(0,0,1)```
4fafb2465c3447f4a3eccf0f6ed5b1ac
Three js Camera
Three js Object3Ds
Jul 8, 2020
Alan Jo
Alan Jo
May 10, 2021
### Three js Cameras |Title| |:-:| |[PerspectiveCamera Three js](https://texonom.com/perspectivecamera-three-js-8e5f27aad01747b8b781569d3d6c7cf3)| camera lookAt posittion ```typecamera.lookAt(new THREE.Vector3(0,10,0));``` > [how to set the first lookAt/target of a Control](https://stackoverflow.com/questions/20933125/how-to-set-the-first-lookat-target-of-a-control)
3ff2bdfbccc1475a8605baa4c8f95ecf
Three js Line
Three js Object3Ds
Jun 14, 2021
Alan Jo
Alan Jo
Jun 14, 2021
## Three js Line draw example > [JSFiddle](https://jsfiddle.net/wilt/a21ey9y6/)
3155dcfe3c9c4574b533e8cf12476a82
Three js LineLoop
Three js Object3Ds
May 3, 2021
Alan Jo
Alan Jo
May 3, 2021
98d049fdc4d74f5facaa902164e3db84
Three js Mesh
Three js Object3Ds
May 3, 2021
Alan Jo
Alan Jo
Jun 7, 2021
### Edge Position ```typeobject.updateMatrixWorld()const geometry = object.geometryconst positionAttribute = geometry.getAttribute( 'position' )const vertex = new THREE.Vector3().fromBufferAttribute( positionAttribute, index )object.localToWorld( vertex )``` ### Box ```typeconst geometry = new THREE.BoxGeometry( 1, 1, 1 );const material = new THREE.MeshBasicMaterial( {color: 0x00ff00} );const cube = new THREE.Mesh( geometry, material );scene.add( cube );``` ### show inside ```type// opacity effectmesh.material.side = THREE.DoubleSide;// low effectmesh.material.side = THREE.BackSide;``` > [Untitled](https://stackoverflow.com/questions/19825061/three-js-seeing-geometry-when-inside-mesh)
4c8ea8037d3f4117b94009e669ea8c70
Three js Points
Three js Object3Ds
Jul 8, 2020
Alan Jo
Alan Jo
May 3, 2021
by geometry, points ```typeconst dotGeometry = new THREE.Geometry() dotGeometry.vertices.push(new THREE.Vector3(0, 0, 0)) const dotMaterial = new THREE.PointsMaterial({ size: 1, sizeAttenuation: false }) const dot = new THREE.Points(dotGeometry, dotMaterial)scene.add( dot )``` > [three.js How to render a simple white dot/point/pixel](https://stackoverflow.com/questions/26297544/three-js-how-to-render-a-simple-white-dot-point-pixel) -1 - Do not support different size of each point > [How to display points of different sizes using THREE.Points()](https://discourse.threejs.org/t/how-to-display-points-of-different-sizes-using-three-points/4751) should use custom shader like this > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/webgl_custom_attributes_points.html)
c78589acf18146abb4749be4c6d93cd9
Threejs Box3
Three js Object3Ds
Apr 23, 2021
Alan Jo
Alan Jo
May 3, 2021
efd7cde90c7d454b9bd2a232fc27d221
PerspectiveCamera Three js
Three js Cameras
Jul 8, 2020
null
null
null
null
- `camera.up` ### change property ```typecamera.far = 2camera.updateProjectionMatrix()``` > [[three.js] camera ์„ค์ •ํ•˜๊ธฐ](https://justmakeyourself.tistory.com/entry/camera-setting-threejs) > [Three.js: I cant change far and near plan of camera. Why?](https://stackoverflow.com/questions/50572421/three-js-i-cant-change-far-and-near-plan-of-camera-why)
8e5f27aad01747b8b781569d3d6c7cf3
Three js custom raycaster
Three js Raycaster
null
null
null
null
null
```typeexport function z(x, y) { const origin = new THREE.Vector3(x - ref.cloud.offset[0], y - ref.cloud.offset[1], 0) const direction = new THREE.Vector3(0, 0, 1).normalize() const raycaster = new THREE.Raycaster(origin, direction) raycaster.params.Points.threshold = 0.1 const intersects = raycaster.intersectObjects(ref.cloud.pointclouds, true) intersects.sort((a, b) => a.point.z - b.point.z) return intersects[0].point.z + ref.cloud.offset[2]}``` > [Three js raycaster WITHOUT camera](https://stackoverflow.com/questions/57178395/three-js-raycaster-without-camera)
9b2c192704f34b0195f42b0fbef42508
Three js WebGLRenderer
Three js Renderers
Jun 4, 2021
null
null
null
### Three js WebGLRenderer Options |Title| |:-:| |[Three js logarithmicDepthBuffer](https://texonom.com/three-js-logarithmicdepthbuffer-7cc0ce63a4bd4818ab93153030da8972)| ### Three js WebGLRenderer Properties |Title| |:-:| |[Three js .physicallyCorrectLights](https://texonom.com/three-js-physicallycorrectlights-291b7d3def134436b3473ff073ad6de8)| ### Three js WebGLRenderer Function |Title| |:-:| |[Three js readRenderTargetPixels()](https://texonom.com/three-js-readrendertargetpixels-b85610bb1bac48f280e9587813f6d48a)|
edf170004f9c46b6ad1a58ce26e7daac
Three js readRenderTargetPixels()
Three js WebGLRenderer Function
Jun 4, 2021
null
null
null
null
> [three.js](https://threejs.org/examples/?q=light#webgl_interactive_cubes_gpu) > [mrdoob/three.js](https://github.com/mrdoob/three.js/blob/master/examples/webgl_interactive_cubes_gpu.html)
b85610bb1bac48f280e9587813f6d48a
Three js logarithmicDepthBuffer
Three js WebGLRenderer Options
Jun 4, 2021
null
null
null
null
true > [three.js](https://threejs.org/examples/#webgl_camera_logarithmicdepthbuffer) > [three.js](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.readRenderTargetPixels)
7cc0ce63a4bd4818ab93153030da8972
Three js .physicallyCorrectLights
Three js WebGLRenderer Properties
Jun 4, 2021
null
null
null
[Three js Light](https://texonom.com/three-js-light-61ccec9ad195433ebdfeea66abb03041)
> [three.js](https://threejs.org/examples/#webgl_lights_physical)
291b7d3def134436b3473ff073ad6de8
Three js Scene background
Three js Scene
null
null
null
null
null
```typeconst loader = new THREE.CubeTextureLoader() const texture = loader.load([ 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/pos-x.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/neg-x.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/pos-y.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/neg-y.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/pos-z.jpg', 'https://threejsfundamentals.org/threejs/resources/images/cubemaps/computer-history-museum/neg-z.jpg', ]); scene.background = texture``` ```typeconst loader = new THREE.TextureLoader() const texture = loader.load( 'resources/images/equirectangularmaps/tears_of_steel_bridge_2k.jpg', () => { const rt = new THREE.WebGLCubeRenderTarget(texture.image.height) rt.fromEquirectangularTexture(renderer, texture) scene.background = rt })}``` > [Three.js Backgrounds and Skyboxes](https://threejsfundamentals.org/threejs/lessons/threejs-backgrounds.html)
4202f5f5521241aca6013abefc3be653
Three js Vector3
Three js Vectors
Aug 23, 2021
null
null
null
null
[Three js Matrix Between Vectors](https://texonom.com/three-js-matrix-between-vectors-5130d6d02ecb415182840873f2dc5592)
9f41ef43a9ac4965a60cc48baa183cb6
Three js Matrix Between Vectors
Three js Vector3
null
null
null
null
null
```typeconst quaternion = new THREE.Quaternion(); // create one and reuse itquaternion.setFromUnitVectors( v1, v2 )const matrix = new THREE.Matrix4() // create one and reuse itmatrix.makeRotationFromQuaternion( quaternion )object.applyMatrix( matrix )// orobject.applyQuaternion( quaternion )``` > [How to find rotation matrix between two vectors in THREE.js](https://stackoverflow.com/questions/25199173/how-to-find-rotation-matrix-between-two-vectors-in-three-js)
5130d6d02ecb415182840873f2dc5592
Three js TrackBallControls
Three.js Controls
Jul 8, 2020
null
null
null
null
```typecamera.position.z = 3``` ํŠธ๋ž™๋ณผ์ด๋ฉด ์นด๋ฉ”๋ผ ์ด๊ฑธ๋กœ ํ•ด์•ผํ•จ
cbf948fe62784e14b14c2afd0add898b
gpu.js
WebGL Perf Framework
Nov 30, 2021
Alan Jo
Alan Jo
May 30, 2023
### Node js using virtual [WebGPU](https://texonom.com/webgpu-7277babbf0f744c7b97873f12b9b07e3) using [headless-gl](https://github.com/stackgl/headless-gl) [gpu.js](https://github.com/gpujs/gpu.js) > [Using GPU to Improve JavaScript Performance](https://blog.bitsrc.io/using-gpu-to-improve-javascript-performance-e5a41c2e129b)
89a1c0b2700a4049870fdbdf92ae1e02
Learn WebGPU
WebGPU Usages
Apr 28, 2023
Alan Jo
Alan Jo
Jun 18, 2023
### C++ > [webgpufundamentals.org](https://webgpufundamentals.org/) > [Learn WebGPU](https://eliemichel.github.io/LearnWebGPU/)
071222bb2df24f528585101c05a425f6
WebGPU API
WebGPU Usages
May 10, 2023
Alan Jo
Alan Jo
May 11, 2023
> [Untitled](https://www.w3.org/TR/webgpu/)
6b054446051d48c190b712143a194e96
WebGPU History
WebGPU Usages
May 5, 2023
Alan Jo
Alan Jo
May 11, 2023
> [I want to talk about WebGPU](https://cohost.org/mcc/post/1406157-i-want-to-talk-about-webgpu)
016b4881018c4f52a8b07fedfe452b9c
WebGPU Tool
WebGPU Usages
Apr 28, 2023
Alan Jo
Alan Jo
Apr 28, 2023
### WebGPU Tools |Title| |:-:| |[UseGPU](https://texonom.com/usegpu-456e271bbc3c436a8fa0cef7d5621162)| |[wGPU.rs](https://texonom.com/wgpurs-ad68e9320e094545b2bf926b2c51b04d)|
d21c139113974099a493511f33c78e57
**wgpu**
WebGPU Usages
Jul 18, 2023
Alan Jo
Alan Jo
Jul 18, 2023
**first runtime also support WebGPU out of the box** [wgpu](https://github.com/gfx-rs/wgpu) > [wgpu: portable graphics library for Rust](https://wgpu.rs/)
afa86bf9baf84b299bbb60f7ba45be2c
UseGPU
WebGPU Tools
Sep 15, 2022
Alan Jo
Alan Jo
May 11, 2023
> [Use.GPU Docs](https://usegpu.live/docs/guides-getting-started) > [Steven Wittens / use.gpu ยท GitLab](https://gitlab.com/unconed/use.gpu)
456e271bbc3c436a8fa0cef7d5621162
wGPU.rs
WebGPU Tools
May 10, 2023
Alan Jo
Alan Jo
May 10, 2023
### GPU abstraction in Rust, implementing WebGPU API > [Introduction | Learn Wgpu](https://sotrh.github.io/learn-wgpu/)
ad68e9320e094545b2bf926b2c51b04d
Web RTC History
WebRTC Notion
Feb 21, 2021
null
null
null
- ๊ตฌ๊ธ€์ด ์ฃผ๋„ํ•œ ์˜คํ”ˆ์†Œ์Šค ํ”„๋กœ์ ํŠธ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•˜๋Š” ์›น ํ‘œ์ค€
053525268e684faca3d5d70f34e8cc3b
Web RTC Property
WebRTC Notion
Feb 21, 2021
null
null
null
- ์›น ๊ธฐ์ˆ ๋งŒ์œผ๋กœ ์ค‘๊ฐ„์ž ์—†์ด ์‹ค์‹œ๊ฐ„์œผ๋กœ ๋ธŒ๋ผ์šฐ์ € ๊ฐ„์— ์ž„์˜์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ŠคํŠธ๋ฆผ ํ•˜๊ฑฐ๋‚˜ ๊ตํ™˜ - still need a server - to establish - UDP ์‚ฌ์šฉํ•จ - WebRTC connection is secure by default - WebRTC is, in fact, a collection of different APIs > - MediaStream API - Video and audio > - RTCPeerConnection - Signaling & Streaming > - RTCDataChannel - Any Data can be Transferred ํ™”์ƒ ํ†ตํ™”์™€ ์‹ค์‹œ๊ฐ„ ์ŠคํŠธ๋ฆฌ๋ฐ, ํŒŒ์ผ ๊ณต์œ , ์Šคํฌ๋ฆฐ ๊ณต์œ  ๋“ฑ์ด WebRTC๋ฅผ ๊ธฐ๋ฐ˜ HTTPS๊ฐ€ ๊ฐ•์ œ๋˜๊ธฐ ๋•Œ๋ฌธ์— ์ค‘๊ฐ„์ž ๊ณต๊ฒฉ์— ๋Œ€ํ•œ ๋ณด์•ˆ์ด ๋ณด์žฅ WebRTC has 1.0 standards but still Webrtc api has [vendor prefix](https://texonom.com/vendor-prefix-485cc1f0efa54024ae95ee45fd6f0c5d)
cccc54d5e7794c33b268a26771d10329
WebRTC Structure
WebRTC Notion
Feb 21, 2021
null
null
null
[WebRTC P2P](https://texonom.com/webrtc-p2p-d826066d62324946a5c0207583747196) [WebRTC Real Time](https://texonom.com/webrtc-real-time-52060f75ba4c44d2bd5cbc1bffb4ab83) > [Untitled](https://wormwlrm.github.io/2021/01/24/Introducing-WebRTC.html)
431beeb684074a1e853c4c1e01ffd2f9
WebRTC P2P
WebRTC Structure
null
null
null
null
null
[WebRTC Signaling](https://texonom.com/webrtc-signaling-d5961f02deff45d98c29f5fb8cdd0d80) > [Untitled](https://wormwlrm.github.io/2021/01/24/Introducing-WebRTC.html)
d826066d62324946a5c0207583747196
WebRTC Real Time
WebRTC Structure
null
null
null
null
null
- ์‹ค์‹œ๊ฐ„ ๊ตฌํ˜„ > - ์‹œ๊ทธ๋„๋ง์ด๋ผ๊ณ  ์ผ์ปซ์–ด์ง€๋Š” NAT ์šฐํšŒ ๊ณผ์ •์„ ๊ฑฐ์น˜๊ธฐ ๋•Œ๋ฌธ > UDP ์œ„์—์„œ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค > ๋ฐ์ดํ„ฐ๋ฅผ ๋น ๋ฅด๊ฒŒ ์ „์†กํ•  ์ˆ˜๋Š” ์žˆ์ง€๋งŒ, ์ด ๊ณผ์ •์—์„œ ๋ฐœ์ƒํ•œ ๋ฐ์ดํ„ฐ ์†์‹ค์ด ๋ฐœ์ƒํ•  ์ˆ˜๋„ ์žˆ๋‹ค > [Untitled](https://wormwlrm.github.io/2021/01/24/Introducing-WebRTC.html)
52060f75ba4c44d2bd5cbc1bffb4ab83
WebRTC Signaling
WebRTC P2P
null
null
null
null
null
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F03f7d669-931c-4f56-9137-384da6a4881f%2FUntitled.png?table=block&id=57ce39ca-5c8d-49e1-b59f-6f29afdfd732&cache=v2) ํ†ต์‹ ์— ์‚ฌ์šฉํ•  ํ”„๋กœํ† ์ฝœ, ์ฑ„๋„, ๋ฏธ๋””์–ด ์ฝ”๋ฑ ๋ฐ ํ˜•์‹, ๋ฐ์ดํ„ฐ ์ „์†ก ๋ฐฉ๋ฒ•, ๋ผ์šฐํŒ… ์ •๋ณด์™€ NAT ํ†ต๊ณผ ๋ฐฉ๋ฒ•์„ ํฌํ•จํ•œ ํ†ต์‹  ๊ทœ๊ฒฉ์„ ๊ตํ™˜ํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ์žฅ์น˜์˜ ์ œ์–ด ์ •๋ณด๋ฅผ ๊ตํ™˜ํ•˜๋Š” ๊ณผ์ • 1. ๊ฐ ๋ธŒ๋ผ์šฐ์ €๊ฐ€ P2P ์ปค๋ฎค๋‹ˆ์ผ€์ด์…˜์— ๋™์˜ 2. ์„œ๋กœ์˜ ์ฃผ์†Œ๋ฅผ ๊ณต์œ  3. ๋ณด์•ˆ ์‚ฌํ•ญ ๋ฐ ๋ฐฉํ™”๋ฒฝ ์šฐํšŒ 4. ๋ฉ€ํ‹ฐ๋ฏธ๋””์–ด ๋ฐ์ดํ„ฐ๋ฅผ ์‹ค์‹œ๊ฐ„์œผ๋กœ ๊ตํ™˜ WebRTC๊ฐ€ P2P ๊ธฐ๋ฐ˜์ด๊ธด ํ•˜์ง€๋งŒ ํ†ต์‹  ์„ค์ • ์ดˆ๊ธฐ ๋‹จ๊ณ„์—์„œ๋Š” ์ค‘์žฌ์ž์˜ ์—ญํ• ์ด ํ•„์š” 1์€ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง ๊ตฌํ˜„ 2~3์€ [NAT Traversal](https://texonom.com/nat-traversal-0aebf90825994c9cb0b2520efd0f9fed) ๋กœ ์ด๋ฃจ์–ด์ง 4๋Š” [SDP](https://texonom.com/sdp-751c532aecd846b8a29a37c778f6af5d) ๋กœ ์ด๋ฃจ์–ด์ง > [Untitled](https://wormwlrm.github.io/2021/01/24/Introducing-WebRTC.html) ### signaling server implementation ์‹œ๊ทธ๋„๋ง ์„œ๋ฒ„์— ๋Œ€ํ•œ ๋ช…์‹œ์ ์ธ ํ‘œ์ค€์ด ์—†๋‹ค > [muaz-khan/WebRTC-Experiment](https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md)
d5961f02deff45d98c29f5fb8cdd0d80
WebRTC Projects
WebRTC Usage
Jul 28, 2021
null
null
null
### WebRTC Projects |Title| |:-:| |[project-lightspeed](https://texonom.com/project-lightspeed-9fedc7e2e65a4e1d903d5c49d02c6621)| |[Hyperconnect Enterprise](https://texonom.com/hyperconnect-enterprise-e7ba0b8cab884cc6891e08de6488b745)| |[livekit-server](https://texonom.com/livekit-server-d6a0bb7e3b874dffa314f3b1860357b3)|
3c40d42a2f19443c945f0e1f42899031
WebRTC Tool
WebRTC Usage
Jul 28, 2021
null
null
null
### WebRTC Tools |Title| |:-:| |[adapter.js](https://texonom.com/adapterjs-131c32ae11914fb39d218435f277da21)|
0a0cc7f04581408693ef160658a68f45
WebRTC Wrapper
WebRTC Usage
Jul 28, 2021
null
null
null
### WebRTC Wrappers |Title| |:-:| |[peer js](https://texonom.com/peer-js-82e89213671244c48d868017b1bb445e)|
415ce58b476a4928b87fd6002299a07d
Hyperconnect Enterprise
WebRTC Projects
Apr 4, 2021
null
null
null
> [Home - Hyperconnect Enterprise](https://hce.io/)
e7ba0b8cab884cc6891e08de6488b745
livekit-server
WebRTC Projects
Jul 19, 2021
null
null
null
### Opensource distributed video/audio rooms over WebRTC in Go > [livekit/livekit-server](https://github.com/livekit/livekit-server?utm_source=tldrnewsletter)
d6a0bb7e3b874dffa314f3b1860357b3
project-lightspeed
WebRTC Projects
Jun 23, 2020
null
null
null
### self contained live streaming server [Lightspeed Ingest](https://texonom.com/lightspeed-ingest-400da11f9920474681313f03c09f66ae) [Lightspeed WebRTC](https://texonom.com/lightspeed-webrtc-d01cc66df03242cf83f9c729ceeafe97) [Lightspeed React](https://texonom.com/lightspeed-react-685e60765c984d43adf7f7cbf018e54f) > [GRVYDEV/Project-Lightspeed](https://github.com/GRVYDEV/Project-Lightspeed)
9fedc7e2e65a4e1d903d5c49d02c6621
Lightspeed Ingest
project-lightspeed
null
null
null
null
null
400da11f9920474681313f03c09f66ae
Lightspeed React
project-lightspeed
null
null
null
null
null
685e60765c984d43adf7f7cbf018e54f
Lightspeed WebRTC
project-lightspeed
null
null
null
null
null
> [Untitled](https://github.com/GRVYDEV/Lightspeed-webrtc/issues/13)
d01cc66df03242cf83f9c729ceeafe97
adapter.js
WebRTC Tools
Feb 21, 2021
null
null
null
### web rtc resolve cross browsing issue > [webrtcHacks/adapter](https://github.com/webrtcHacks/adapter)
131c32ae11914fb39d218435f277da21
peer js
WebRTC Wrappers
Jan 7, 2021
null
null
null
web rtc์˜ socket io
82e89213671244c48d868017b1bb445e
Cocout XR
WebXR Frameworks
Aug 11, 2023
Alan Jo
Alan Jo
Aug 11, 2023
### Cocout XR Usages |Title| |:-:| |[](https://texonom.com/6881f0d4d5d1460a9484a4c194157edf)| |[](https://texonom.com/4c7939e4d8214160ae0737de101d655a)| > [coconut-xr](https://github.com/coconut-xr)
3a9a85df7b36441aae62c6ccbee90ae8
Mind AR
WebXR
null
null
null
null
null
### Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js [mind-ar-js](https://github.com/hiukim/mind-ar-js)
2450647ea70d4c3dacc5e9e455c95617
[koestlich](https://github.com/coconut-xr/koestlich)
Cocout XR Usages
Aug 11, 2023
Alan Jo
Alan Jo
Aug 11, 2023
4c7939e4d8214160ae0737de101d655a
[natuerlich](https://github.com/coconut-xr/natuerlich)
Cocout XR Usages
Aug 11, 2023
Alan Jo
Alan Jo
Aug 11, 2023
6881f0d4d5d1460a9484a4c194157edf
**HTML Sanitizer API**
Web User APIs
Dec 17, 2021
Alan Jo
Alan Jo
Jun 18, 2023
## Sanitary API > [HTML Sanitizer API](https://wicg.github.io/sanitizer-api/) > [HTML Sanitizer API](https://css-tricks.com/html-sanitizer-api/)
35056a342b1046e0b950c5242de0be95
Popover API
Web User APIs
May 24, 2023
Alan Jo
Alan Jo
Jun 7, 2023
[Modal](https://texonom.com/modal-f4d69998680048d7bdae24f0f03157f6)
> [popover - HTML: HyperText Markup Language | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover) > [Introducing the popover API - Chrome Developers](https://developer.chrome.com/en/blog/introducing-popover-api)
2c22936875ec4afcbf4cbee4c686adf4
Screen Wake Lock API
Web User APIs
May 23, 2021
Alan Jo
Alan Jo
Apr 28, 2023
```type// The wake lock sentinel.let wakeLock = null;// Function that attempts to request a screen wake lock.const requestWakeLock = async () => { try { wakeLock = await navigator.wakeLock.request(); wakeLock.addEventListener('release', () => { console.log('Screen Wake Lock released:', wakeLock.released); }); console.log('Screen Wake Lock released:', wakeLock.released); } catch (err) { console.error(`${err.name}, ${err.message}`); }};// Request a screen wake lockโ€ฆawait requestWakeLock();// โ€ฆand release it again after 5s.window.setTimeout(() => { wakeLock.release(); wakeLock = null;}, 5000);``` > [Screen Wake Lock Demo](https://wake-lock-demo.glitch.me/) > [Stay awake with the Screen Wake Lock API](https://web.dev/wake-lock/)
29f5959668234663aca4e9d30ee02c44
SMS Receiver API
Web User APIs
Feb 21, 2021
Alan Jo
Alan Jo
Apr 28, 2023
f6a0ab2a629a44e7acc10305696200cc
View Transition API
Web User APIs
Mar 5, 2023
Alan Jo
Alan Jo
Jun 2, 2023
[SPA](https://texonom.com/spa-0f800ff49c3c40879fa6338f8b9b0749)
### Example > [Anthony Fu on Twitter](https://twitter.com/antfu7/status/1655588888105172994) > [Watch Transitions in Slow Motion in Chromeโ€™s DevTools](https://blog.jim-nielsen.com/2023/slow-motion-animations-with-chrome-devtools/) > [Page Transitions In ReactJS With React Router V6 And The Built-In View Transitions API (Noโ€ฆ](https://javascript.plainenglish.io/page-transitions-in-reactjs-with-react-router-v6-and-the-built-in-view-transitions-api-no-73ab52c6fd7b) > [Smooth and simple transitions with the View Transitions API - Chrome Developers](https://developer.chrome.com/docs/web-platform/view-transitions/) > [New in Chrome 111 - Chrome Developers](https://developer.chrome.com/en/blog/new-in-chrome-111)
8b934614edd64af89e263cb7726d06cd
Web Authentication API
Web User APIs
May 23, 2021
Alan Jo
Alan Jo
Apr 28, 2023
> [Web Authentication API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API)
163d486726d94aff8deddc39b89982d4
Web Clipboard API
Web User APIs
May 23, 2021
Alan Jo
Alan Jo
Apr 28, 2023
```typeawait navigator.clipboard.writeText(location.href);``` > [Clipboard.writeText() - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText) > [Unblocking clipboard access](https://web.dev/async-clipboard/)
7697a3d0af2742cab6bc7d9f1ddd2756
Web Crypto API
Web User APIs
Apr 26, 2021
Alan Jo
Alan Jo
Apr 28, 2023
Web Crypto API๋ฅผ ํ†ตํ•œ ์•ˆ์ „ํ•œ ์›น ๋ธŒ๋ผ์šฐ์ € ์ €์žฅ์†Œ๋งŒ ์ œ๊ณตํ•œ๋‹ค๋ฉด ๊ตณ์ด ๋ณด์•ˆ ํ† ํฐ์„ ๊ฐ•์ œํ•  ์ด์œ ๋Š” ์—†์–ด์ง [Web SubtleCrypto](https://texonom.com/web-subtlecrypto-9906c9bb2c55484a8352ddd7370bd2fb) [Web Crypto randomUUID](https://texonom.com/web-crypto-randomuuid-1f44e331806e44b3b16c3881e56738f6)
36dd871e2c644b3a80c00bb9bf84deaf
****Web Environment Integrity****
Web User APIs
Jul 28, 2023
Alan Jo
Alan Jo
Aug 4, 2023
[Web-Environment-Integrity](https://github.com/RupertBenWiser/Web-Environment-Integrity)
potentially harm the Open Web allow websites to select which devices (browsers) they wish to be displayed on and refuse service to other devices > [Googleโ€™s Plan To DRM The Web Goes Against Everything Google Once Stood For](https://www.techdirt.com/2023/08/02/googles-plan-to-drm-the-web-goes-against-everything-google-once-stood-for) > [Untitled](https://github.com/RupertBenWiser/Web-Environment-Integrity/blob/main/explainer.md) > [Apple already shipped attestation on the web, and we barely noticed](https://httptoolkit.com/blog/apple-private-access-tokens-attestation/)
cc55523e746a41028cea8535fbef8a43
Web FedCM
Web User APIs
Jun 18, 2023
Alan Jo
Alan Jo
Jun 18, 2023
### Federated Credential Management proposal for a privacy-preserving approach to federated identity services (such as "Sign in with...") > [Federated Credential Management API - Chrome Developers](https://developer.chrome.com/docs/privacy-sandbox/fedcm/)
925977c3151d4887a2c85b49b1a61dfd
Web Notification API
Web User APIs
May 23, 2021
Alan Jo
Alan Jo
Apr 28, 2023
## schedule local notifications that don't require a network connection [Notifire](https://texonom.com/notifire-e77ae63599cf4e928e86c948f4dfd4e1) ### create ```typeif ('showTrigger' in Notification.prototype) { const createScheduledNotification = async (tag, title, timestamp) => { const registration = await navigator.serviceWorker.getRegistration(); registration.showNotification(title, { tag: tag, body: 'This notification was scheduled 30 seconds ago', showTrigger: new TimestampTrigger(timestamp + 30 * 1000), });};}``` ### cancel ```typeconst cancelScheduledNotification = async (tag) => { const registration = await navigator.serviceWorker.getRegistration(); const notifications = await registration.getNotifications({ tag: tag, includeTriggered: true, }); notifications.forEach((notification) => notification.close());};``` ### demo > [Notification Triggers](https://notification-triggers.glitch.me/) > [Notification Triggers](https://web.dev/notification-triggers/)
232a9685393d4e7f905a2ceca7bb8c34
Web Share API
Web User APIs
May 23, 2021
Alan Jo
Alan Jo
Apr 28, 2023
```typeif (navigator.share) { navigator.share({ title: 'web.dev', text: 'Check out web.dev.', url: 'https://web.dev/', }) .then(() => console.log('Successful share')) .catch((error) => console.log('Error sharing', error));}``` > [Integrate with the OS sharing UI with the Web Share API](https://web.dev/web-share/)
1b9715f504d74426bf82b0351f7328c0
Web Vibration API
Web User APIs
May 23, 2021
Alan Jo
Alan Jo
Apr 28, 2023
> [Vibration API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API)
b6eab93ec10b401090e25a55f727386e
WebOTP
Web User APIs
Nov 23, 2020
Alan Jo
Alan Jo
Apr 28, 2023
### One Time Password ํฌ๋กฌ์—์„œ ์‹คํ—˜์ ์œผ๋กœ ๊ตฌํ˜„ํ•˜๊ณ  ์žˆ๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค. ๊ฒŒ๋‹ค๊ฐ€ ์‚ฌํŒŒ๋ฆฌ์—์„œ๋Š” WebOTP ๊ธฐ๋Šฅ์„ JavaScript API๋กœ ์ œ๊ณตํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ๋ธŒ๋ผ์šฐ์ € ํ˜ธํ™˜์„ฑ์ด ๊ต‰์žฅํžˆ ๋‚ฎ๊ฒŒ ๋ณด์ด๋Š” ํŽธ ์›นํ‚ท ๋ธŒ๋ผ์šฐ์ €๊ฐ€ OTP์— ์ ‘๊ทผํ•˜๋Š” JavaScript API๋ฅผ ์ œ๊ณตํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์ƒ๊ธฐ๋Š” ํ•จ์ • <video src="https://storage.googleapis.com/web-dev-assets/web-otp/demo.mp4 /> ![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F285cb289-d9d5-48ba-b67f-42048739a209%2FUntitled.png?table=block&id=d737501b-9907-4adc-8040-615048ceddf4&cache=v2) - ์ ์ ˆํ•˜๊ฒŒ ์†์„ฑ์ด ์„ค์ •๋œย `<input>`ย ํƒœ๊ทธ - ์›น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋‚ด์˜ JavaScript ์ฝ”๋“œ - ์ ์ ˆํ•˜๊ฒŒ ํฌ๋งคํŒ… ๋œ SMS ๋ฉ”์‹œ์ง€ > [WebOTP API๋ฅผ ํ™œ์šฉํ•œ SMS ๋ณธ์ธ์ธ์ฆ ๊ธฐ๋Šฅ ๊ตฌํ˜„ํ•˜๊ธฐ - ์žฌ๊ทธ์ง€๊ทธ์˜ ๊ฐœ๋ฐœ ๋ธ”๋กœ๊ทธ](https://wormwlrm.github.io/2021/01/31/WebOTP-API.html)
065fef1fe4e6425587ea6dd58a8efd5f
Web Crypto **`randomUUID`**
Web Crypto API
null
null
null
null
null
### native randomuuid is faster than uuid, nanoid module > [UUID vs Crypto.randomUUID vs NanoID](https://medium.com/p/uuid-vs-crypto-randomuuid-vs-nanoid-313e18144d8c)
1f44e331806e44b3b16c3881e56738f6
Web SubtleCrypto
Web Crypto API
null
null
null
null
null
## This feature is available only in secure contexts (HTTPS) > [SubtleCrypto](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto)
9906c9bb2c55484a8352ddd7370bd2fb
Notifire
Web Notification API
null
null
null
null
null
e77ae63599cf4e928e86c948f4dfd4e1
HTTP Cookie
Web Storage APIs
Apr 5, 2021
null
null
null
[Samesite](https://texonom.com/samesite-838737f7c96c4344ac67c1fecdeac206) [Web CookieStore Interface](https://texonom.com/web-cookiestore-interface-572fc7a41d2e430c8ca0ce92c106f71e) [HTTP Set-Cookie Header](https://texonom.com/http-set-cookie-header-ac388b956c3e4a19bede0b67326e8a04) [HTTP Cookie Header](https://texonom.com/http-cookie-header-c93a0869e98e442dbc7e3dffa9ea2987)
### ์„ค์ •๋œ ์ฟ ํ‚ค๋Š” ํ•ด๋‹น ๋„๋ฉ”์ธ์—์„œ๋งŒ ์œ ํšจํ•œ ์ฟ ํ‚ค ๋‚˜๋Š” ํŽ˜์ด์ง€ ์ ‘์†ํ•  ๋•Œ ์ฟ ํ‚ค ๋ฌผ์–ด๋ณด๋Š”๊ฑฐ ์ข†๊ฐ™์•„์„œ ๋‚ด ์•ฑ์—๋Š” ์ถ”๊ฐ€ ์•ˆํ•˜๋ ค ํ•˜๊ณ  ํ•œ๋ฒˆ๋„ ๊ฐœ๋ฐœ์•ˆํ•ด๋ด„ ์ฟ ํ‚ค์— ๋ณ„๋„๋กœ ๋ช…์‹œ๋œ ๋„๋ฉ”์ธ์ด ์—†๋‹ค๋ฉด ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์ฟ ํ‚ค๋ฅผ ๋ณด๋‚ธ ์„œ๋ฒ„์˜ ๋„๋ฉ”์ธ์œผ๋กœ ์„ค์ • xss(cross site scripting) ๊ณต๊ฒฉ์— ์ทจ์•ฝํ•˜๋ฉฐ, ์ •๋ณด ๋„๋‚œ์˜ ์œ„ํ—˜์ด ์‹ ์†์„ฑ์„ ์œ„ํ•ด ์“ฐ๊ณ  ํ”„๋กœ๊ทธ๋žจ์ด ์ˆ˜์‹  ํ›„ ๋ณ€๊ฒฝํ•˜์ง€ ์•Š์€ ์ฑ„๋กœ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฐ์ดํ„ฐ์˜ ํŒจํ‚ท์„ ์˜๋ฏธํ•˜๋Š” ๋งค์ง ์ฟ ํ‚ค๋ผ๋Š” ์šฉ์–ด์—์„œ ๋น„๋กฏ ์†์„ฑ์€ ์ฟ ํ‚ค์˜ ๋งŒ๋ฃŒ ๊ธฐ๊ฐ„, ๋„๋ฉ”์ธ, ํ”Œ๋ž˜๊ทธ(์˜ˆ: Secure ๋ฐ HttpOnly) ๋“ฑ์˜ ์ •๋ณด๋ฅผ ์ €์žฅ ์ฟ ํ‚ค์˜ ๋Œ€๋ถ€๋ถ„ ๊ธฐ๋Šฅ localstorage๋กœ ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ๋ณด๋Š”๋ฐ msa user ๋‹ค๋ฅธ ์„œ๋ธŒ๋„๋ฉ”์ธ ์ด๋™ํ•  ๋•Œ ์ฟ ํ‚ค ์ด์šฉํ•˜๋ฉด ํŽธํ•˜๋‹ค > [Inside Google's Plan to Kill the Cookie](https://gizmodo.com/google-chrome-cookie-privacy-sandbox-1850303764) > [[์Šค์••/๋ฐ์ดํ„ฐ์ฃผ์˜] ์›น ์ตœ์ ํ™” ๋ฐฉ์‹ ๋ชจ์Œ - 4. ๋กœ๋“œ ํ›„](https://black7375.tistory.com/81)
5a2a27c54b6a4ec5830512b25a2d8300
IndexedDB
Web Storage APIs
Nov 23, 2020
null
null
null
[idb](https://texonom.com/idb-6ca07dba2ac94d25bbf3de2016f908d6) [localForage](https://texonom.com/localforage-db9d0391a282454f9f9b4ec52180e474) [IndexedDB native](https://texonom.com/indexeddb-native-bc4f9af28a6c42aeaca325835f7675fb) [idb-keyval](https://github.com/jakearchibald/idb-keyval) ### Async wrapper [idb](https://github.com/jakearchibald/idb) > [IndexedDB: Tutorial for browser storage](https://www.ionos.com/digitalguide/websites/web-development/indexeddb/) ### Always get full object > [IndexedDB: limit selected fields of retrieving object](https://stackoverflow.com/questions/21224208/indexeddb-limit-selected-fields-of-retrieving-object)
03520d7b716443ae8d3a5bbd559a1130
Web Content Index API
Web Storage APIs
May 22, 2021
null
null
null
[PWA](https://texonom.com/pwa-ce30bfc4fc164a59ac2ca0b01f23edf7)
The Content Indexing API is not an alternative way of caching content It's a way of providing metadata about pages that are already cached by your service worker so it has dependency to service worker > [Indexing your offline-capable pages with the Content Indexing API](https://web.dev/content-indexing-api/)
9beedd1c6c8e46ca89ad93fc244c2099
Web Storage API
Web Storage APIs
Nov 26, 2019
null
null
null
[localStorage](https://texonom.com/localstorage-28eac128c31a413fafff46b74ad27be8) [sessionStorage](https://texonom.com/sessionstorage-1a58856893f84bb69a7226a750b457ff) **WebStorage์—ญ์‹œ ๊ทธ๋ƒฅ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ฐ์ฒด์ด๋‹ค.** ๊ทธ๋ž˜์„œย **์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ฐ์ฒด๋ฅผ ๋„ฃ๋Š”๊ฒƒ ์—ญ์‹œ ๊ฐ€๋Šฅํ•˜๋ฉฐ ๋ฌธ์ž์—ด์— ํฌ๊ธฐ์ œํ•œ์ด ์žˆ๋Š” cookie์— ๋น„ํ•ด์„œ ๋น„๊ต์šฐ์œ„๋ฅผ ๊ฐ€์ง„๋‹ค.** ๊ทธ๋ฆฌ๊ณ  requst์™€ response์‹œ์—ย **๋ชจ๋“  ์ฟ ํ‚ค๋ฅผ ๋‹ค ๋„˜๊ฒจ์•ผ ํ–ˆ๋Š”๋ฐ ์›๋ž˜ ๋น„์šฉ์ด ํฐ httpํ†ต์‹ ์— ๋” ํฐ ๋ถ€ํ•˜๋ฅผ ์ค€๋‹ค.** ๊ทธ๋Ÿฌ๋‚˜**ย WebStorage๋Š” ๊ทธ๋ƒฅ ๊ฐœ๋ฐœ์ž๊ฐ€ ์„ ๋ณ„ํ•ด์„œ ๋„˜๊ธฐ๋ฉด ๋˜๋ฏ€๋กœ httpํ†ต์‹ ์—๋„ ๋ถ€ํ•˜๋ฅผ ์ค„์ผ ์ˆ˜ ์žˆ๋‹ค.** ์ฟ ํ‚ค๋Š” ์ž์‹ ์˜ ๋ณ€ํ™”๋ฅผ ๊ฐ์ง€ํ•  ๋ฐฉ๋ฒ•์ด ์—†๋‹ค. web storage๋Š” ์ž์‹ ์˜ ๋ณ€ํ™”๋ฅผ ์ด๋ฒคํŠธ๋กœ ๊ฐ์ง€ํ•  ์ˆ˜ ์žˆ๋‹ค. **5.์„ธ์…˜์˜ ์ •์˜** cookie - ๊ฐ™์€ ๋ธŒ๋ผ์šฐ์ €๋ฉดย ๋‹ค๋ฅธ ํƒญ์ด๋‚˜ ๋‹ค๋ฅธ ์ฐฝ(ํ”„๋กœ์„ธ์Šค)์ผ์ง€๋ผ๋„ ๊ฐ™์€ ์„ธ์…˜์ด๋ผ๊ณ  ์ •์˜ webstorage - ๊ฐ™์€ ๋ธŒ๋ผ์šฐ์ €์ผ์ง€๋ผ๋„ sessionStorage์˜ ๊ฒฝ์šฐ ๋‹ค๋ฅธ ํƒญ์ด๋ฉด ๋‹ค๋ฅธ ์„ธ์…˜์ด๋ผ๊ณ  ์ •์˜ ### 3๊ฐœ ๊ฒน์น˜์ง€๋งŒ ๊ฐ์ž์˜ ์˜์—ญ์ด ์žˆ๋‹ค webstorage๋Š” ์›๋ฆฌ๋Š” cookie๊ฐ™์ง€๋งŒ ์‚ฌ์šฉํ•˜๋Š” ๋А๋‚Œ์€ session์— ๋” ๊ฐ€๊น๋‹ค. ์‚ฌ์šฉํ•ด๋ณด๋ฉด ์€๊ทผํžˆ session๊ณผ ๋น„์Šทํ•œ ์ ์ด ๋งŽ๋‹ค. client๋‹จ์—์„œ ์‚ฌ์šฉํ•˜๋Š” session๋А๋‚Œ์ด๋‹ค. session์€ ์ •๋ง ํ›Œ๋ฅญํ•œ ๋ฐฉ๋ฒ•์ด์ง€๋งŒ ๊ณ„์† cookie๋‚˜ ywebstorage๋กœ ๋ˆˆ์„ ๋Œ๋ฆฌ๋Š” ์ด์œ ๋Š” ๊ฐ„๋‹จํ•˜๋‹ค. ์„œ๋ฒ„์— ๋ถ€ํ•˜๊ฐ€ ๋„ˆ๋ฌด ๋งŽ์ด ๊ฑธ๋ฆฌ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. cookie๋‚˜ webstorage์— ๊ณ ํ†ต์„ ๋ถ„๋‹ดํ•ด๋ฒ„๋ฆฌ๋Š”๊ฒŒ ์ข‹์„ ๊ฒƒ์ด๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์‹ค์ƒ์€ ์ข€ ๊ทธ๋ ‡์ง€๋Š” ์•Š์€ํŽธ์ด๋‹ค. ์„ธ์…˜์€ ์„ธ์…˜๋งŒ์˜ ์˜์—ญ์ด ํ™•๊ณ ํ•˜๊ฒŒ ์กด์žฌํ•œ๋‹ค. webstorage๊ฐ€ cookie์˜ ๋งŽ์€ ์ ์„ ๋ณด์™„ํ•œ๊ฑด ๋งž์ง€๋งŒ ๋ธŒ๋ผ์šฐ์ €๋ณ„๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋‚˜๋ˆˆ๋‹ค๋Š” ์ ์€ ์—ฌ์ „ํ•˜๋‹ค. ๊ทธ๋ฆฌ๊ณ  cookie๊ฐ€ ๋– ์•‰๋Š” ๋ณด์•ˆ ๋ฌธ์ œ๋Š” webstorage์—ญ์‹œ ๊ฐ™์ด ๊ฐ€์ง€๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. > [SQLite Wasm in the browser backed by the Origin Private File System - Chrome Developers](https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system)
a4131df42c7241b5b2f444a27064b351
First-party cookies
HTTP Cookie Notion
Aug 17, 2021
Alan Jo
Alan Jo
Jun 15, 2022
Referer์™€ ํ•ด๋‹น ์ฟ ํ‚ค ๋„๋ฉ”์ธ ๊ฐ™์€ ๊ฒฝ์šฐ
95a28e31cee646c48941ad6c6257f13b
First-Party Sets
HTTP Cookie Notion
Aug 17, 2021
Alan Jo
Alan Jo
May 30, 2023
ํฌ๋กฌ์—์„œ๋Š” ์žฅ๊ธฐ์ ์œผ๋กœ ์„œ๋“œ ํŒŒํ‹ฐ ์ฟ ํ‚ค์— ๋Œ€ํ•œ ์ง€์›์„ ๋‹จ๊ณ„์ ์œผ๋กœ ์ œ๊ฑฐํ•  ์˜ˆ์ • ํผ์ŠคํŠธ ํŒŒํ‹ฐ ์ฟ ํ‚ค๊ฐ€ ์„œ๋“œ ํŒŒํ‹ฐ ์ฟ ํ‚ค์˜ ์—ญํ• ์„ ๋ชจ๋‘ ๋Œ€์ฒดํ•  ์ˆ˜ ์—†๋Š” ์ƒํƒœ ๊ตฌ๊ธ€์€ ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด์„œ First-Party Sets๋ผ๋Š” ํ‘œ์ค€์„ ์ œ์•ˆ ๋ธŒ๋ผ์šฐ์ €ํ•œํ…Œ ์•Œ๋ ค์ฃผ๋ฉด ๋ธŒ๋ผ์šฐ์ €๋Š” ๋‹ค๋ฅธ ์‚ฌ์ดํŠธ๋ฅผ ํ•˜๋‚˜์ฒ˜๋Ÿผ ์‚ฌ์ดํŠธ๋กœ ๊ด€๋ฆฌํ•˜๋Š” ๊ฒƒ > [๋ธŒ๋ผ์šฐ์ € ์ฟ ํ‚ค์™€ SameSite ์†์„ฑ / seob.dev](https://seob.dev/posts/%EB%B8%8C%EB%9D%BC%EC%9A%B0%EC%A0%80-%EC%BF%A0%ED%82%A4%EC%99%80-SameSite-%EC%86%8D%EC%84%B1/)
3f9a2e7304954ea4b921902610c1ea46
Secure Cookie
HTTP Cookie Notion
Aug 17, 2021
Alan Jo
Alan Jo
Jun 15, 2022
### Secure ์ฟ ํ‚ค๋Š” HTTPS๊ฐ€ ์ ์šฉ๋œ(๊ทธ๋Ÿฌ๋‹ˆ๊นŒ ์•”ํ˜ธํ™”๋œ) ์š”์ฒญ์—๋งŒ ์ „์†ก๋˜๋Š” ์ฟ ํ‚ค ์ด ์ •์ฑ…์„ ๊ตฌํ˜„ํ•˜๋Š” ๋ธŒ๋ผ์šฐ์ €๋„ ํ˜„์žฌ๋กœ์„œ๋Š” ํฌ๋กฌ๋ฐ–์— > [๋ธŒ๋ผ์šฐ์ € ์ฟ ํ‚ค์™€ SameSite ์†์„ฑ / seob.dev](https://seob.dev/posts/%EB%B8%8C%EB%9D%BC%EC%9A%B0%EC%A0%80-%EC%BF%A0%ED%82%A4%EC%99%80-SameSite-%EC%86%8D%EC%84%B1/)
28fc7d1529fc40eb92115132d7a538d2
Third-party cookies
HTTP Cookie Notion
Aug 17, 2021
Alan Jo
Alan Jo
Jun 15, 2022
๊ทธ ๋„๋ฉ”์ธ์œผ๋กœ ๋ณด๋‚ด์ง€๋งŒ ์š”์ฒญํ•˜๋Š” ํŽ˜์ด์ง€๊ฐ€ ๋‹ค๋ฅธ ์‚ฌ์ดํŠธ [HTTP Referer Header](https://texonom.com/http-referer-header-2e4dc47f6eda4a66bc1073d860792cd5) ์™€ cookie ๋„๋ฉ”์ธ์ด ๋‹ค๋ฅธ ๊ฒฝ์šฐ์ž„ ํฌ๋กฌ์—์„œ๋Š” ์žฅ๊ธฐ์ ์œผ๋กœ ์„œ๋“œ ํŒŒํ‹ฐ ์ฟ ํ‚ค์— ๋Œ€ํ•œ ์ง€์›์„ ๋‹จ๊ณ„์ ์œผ๋กœ ์ œ๊ฑฐํ•  ์˜ˆ์ • ๋ฏธ๋ž˜์—๋Š” ๋ชจ๋“  ์ฟ ํ‚ค๊ฐ€ SameSite=Strict๋กœ ์„ค์ •๋œ ๊ฒƒ์ฒ˜๋Ÿผ ๋™์ž‘ํ•˜๊ฒŒ ๋œ๋‹ค๋Š” ์˜๋ฏธ
c4d1b4f4b61e437ca0fd9a509327ca99
****Total Cookie Protection****
HTTP Cookie Notion
Jun 15, 2022
Alan Jo
Alan Jo
Jun 15, 2022
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9cec04b1-7e07-4f4b-bff5-956dddebd261%2FUntitled.png?table=block&id=ca24229d-bcbe-4214-bc73-8b870506e8ed&cache=v2) > [Firefox Rolls Out Total Cookie Protection By Default To All Users | The Mozilla Blog](https://blog.mozilla.org/en/products/firefox/firefox-rolls-out-total-cookie-protection-by-default-to-all-users-worldwide/)
506633455b0a4253933f7d106e000e9e
**Persistentย Cookie**
HTTP Cookie Usages
Aug 17, 2021
Alan Jo
Alan Jo
Jun 15, 2022
4KB, ๋ชจ๋“  ํƒญ, ๋งŒ๋ฃŒ์‹œ๊ธฐ๊ฐ€ ๋˜๋ฉด ์‚ญ์ œ
e20c603e5f0b421084169d87cbbcc8dd
**Sessionย Cookie**
HTTP Cookie Usages
Aug 17, 2021
Alan Jo
Alan Jo
Jun 15, 2022
4KB, ๋ชจ๋“  ํƒญ, ๋ธŒ๋ผ์šฐ์ € ์ข…๋ฃŒ ์‹œ ์‚ญ์ œ
70cbacd83703470da1a3fb690815d1e7
idb
IndexedDB
null
null
null
null
null
> [GitHub - jakearchibald/idb: IndexedDB, but with promises](https://github.com/jakearchibald/idb#readme)
6ca07dba2ac94d25bbf3de2016f908d6
IndexedDB native
IndexedDB
null
null
null
null
null
## Create ```typelet dbconnect = window.indexedDB.open('cache', 1)let dbdbconnect.onupgradeneeded = ev => { console.log('Upgrade DB'); const db = ev.target.result; const store = db.createObjectStore('LasJson', { keyPath: 'id', autoIncrement: true }); store.createIndex('name', 'name', { unique: false }); store.createIndex('data', 'data', { unique: true });}dbconnect.onsuccess = ev => { console.log('DB-Upgrade needed') db = ev.target.result const transaction = db.transaction('LasJson', 'readwrite') const store = transaction.objectStore('LasJson') const data = [ {name: 'Raptor123', data: {}}, {name: 'Dino2', data: {}} ] data.forEach(el => store.add(el)); transaction.onerror = ev => { console.error('An error has occured!', ev.target.error.message); }}``` ## Access by index ```typevar transaction = db.transaction(["LasJson"]);var objectStore = transaction.objectStore("LasJson");var request = objectStore.get(1);request.onerror = function(event) { console.log("Request failed!");}request.onsuccess = function(event) { if (request.result) { console.log(request.result.name); console.log(request.result.data); } else { console.log("No more entries!"); }};``` [IndexedDB cursor](https://texonom.com/indexeddb-cursor-11a9aeb403d940fda70712d352faf54f) ### get by index ```typevar transaction = db.transaction(["LasJson"])var objectStore = transaction.objectStore("LasJson")var index = objectStore.index("name")index.get("Raptor123").onsuccess = function(event) { console.log(event.target.result.data)}``` ### Set data ```typevar transaction = db.transaction(["LasJson"], "readwrite")var objectStore = transaction.objectStore("LasJson")var request = objectStore.add({name: 'asda', data: {}})``` [IndexedDB onupgradeneeded](https://texonom.com/indexeddb-onupgradeneeded-3e09436c3a114e21b97fad642f5fbe65)
bc4f9af28a6c42aeaca325835f7675fb
localForage
IndexedDB
null
null
null
null
null
fast and simple storage library for JavaScript asynchronous storage IndexedDB or WebSQL with simple localstoreage like api
db9d0391a282454f9f9b4ec52180e474
IndexedDB cursor
IndexedDB native
null
null
null
null
null
### Access by cursor ```typevar objectStore = db.transaction("User").objectStore("User");objectStore.openCursor().onsuccess = function(event) { var cursor = event.target.result; if (cursor) { console.log(cursor.key); console.log(cursor.value.Nickname); console.log(cursor.value.eMail); cursor.continue(); } else { console.log("No more entries!"); }};```
11a9aeb403d940fda70712d352faf54f
IndexedDB onupgradeneeded
IndexedDB native
null
null
null
null
null
๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ๊ตฌ์กฐ๋ฅผ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ๋Š” ๊ณณ ์ด ์ด๋ฒคํŠธ ์•ˆ์—์„œ ๊ฐ์ฒด ์ €์žฅ์†Œ๋ฅผ ๋งŒ๋“ค๊ฑฐ๋‚˜ ์‚ญ์ œํ•˜๊ณ , ์ธ๋ฑ์Šค๋ฅผ ๋งŒ๋“ค๊ฑฐ๋‚˜ ์ง€์šธ ์ˆ˜ ์žˆ๋‹ค
3e09436c3a114e21b97fad642f5fbe65
**localStorage**
Web Storage API
null
null
null
null
null
### ๋กœ์ปฌ์— ๋„๋ฉ”์ธ ๋ณ„๋กœ ์ง€์†๋˜๋Š” storage [KV Storage](https://texonom.com/kv-storage-b194b9ef97d644ac86cde8336ccbf3e1) ### LocalStorage maximum > [Setting the value of 'dataURL' exceeded the quota](https://stackoverflow.com/questions/23977690/setting-the-value-of-dataurl-exceeded-the-quota) > [Storage clear() Method](https://www.w3schools.com/jsref/met_storage_clear.asp)
28eac128c31a413fafff46b74ad27be8
**sessionStorage**
Web Storage API
null
null
null
null
null
์„ธ์…˜์ด(ํ”„๋กœ์„ธ์Šค, ํƒญ, ๋ธŒ๋ผ์šฐ์ €)ย ์ข…๋ฃŒ๋  ๋•Œ๊นŒ์ง€ ์ง€์†๋˜๋Š” storage ์„ธ์…˜ ์Šคํ† ๋ฆฌ์ง€๋Š” localStorage์™€ ์“ฐ๋Š” ๋А๋‚Œ์ด ๋น„์Šทํ•œ๋ฐ ์ปค๋‹ค๋ž€ ์ฐจ์ด์ ์ด ์žˆ๋‹ค. ๊ทธ๊ฒƒ์€ ๋ฐ”๋กœ ์†Œ๋ฉธ ํƒ€์ด๋ฐ์ด๋‹ค. localStorage๋Š” ์†Œ๋ฉธํƒ€์ด๋ฐ์ด ์—†๋‹ค. ์ฆ‰ ์ง์ ‘ ์ง€์›Œ์ค˜์•ผํ•œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ sessionStorage๋Š” ์„ธ์…˜์˜ย ์ข…๋ฃŒ์‹œ ์ฃฝ์Œ์„ ๋งž์ดํ•œ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ด session์ด๋ผ๋Š” ์šฉ์–ด๋Š” ์•„์ฃผ ์šฐ๋ฆฌ๊ฐ€ ์ผ๋ฐ˜์ ์ธ ์˜๋ฏธ์˜ ์„ธ์…˜๊ณผ๋Š” ์ข€ ๋‹ค๋ฅด๋‹ค. ๋ณดํ†ต ์„ธ์…˜์˜ ์ข…๋ฃŒ๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ๋ธŒ๋ผ์šฐ์ €์˜ ์ข…๋ฃŒ๋ฅผ ๋œปํ•œ๋‹ค. ์ƒˆ์ฐฝ์„(ํ”„๋กœ์„ธ์Šค)๋„์šฐ๊ฑด ์ƒˆํƒญ์„ ๋„์šฐ๊ฑด ์ด๋Š” ์„ธ์…˜์ข…๋ฃŒ๋ฅผ ์˜๋ฏธํ•˜์ง€ ์•Š๋Š”๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ sessionStorage์—์„œ ์˜๋ฏธํ•˜๋Š” ์„ธ์…˜์€ ๊ฐ€์žฅ ์ž‘์€ ๋‹จ์œ„์ธ ํƒญ๋‹จ์œ„๋ฅผ ์˜๋ฏธํ•œ๋‹ค.
1a58856893f84bb69a7226a750b457ff
Web Main Interface
Web Interfaces
May 23, 2021
Alan Jo
Alan Jo
Apr 15, 2023
### Web Basic Interfaces |Title| |:-:| |[Web EventTarget Interface](https://texonom.com/web-eventtarget-interface-0cae8f05018a4921b049a9cdefbab9e1)| |[Web Event Interface](https://texonom.com/web-event-interface-a0d32630fa784a5890b64e6ea4c0286d)| |[Web History Interface](https://texonom.com/web-history-interface-8247d05b8db34b278dc08a886c1d201a)| |[Web Console API](https://texonom.com/web-console-api-99d529a0321c4b1b84c4741bbddf6028)| ### Web Network Interfaces |Title| |:-:| |[Web Navigator Interface](https://texonom.com/web-navigator-interface-85461a646f014fc4b569fdce5cdb01b1)| |[Web DOMString Interface](https://texonom.com/web-domstring-interface-e29967bd69a0434c9781b0937ca39ba9)| |[Web Location Interface](https://texonom.com/web-location-interface-974ea0fc96014053b644580e736979e9)| |[Web Blob Interface](https://texonom.com/web-blob-interface-770a0328a4904073a5ea8c2bbcac6c1d)| |[Web MutationObserver Interface](https://texonom.com/web-mutationobserver-interface-e7c8137f7c9d42ea83ac07e0e2bf61ea)| |[Web performance Interface](https://texonom.com/web-performance-interface-a043d7e15281452caf7767a39664672d)|
24b945b1e3be4cf39128b98c4bb2b575
Web Media Interface
Web Interfaces
May 23, 2021
Alan Jo
Alan Jo
May 23, 2021
### Web Media Interfaces |Title| |:-:| |[Web USB Interface](https://texonom.com/web-usb-interface-56192d21de9240499d9960fe2e3f69ae)|
364285073ec143c7b4c00e8a15fa131a
Web Storage Interface
Web Interfaces
May 23, 2021
Alan Jo
Alan Jo
May 23, 2021
### Web Storage Interfaces |Title| |:-:| |[Web MediaStream Interface](https://texonom.com/web-mediastream-interface-5be211d8635345de8df056799117ad6b)| |[Web Cache Interface](https://texonom.com/web-cache-interface-d9f21bd1d8564b469c928722a2244899)| |[Web File Interface](https://texonom.com/web-file-interface-2c9f43f688944decbc6c0dee58116e87)| |[Web CookieStore Interface](https://texonom.com/web-cookiestore-interface-572fc7a41d2e430c8ca0ce92c106f71e)|
2e9e5eacc3c84d698afb20ae2b06521a
Web Console API
Web Basic Interfaces
Jan 28, 2020
Alan Jo
Alan Jo
Apr 15, 2023
### Web console functions |Title| |:-:| |[console.log](https://texonom.com/consolelog-392a2d2bd20e49588324a88ce780cc31)| |[console.time](https://texonom.com/consoletime-84394ca858334c3ca66c12dd5e51fbcb)| |[console.trace](https://texonom.com/consoletrace-444fdabd09f643439eb5230da6d79b7a)| |[JS console.assert()](https://texonom.com/js-consoleassert-7be514748b2f45f89aa29ee99d9a5965)| |[JS console.debug](https://texonom.com/js-consoledebug-279c0db818e64b658eeaa474e8510f98)| |[JS console.table](https://texonom.com/js-consoletable-3a54aa7831c94f59a2b8e8a4e838b287)| |[JS console.warn](https://texonom.com/js-consolewarn-4d0b5b38c11744b382d55590580162db)| |[JS console.error](https://texonom.com/js-consoleerror-d8be26e23f4f4488a834f4d8c0c15edb)| |[JS console group](https://texonom.com/js-console-group-ac34eafe498c46d1a3fba98b4b9a8f13)|
99d529a0321c4b1b84c4741bbddf6028