Public
evol avatar
evol
labLoginBanUser
HTTP
Forked from todepond/labLoginBanUser
0
ag_grid avatar
ag_grid
isAgWebsiteDown
Cron
Uptime Checker & Status Page Installation Fork this val Edit the list of URLs to what you want to check For the status page, fork this val: @ag_grid/isAgWebsiteDown
0
jpaulgale avatar
jpaulgale
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
stevekrouse avatar
stevekrouse
avidAmaranthHare
HTTP
Forked from stevekrouse/dot_com
0
vladimyr avatar
vladimyr
kv_example
Script
// const store = sqliteStore; /* same as: const store = createStore({ table: "keyv" });
0
harper avatar
harper
DropNotification
Cron
A simple bot that will grab the products from a shopify store and check for new products or products in stock. If they are found it will send a pushover alert.
1
maxm avatar
maxm
valTownAnalytics
HTTP
Val Town Analytics WIP!
2
saolsen avatar
saolsen
sqlite_migrations
Script
Tiny migrations "framework" that makes using sqlite in vals a little easier. Not great yet, so far can only run "up" for migrations you haven't run yet or down for all the ones you have run. See https://www.val.town/v/saolsen/sqlite_migrations_example for usage.
2
todepond avatar
todepond
labLoginSchema
Script
Forked from evol/labLoginSchema
0
gaimeri17 avatar
gaimeri17
labLoginBanUser
HTTP
Forked from todepond/labLoginBanUser
0
yawnxyz avatar
yawnxyz
lucia_sqlite
Script
Forked from stevekrouse/lucia_sqlite
0
dtkav avatar
dtkav
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
stevekrouse avatar
stevekrouse
stevekrouse_minimal
HTTP
@jsxImportSource https://esm.sh/react
0
pomdtr avatar
pomdtr
lastlogin
Script
Lastlogin Authentication for val.town Looking for an hono integration ? See @pomdtr/lastloginHono Support login in trough: Email Link QR Code Google Oauth Github Oauth Gitlab Oauth Facebook Oauth Demo You can try a demo at https://pomdtr-lastloginhonoexample.web.val.run (see @pomdtr/lastLoginHonoExample for code) Usage Wrap your http handlers in a lastlogin middleware (sessions will be persisted in the lastlogin_session table on your sqlite account). If you want to be the only one able to access your val, you can use @pomdtr/verifyUserEmail. import { lastlogin } from "https://esm.town/v/pomdtr/lastlogin"; import { verifyUserEmail } from "https://esm.town/v/pomdtr/verifyUserEmail"; export default lastlogin((req) => { return new Response(`You are logged in as ${req.headers.get("X-LastLogin-Email")}`); }, { // check that the user email match your val town email verifyEmail: verifyUserEmail }); If you want to customize how is allowed to signup, you can set the verifyEmail option: import { lastlogin } from "https://esm.town/v/pomdtr/lastlogin"; export default lastlogin((req) => { return new Response(`You are logged in as ${req.headers.get("X-LastLogin-Email")}`); }, { verifyEmail: (email) => { email == "steve@valtown" } }); You can allow anyone to signup by returning a boolean from the verifyEmail function: import { lastlogin } from "https://esm.town/v/pomdtr/lastlogin"; export default lastlogin((req) => { return new Response(`You are logged in as ${req.headers.get("X-LastLogin-Email")}`); }, { verifyEmail: (_email) => true }); Public Routes import { lastlogin } from "https://esm.town/v/pomdtr/lastlogin"; import { verifyUserEmail } from "https://esm.town/v/pomdtr/verifyUserEmail"; export default lastlogin(() => { return new Response("Hi!"); }, { verifyEmail: verifyUserEmail, public_routes: ["/", "/public/*"], }); See the URLPattern API for reference. Logout Just redirect the user to /auth/logout
10
stevekrouse avatar
stevekrouse
sqlite_admin
HTTP
Forked from stevekrouse/reactExample
3
petermillspaugh avatar
petermillspaugh
june2024
Script
@jsxImportSource https://esm.sh/preact
0
Updated: April 3, 2024