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 |

ํต์ ์ ์ฌ์ฉํ ํ๋กํ ์ฝ, ์ฑ๋, ๋ฏธ๋์ด ์ฝ๋ฑ ๋ฐ ํ์, ๋ฐ์ดํฐ ์ ์ก ๋ฐฉ๋ฒ, ๋ผ์ฐํ
์ ๋ณด์ 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 />

- ์ ์ ํ๊ฒ ์์ฑ์ด ์ค์ ๋ย `<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
|

> [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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.